To avoid the LOW_FREQUENCY_VALUE issue. Change the 32768 direct value as for it.
Fork of EFM32_SegmentLCD by
Diff: segmentlcd.c
- Revision:
- 7:10a37bbb0698
- Parent:
- 0:559902e88130
--- a/segmentlcd.c Mon May 04 20:40:26 2015 +0000 +++ b/segmentlcd.c Wed Dec 14 10:28:25 2016 +0000 @@ -415,7 +415,7 @@ /* LCD Controller Prescaler */ /* Calculate value. Approach 50Hz for framerate. */ - uint32_t prescaler = (LOW_ENERGY_CLOCK_FREQUENCY / 32) / SegmentLCD_GetFrameRateDiv(lcdInit.mux); + uint32_t prescaler = (32768 / 32) / SegmentLCD_GetFrameRateDiv(lcdInit.mux); CMU_ClockDivSet(cmuClock_LCDpre, prescaler);