aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
authormarcoveeneman <marco-veeneman@hotmail.com>2017-11-24 22:26:11 +0100
committermarcoveeneman <marco-veeneman@hotmail.com>2017-11-24 22:26:11 +0100
commita08a28e32d43d1f6592a87ffa4ab83b02d97df12 (patch)
tree854a15a5c85ad2cda32afbed5215147d63094187 /testhal
parent19efef2f4a09244023a25086fd8ebabd4c38d982 (diff)
downloadChibiOS-Contrib-a08a28e32d43d1f6592a87ffa4ab83b02d97df12.tar.gz
ChibiOS-Contrib-a08a28e32d43d1f6592a87ffa4ab83b02d97df12.tar.bz2
ChibiOS-Contrib-a08a28e32d43d1f6592a87ffa4ab83b02d97df12.zip
Fixed I2C and UART testhal demos
Diffstat (limited to 'testhal')
-rw-r--r--testhal/TIVA/TM4C123x/I2C/main.c2
-rw-r--r--testhal/TIVA/TM4C123x/UART/main.c4
2 files changed, 3 insertions, 3 deletions
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();
}