aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/NRF51/NRF51822/EXT/main.c
diff options
context:
space:
mode:
authorDiego Ismirlian <dismirlian (at) google's mail.com>2018-08-20 20:50:22 -0300
committerDiego Ismirlian <dismirlian (at) google's mail.com>2018-08-20 20:50:22 -0300
commit0936be2541015b384b00e31ece7f42a510511aaa (patch)
treeb374d386e02aff0559457d11db61c96567a1fc50 /testhal/NRF51/NRF51822/EXT/main.c
parent03615f40dc3d1cbb5354035c326963b49759f440 (diff)
parentfe95e90b80a28dd2f40bfee1ad90822b99519c6a (diff)
downloadChibiOS-Contrib-0936be2541015b384b00e31ece7f42a510511aaa.tar.gz
ChibiOS-Contrib-0936be2541015b384b00e31ece7f42a510511aaa.tar.bz2
ChibiOS-Contrib-0936be2541015b384b00e31ece7f42a510511aaa.zip
Merge branch 'master' of https://github.com/ChibiOS/ChibiOS-Contrib
Diffstat (limited to 'testhal/NRF51/NRF51822/EXT/main.c')
-rw-r--r--testhal/NRF51/NRF51822/EXT/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/NRF51/NRF51822/EXT/main.c b/testhal/NRF51/NRF51822/EXT/main.c
index 8d24d021..f24eb5d 100644
--- a/testhal/NRF51/NRF51822/EXT/main.c
+++ b/testhal/NRF51/NRF51822/EXT/main.c
@@ -52,7 +52,7 @@ static void extcb1(EXTDriver *extp, expchannel_t channel)
if (!debouncing1 && (pad1 == PAL_LOW)) {
debouncing1 = true;
chSysLockFromISR();
- chVTSetI(&vt1, MS2ST(DEBOUNCE_TIME), led1toggle, NULL);
+ chVTSetI(&vt1, TIME_MS2I(DEBOUNCE_TIME), led1toggle, NULL);
chSysUnlockFromISR();
} else if (debouncing1 && (pad1 == PAL_HIGH)) {
chSysLockFromISR();
@@ -73,7 +73,7 @@ static void extcb2(EXTDriver *extp, expchannel_t channel)
if (!debouncing2 && (pad2 == PAL_LOW)) {
debouncing2 = true;
chSysLockFromISR();
- chVTSetI(&vt2, MS2ST(DEBOUNCE_TIME), led2toggle, NULL);
+ chVTSetI(&vt2, TIME_MS2I(DEBOUNCE_TIME), led2toggle, NULL);
chSysUnlockFromISR();
} else if (debouncing2 && (pad2 == PAL_HIGH)) {
chSysLockFromISR();