aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/UART
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32F4xx/UART')
-rw-r--r--testhal/STM32/STM32F4xx/UART/Makefile4
-rw-r--r--testhal/STM32/STM32F4xx/UART/main.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/testhal/STM32/STM32F4xx/UART/Makefile b/testhal/STM32/STM32F4xx/UART/Makefile
index d9517428c..f5ed9a72f 100644
--- a/testhal/STM32/STM32F4xx/UART/Makefile
+++ b/testhal/STM32/STM32F4xx/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)/STM32F407xG.ld
diff --git a/testhal/STM32/STM32F4xx/UART/main.c b/testhal/STM32/STM32F4xx/UART/main.c
index c20fb1dc7..7ef53abeb 100644
--- a/testhal/STM32/STM32F4xx/UART/main.c
+++ b/testhal/STM32/STM32F4xx/UART/main.c
@@ -58,7 +58,7 @@ static void txend2(UARTDriver *uartp) {
palSetPad(GPIOD, GPIOD_LED5);
chSysLockFromISR();
chVTResetI(&vt5);
- chVTSetI(&vt5, MS2ST(200), led5off, NULL);
+ chVTSetI(&vt5, TIME_MS2I(200), led5off, NULL);
chSysUnlockFromISR();
}
@@ -84,7 +84,7 @@ static void rxchar(UARTDriver *uartp, uint16_t c) {
palSetPad(GPIOD, GPIOD_LED4);
chSysLockFromISR();
chVTResetI(&vt4);
- chVTSetI(&vt4, MS2ST(200), led4off, NULL);
+ chVTSetI(&vt4, TIME_MS2I(200), led4off, NULL);
chSysUnlockFromISR();
}
@@ -99,7 +99,7 @@ static void rxend(UARTDriver *uartp) {
palSetPad(GPIOD, GPIOD_LED3);
chSysLockFromISR();
chVTResetI(&vt3);
- chVTSetI(&vt3, MS2ST(200), led3off, NULL);
+ chVTSetI(&vt3, TIME_MS2I(200), led3off, NULL);
chSysUnlockFromISR();
}