diff options
author | Mateusz Tomaszkiewicz <silentdemon@gmail.com> | 2013-02-22 00:54:11 +0100 |
---|---|---|
committer | Mateusz Tomaszkiewicz <silentdemon@gmail.com> | 2013-02-22 00:54:11 +0100 |
commit | 51b292d3b952672525358a4c99588b39e8abf2e9 (patch) | |
tree | 073cd10a88567c91a9584edb9b8826c227d81b34 /drivers/gdisp | |
parent | cec4628a9777233c699bda86a747f49de576105b (diff) | |
download | uGFX-51b292d3b952672525358a4c99588b39e8abf2e9.tar.gz uGFX-51b292d3b952672525358a4c99588b39e8abf2e9.tar.bz2 uGFX-51b292d3b952672525358a4c99588b39e8abf2e9.zip |
SSD2119: PWM period change
100 kHz PWM period made small induction coil onboard LCD to moan if the
pulse width was smaller than 100%. I changed it to 1MHz.
Diffstat (limited to 'drivers/gdisp')
-rw-r--r-- | drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h | 14 | ||||
-rw-r--r-- | drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb_fsmc.h | 5 |
2 files changed, 16 insertions, 3 deletions
diff --git a/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h b/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h index 66f205c5..495c5fc9 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h +++ b/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb.h @@ -40,6 +40,20 @@ #define SET_RST palSetPad(GPIOD, 3); #define CLR_RST palClearPad(GPIOD, 3); +/* PWM configuration structure. We use timer 4 channel 2 (orange LED on board). */ +static const PWMConfig pwmcfg = { + 1000000, /* 1 MHz PWM clock frequency. */ + 100, /* PWM period is 100 cycles. */ + NULL, + { + {PWM_OUTPUT_ACTIVE_HIGH, NULL}, + {PWM_OUTPUT_ACTIVE_HIGH, NULL}, + {PWM_OUTPUT_ACTIVE_HIGH, NULL}, + {PWM_OUTPUT_ACTIVE_HIGH, NULL} + }, + 0 +}; + /** * @brief Initialise the board for the display. * @notes This board definition uses GPIO and assumes exclusive access to these GPIO pins diff --git a/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb_fsmc.h b/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb_fsmc.h index a3813f04..c6e11493 100644 --- a/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb_fsmc.h +++ b/drivers/gdisp/SSD2119/gdisp_lld_board_embest_dmstf4bb_fsmc.h @@ -38,8 +38,8 @@ /* PWM configuration structure. We use timer 4 channel 2 (orange LED on board). */ static const PWMConfig pwmcfg = { - 100000, /* 100kHz PWM clock frequency. */ - 100, /* PWM period is 128 cycles. */ + 1000000, /* 1 MHz PWM clock frequency. */ + 100, /* PWM period is 100 cycles. */ NULL, { {PWM_OUTPUT_ACTIVE_HIGH, NULL}, @@ -47,7 +47,6 @@ static const PWMConfig pwmcfg = { {PWM_OUTPUT_ACTIVE_HIGH, NULL}, {PWM_OUTPUT_ACTIVE_HIGH, NULL} }, - /* HW dependent part.*/ 0 }; |