From e6fbbc4da8ddf97e053651ad3d38802429562a23 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 4 Nov 2017 16:03:57 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10939 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/STM32F4xx/UART/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testhal/STM32/STM32F4xx/UART/main.c') 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(); } -- cgit v1.2.3