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:
@@ -54,7 +54,6 @@ void UsartDriver::init()
|
||||
#error "Unknown device family"
|
||||
#endif
|
||||
|
||||
|
||||
// Set TX (PA9) to output, push/pull
|
||||
SET_TO(GPIOA->AFR[1], GPIO_AFRH_AFSEL9, 7u << GPIO_AFRH_AFSEL9_Pos); //AF7 (USART1_TX)
|
||||
SET_TO(GPIOA->MODER, GPIO_MODER_MODE9, 2u << GPIO_MODER_MODE9_Pos); // Alternate Function
|
||||
|
||||
Reference in New Issue
Block a user