diff options
| author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-04 15:49:25 +0000 | 
|---|---|---|
| committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-04 15:49:25 +0000 | 
| commit | b8352d5f4b945b307d5850b3bb2259e9ea3c75a8 (patch) | |
| tree | 4d770a6cab369323025fe2f1aed80cdb55852e3a /testhal/STM32/STM32F37x/UART/main.c | |
| parent | 4efd9dfd7d4acf6347b7227bb9f251260c7191d6 (diff) | |
| download | ChibiOS-b8352d5f4b945b307d5850b3bb2259e9ea3c75a8.tar.gz ChibiOS-b8352d5f4b945b307d5850b3bb2259e9ea3c75a8.tar.bz2 ChibiOS-b8352d5f4b945b307d5850b3bb2259e9ea3c75a8.zip  | |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10938 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F37x/UART/main.c')
| -rw-r--r-- | testhal/STM32/STM32F37x/UART/main.c | 4 | 
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();
  }
  | 
