diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-session.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test-session.cpp b/tests/test-session.cpp index 284b4b0..2cc000f 100644 --- a/tests/test-session.cpp +++ b/tests/test-session.cpp @@ -891,8 +891,10 @@ void enable_usarts(void) { Serial1.begin(BAUD); Serial2.begin(BAUD); Serial3.begin(BAUD); -#if defined(STM32_HIGH_DENSITY) && !defined(BOARD_maple_RET6) +#if defined(BOARD_HAVE_USART4) Serial4.begin(BAUD); +#endif +#if defined(BOARD_HAVE_USART5) Serial5.begin(BAUD); #endif } @@ -901,8 +903,10 @@ void disable_usarts(void) { Serial1.end(); Serial2.end(); Serial3.end(); -#if defined(STM32_HIGH_DENSITY) && !defined(BOARD_maple_RET6) +#if defined(BOARD_HAVE_USART4) Serial4.end(); +#endif +#if defined(BOARD_HAVE_USART5) Serial5.end(); #endif } |