aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F37x/UART
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-11-04 15:49:25 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-11-04 15:49:25 +0000
commitb8352d5f4b945b307d5850b3bb2259e9ea3c75a8 (patch)
tree4d770a6cab369323025fe2f1aed80cdb55852e3a /testhal/STM32/STM32F37x/UART
parent4efd9dfd7d4acf6347b7227bb9f251260c7191d6 (diff)
downloadChibiOS-b8352d5f4b945b307d5850b3bb2259e9ea3c75a8.tar.gz
ChibiOS-b8352d5f4b945b307d5850b3bb2259e9ea3c75a8.tar.bz2
ChibiOS-b8352d5f4b945b307d5850b3bb2259e9ea3c75a8.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10938 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F37x/UART')
-rw-r--r--testhal/STM32/STM32F37x/UART/Makefile4
-rw-r--r--testhal/STM32/STM32F37x/UART/main.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/testhal/STM32/STM32F37x/UART/Makefile b/testhal/STM32/STM32F37x/UART/Makefile
index 8f02fb3ae..412ac8d96 100644
--- a/testhal/STM32/STM32F37x/UART/Makefile
+++ b/testhal/STM32/STM32F37x/UART/Makefile
@@ -99,8 +99,8 @@ include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional).
#include $(CHIBIOS)/test/lib/test.mk
-include $(CHIBIOS)/test/rt/rt_test.mk
-include $(CHIBIOS)/test/oslib/oslib_test.mk
+#include $(CHIBIOS)/test/rt/rt_test.mk
+#include $(CHIBIOS)/test/oslib/oslib_test.mk
# Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32F373xC.ld
diff --git a/testhal/STM32/STM32F37x/UART/main.c b/testhal/STM32/STM32F37x/UART/main.c
index 431763070..720c328fd 100644
--- a/testhal/STM32/STM32F37x/UART/main.c
+++ b/testhal/STM32/STM32F37x/UART/main.c
@@ -53,7 +53,7 @@ static void txend2(UARTDriver *uartp) {
palSetPad(GPIOC, GPIOC_LED1);
chSysLockFromISR();
chVTResetI(&vt1);
- chVTDoSetI(&vt1, MS2ST(5000), restart, NULL);
+ chVTDoSetI(&vt1, TIME_MS2I(5000), restart, NULL);
chSysUnlockFromISR();
}
@@ -79,7 +79,7 @@ static void rxchar(UARTDriver *uartp, uint16_t c) {
palClearPad(GPIOC, GPIOC_LED1);
chSysLockFromISR();
chVTResetI(&vt2);
- chVTDoSetI(&vt2, MS2ST(200), ledoff, NULL);
+ chVTDoSetI(&vt2, TIME_MS2I(200), ledoff, NULL);
chSysUnlockFromISR();
}