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:
@@ -35,12 +35,10 @@ using BSP::Time;
|
||||
static BSP::Schedule::LowPowerTaskScheduler<1> g_sched;
|
||||
static BSP::UsartDriver g_test_uart(USART1, g_sched);
|
||||
static BSP::GpioDriver g_gpioa(GPIOA);
|
||||
static BSP::GpioPin g_test_pin(g_gpioa, 6);
|
||||
|
||||
[[noreturn]] void main() {
|
||||
|
||||
g_gpioa.enable();
|
||||
g_test_pin.configure_alternate_function(1);
|
||||
g_test_uart.init();
|
||||
|
||||
g_test_uart.tx_blocking(test_start_text);
|
||||
|
||||
Reference in New Issue
Block a user