Fix building for BOARD=watch (Fixes #8), enable in CI

This commit is contained in:
2020-05-16 22:04:56 +00:00
parent f455ce9113
commit 0f0cb73fa5
13 changed files with 87 additions and 15 deletions

View File

@@ -37,8 +37,13 @@ using BSP::ReturnCode;
using BSP::SystemTimer;
static BSP::Schedule::LowPowerTaskScheduler<1> g_sched;
#if defined(BOARD_WATCH)
static BSP::UsartDriver g_test_uart(USART2, g_sched);
static BSP::LptimPwm g_test_lptim(LPTIM1);
#elif defined(BOARD_DEVBOARD)
static BSP::UsartDriver g_test_uart(USART1, g_sched);
static BSP::LptimPwm g_test_lptim(LPTIM2);
#endif
static BSP::GpioDriver g_gpioa(GPIOA);
static BSP::GpioDriver g_gpiob(GPIOB);
static BSP::GpioPin g_lptim_pin(g_gpiob, 2);