Update such that tests pass for v1.2
This includes minor updates for the th different MCU variant, and bugfixes. Resolves #7
This commit is contained in:
@@ -33,16 +33,22 @@
|
||||
using BSP::Time;
|
||||
|
||||
static BSP::Schedule::LowPowerTaskScheduler<1> g_sched;
|
||||
static BSP::GpioDriver g_gpioa(GPIOA);
|
||||
#if defined(BOARD_WATCH)
|
||||
static BSP::UsartDriver g_test_uart(USART2, g_sched);
|
||||
static BSP::GpioPin g_tx_pin(g_gpioa, 9);
|
||||
#elif defined(BOARD_DEVBOARD)
|
||||
static BSP::UsartDriver g_test_uart(USART1, g_sched);
|
||||
#endif
|
||||
static BSP::GpioDriver g_gpioa(GPIOA);
|
||||
|
||||
[[noreturn]] void main() {
|
||||
|
||||
g_gpioa.enable();
|
||||
|
||||
#if defined(BOARD_WATCH)
|
||||
g_tx_pin.configure_alternate_function(4);
|
||||
#endif
|
||||
|
||||
g_test_uart.init();
|
||||
|
||||
g_test_uart.tx_blocking(test_start_text);
|
||||
|
||||
Reference in New Issue
Block a user