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 /demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/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 'demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/main.c')
-rwxr-xr-x | demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/main.c b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/main.c index 85f0e4a4f..b9b7289ba 100755 --- a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/main.c +++ b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS/main.c @@ -72,7 +72,7 @@ static void tmrfunc(void *p) { chEvtBroadcastI(&removed_event);
}
}
- chVTSetI(&tmr, MS2ST(POLLING_DELAY), tmrfunc, bbdp);
+ chVTSetI(&tmr, TIME_MS2I(POLLING_DELAY), tmrfunc, bbdp);
chSysUnlockFromISR();
}
@@ -89,7 +89,7 @@ static void tmr_init(void *p) { chEvtObjectInit(&removed_event);
chSysLock();
cnt = POLLING_INTERVAL;
- chVTSetI(&tmr, MS2ST(POLLING_DELAY), tmrfunc, p);
+ chVTSetI(&tmr, TIME_MS2I(POLLING_DELAY), tmrfunc, p);
chSysUnlock();
}
@@ -323,6 +323,6 @@ int main(void) { "shell", NORMALPRIO + 1,
shellThread, (void *)&shell_cfg1);
}
- chEvtDispatch(evhndl, chEvtWaitOneTimeout(ALL_EVENTS, MS2ST(500)));
+ chEvtDispatch(evhndl, chEvtWaitOneTimeout(ALL_EVENTS, TIME_MS2I(500)));
}
}
|