Fix RTC synchronization after sleep, add many more tests
There were two issues with the tests 1. Incorrect print formats causing incorrect output. 2. The RTC driver was not waiting for the shadow registers to be updated after sleeping, their reset values to be read.
This commit is contained in:
@@ -82,8 +82,8 @@ void LptimPwm::init_lptim()
|
||||
/*!< Produce a 60Hz, signal with minimal "high" time. The display
|
||||
only needs 2us of "high" time on EXTCOMM, and it draws a fair
|
||||
amount of power. */
|
||||
LPTIM1->ARR = 0x4FF;
|
||||
LPTIM1->CMP = 0x4FE;
|
||||
LPTIM1->ARR = 0x27F;
|
||||
LPTIM1->CMP = 0x27E;
|
||||
while(!(LPTIM1->ISR & LPTIM_ISR_ARROK)) {}
|
||||
while(!(LPTIM1->ISR & LPTIM_ISR_CMPOK)) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user