aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2015-03-01 15:07:40 -0800
committerbnewbold <bnewbold@robocracy.org>2015-03-01 21:42:27 -0800
commit3d0d98a89b471a81febba2e483c162333cf696b9 (patch)
tree3b7389a3455eb18b3f95d98c22fba6fffaac912f
parent87b12ce67de1a5589d5b3a753bac82a39161c36d (diff)
downloadlibrambutan-3d0d98a89b471a81febba2e483c162333cf696b9.tar.gz
librambutan-3d0d98a89b471a81febba2e483c162333cf696b9.zip
test-session: use 'BOARD_HAVE' for SerialN discovery
-rw-r--r--tests/test-session.cpp8
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
}