aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/UART/main.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-11-04 16:03:57 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-11-04 16:03:57 +0000
commite6fbbc4da8ddf97e053651ad3d38802429562a23 (patch)
tree4e2f29b4d9d9b034c306cbbc906ddf2f07f2d59e /testhal/STM32/STM32F4xx/UART/main.c
parentb8352d5f4b945b307d5850b3bb2259e9ea3c75a8 (diff)
downloadChibiOS-e6fbbc4da8ddf97e053651ad3d38802429562a23.tar.gz
ChibiOS-e6fbbc4da8ddf97e053651ad3d38802429562a23.tar.bz2
ChibiOS-e6fbbc4da8ddf97e053651ad3d38802429562a23.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10939 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F4xx/UART/main.c')
-rw-r--r--testhal/STM32/STM32F4xx/UART/main.c6
1 files changed, 3 insertions, 3 deletions
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();
}