diff options
author | marcoveeneman <marco-veeneman@hotmail.com> | 2017-11-24 22:26:11 +0100 |
---|---|---|
committer | marcoveeneman <marco-veeneman@hotmail.com> | 2017-11-24 22:26:11 +0100 |
commit | a08a28e32d43d1f6592a87ffa4ab83b02d97df12 (patch) | |
tree | 854a15a5c85ad2cda32afbed5215147d63094187 /testhal/TIVA/TM4C123x/UART/main.c | |
parent | 19efef2f4a09244023a25086fd8ebabd4c38d982 (diff) | |
download | ChibiOS-Contrib-a08a28e32d43d1f6592a87ffa4ab83b02d97df12.tar.gz ChibiOS-Contrib-a08a28e32d43d1f6592a87ffa4ab83b02d97df12.tar.bz2 ChibiOS-Contrib-a08a28e32d43d1f6592a87ffa4ab83b02d97df12.zip |
Fixed I2C and UART testhal demos
Diffstat (limited to 'testhal/TIVA/TM4C123x/UART/main.c')
-rw-r--r-- | testhal/TIVA/TM4C123x/UART/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/TIVA/TM4C123x/UART/main.c b/testhal/TIVA/TM4C123x/UART/main.c index 8abae57..d3b48bc 100644 --- a/testhal/TIVA/TM4C123x/UART/main.c +++ b/testhal/TIVA/TM4C123x/UART/main.c @@ -53,7 +53,7 @@ static void txend2(UARTDriver *uartp) { palClearLine(LINE_LED_RED); chSysLockFromISR(); chVTResetI(&vt1); - chVTSetI(&vt1, MS2ST(5000), restart, NULL); + chVTSetI(&vt1, OSAL_MS2I(5000), restart, NULL); chSysUnlockFromISR(); } @@ -79,7 +79,7 @@ static void rxchar(UARTDriver *uartp, uint16_t c) { palSetLine(LINE_LED_RED); chSysLockFromISR(); chVTResetI(&vt2); - chVTSetI(&vt2, MS2ST(200), ledoff, NULL); + chVTSetI(&vt2, OSAL_MS2I(200), ledoff, NULL); chSysUnlockFromISR(); } |