aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F37x/UART/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32F37x/UART/main.c')
-rw-r--r--testhal/STM32/STM32F37x/UART/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/STM32F37x/UART/main.c b/testhal/STM32/STM32F37x/UART/main.c
index 431763070..720c328fd 100644
--- a/testhal/STM32/STM32F37x/UART/main.c
+++ b/testhal/STM32/STM32F37x/UART/main.c
@@ -53,7 +53,7 @@ static void txend2(UARTDriver *uartp) {
palSetPad(GPIOC, GPIOC_LED1);
chSysLockFromISR();
chVTResetI(&vt1);
- chVTDoSetI(&vt1, MS2ST(5000), restart, NULL);
+ chVTDoSetI(&vt1, TIME_MS2I(5000), restart, NULL);
chSysUnlockFromISR();
}
@@ -79,7 +79,7 @@ static void rxchar(UARTDriver *uartp, uint16_t c) {
palClearPad(GPIOC, GPIOC_LED1);
chSysLockFromISR();
chVTResetI(&vt2);
- chVTDoSetI(&vt2, MS2ST(200), ledoff, NULL);
+ chVTDoSetI(&vt2, TIME_MS2I(200), ledoff, NULL);
chSysUnlockFromISR();
}