diff options
Diffstat (limited to 'demos/STM32/RT-STM32F103-OLIMEX_STM32_P103-FATFS')
-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)));
}
}
|