aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F1xx/UART
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32F1xx/UART')
-rw-r--r--testhal/STM32/STM32F1xx/UART/Makefile4
-rw-r--r--testhal/STM32/STM32F1xx/UART/main.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/testhal/STM32/STM32F1xx/UART/Makefile b/testhal/STM32/STM32F1xx/UART/Makefile
index c136795b9..119141822 100644
--- a/testhal/STM32/STM32F1xx/UART/Makefile
+++ b/testhal/STM32/STM32F1xx/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)/STM32F103xB.ld
diff --git a/testhal/STM32/STM32F1xx/UART/main.c b/testhal/STM32/STM32F1xx/UART/main.c
index 709c74ed4..68859e48a 100644
--- a/testhal/STM32/STM32F1xx/UART/main.c
+++ b/testhal/STM32/STM32F1xx/UART/main.c
@@ -56,7 +56,7 @@ static void txend2(UARTDriver *uartp) {
palSetPad(IOPORT3, GPIOC_LED);
chSysLockFromISR();
chVTResetI(&vt1);
- chVTDoSetI(&vt1, MS2ST(5000), restart, NULL);
+ chVTDoSetI(&vt1, TIME_MS2I(5000), restart, NULL);
chSysUnlockFromISR();
}
@@ -83,7 +83,7 @@ static void rxchar(UARTDriver *uartp, uint16_t c) {
palClearPad(IOPORT3, GPIOC_LED);
chSysLockFromISR();
chVTResetI(&vt2);
- chVTDoSetI(&vt2, MS2ST(200), ledoff, NULL);
+ chVTDoSetI(&vt2, TIME_MS2I(200), ledoff, NULL);
chSysUnlockFromISR();
}