aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32L1xx/UART/main.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-11-04 16:10:48 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-11-04 16:10:48 +0000
commitc8cdb0941bea91018362a4c9bc9b0b7f3db14784 (patch)
treeb7aad5bd674a85608a8fa50d66340545501455d3 /testhal/STM32/STM32L1xx/UART/main.c
parente6fbbc4da8ddf97e053651ad3d38802429562a23 (diff)
downloadChibiOS-c8cdb0941bea91018362a4c9bc9b0b7f3db14784.tar.gz
ChibiOS-c8cdb0941bea91018362a4c9bc9b0b7f3db14784.tar.bz2
ChibiOS-c8cdb0941bea91018362a4c9bc9b0b7f3db14784.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10940 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32L1xx/UART/main.c')
-rw-r--r--testhal/STM32/STM32L1xx/UART/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/STM32/STM32L1xx/UART/main.c b/testhal/STM32/STM32L1xx/UART/main.c
index 2089cae58..b6d90fac4 100644
--- a/testhal/STM32/STM32L1xx/UART/main.c
+++ b/testhal/STM32/STM32L1xx/UART/main.c
@@ -53,7 +53,7 @@ static void txend2(UARTDriver *uartp) {
palClearPad(GPIOB, GPIOB_LED4);
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) {
palSetPad(GPIOB, GPIOB_LED4);
chSysLockFromISR();
chVTResetI(&vt2);
- chVTDoSetI(&vt2, MS2ST(200), ledoff, NULL);
+ chVTDoSetI(&vt2, TIME_MS2I(200), ledoff, NULL);
chSysUnlockFromISR();
}