From a08a28e32d43d1f6592a87ffa4ab83b02d97df12 Mon Sep 17 00:00:00 2001 From: marcoveeneman Date: Fri, 24 Nov 2017 22:26:11 +0100 Subject: Fixed I2C and UART testhal demos --- testhal/TIVA/TM4C123x/I2C/main.c | 2 +- testhal/TIVA/TM4C123x/UART/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'testhal') diff --git a/testhal/TIVA/TM4C123x/I2C/main.c b/testhal/TIVA/TM4C123x/I2C/main.c index c46bec9..0253710 100644 --- a/testhal/TIVA/TM4C123x/I2C/main.c +++ b/testhal/TIVA/TM4C123x/I2C/main.c @@ -57,7 +57,7 @@ static const I2CConfig i2cfg = int main(void) { msg_t status = MSG_OK; - systime_t tmo = MS2ST(100); + systime_t tmo = OSAL_MS2I(100); /* * System initializations. 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(); } -- cgit v1.2.3