From b8352d5f4b945b307d5850b3bb2259e9ea3c75a8 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 4 Nov 2017 15:49:25 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10938 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/STM32F3xx/UART/Makefile | 4 ++-- testhal/STM32/STM32F3xx/UART/main.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'testhal/STM32/STM32F3xx/UART') diff --git a/testhal/STM32/STM32F3xx/UART/Makefile b/testhal/STM32/STM32F3xx/UART/Makefile index ed46ff28f..7acae2819 100644 --- a/testhal/STM32/STM32F3xx/UART/Makefile +++ b/testhal/STM32/STM32F3xx/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)/STM32F303xC.ld diff --git a/testhal/STM32/STM32F3xx/UART/main.c b/testhal/STM32/STM32F3xx/UART/main.c index 1ef5bb6b9..cf88c2448 100644 --- a/testhal/STM32/STM32F3xx/UART/main.c +++ b/testhal/STM32/STM32F3xx/UART/main.c @@ -53,7 +53,7 @@ static void txend2(UARTDriver *uartp) { palClearPad(GPIOE, GPIOE_LED3_RED); chSysLockFromISR(); chVTResetI(&vt1); - chVTSetI(&vt1, MS2ST(5000), restart, NULL); + chVTSetI(&vt1, TIME_MS2I(5000), restart, NULL); chSysUnlockFromISR(); } @@ -79,7 +79,7 @@ static void rxchar(UARTDriver *uartp, uint16_t c) { palSetPad(GPIOE, GPIOE_LED3_RED); chSysLockFromISR(); chVTResetI(&vt2); - chVTSetI(&vt2, MS2ST(200), ledoff, NULL); + chVTSetI(&vt2, TIME_MS2I(200), ledoff, NULL); chSysUnlockFromISR(); } -- cgit v1.2.3