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/STM32F1xx/UART/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testhal/STM32/STM32F1xx/UART/main.c') 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(); } -- cgit v1.2.3