mirror of https://github.com/rusefi/ChibiOS.git
CMSIS RTOS alignment to new timers.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14490 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
26418125b4
commit
002f7a9920
|
@ -69,9 +69,11 @@ __STATIC_INLINE sysinterval_t tmo(uint32_t millisec) {
|
|||
/**
|
||||
* @brief Virtual timers common callback.
|
||||
*/
|
||||
static void timer_cb(void const *arg) {
|
||||
|
||||
static void timer_cb(virtual_timer_t *vtp, void const *arg) {
|
||||
osTimerId timer_id = (osTimerId)arg;
|
||||
|
||||
(void)vtp;
|
||||
|
||||
timer_id->ptimer(timer_id->argument);
|
||||
if (timer_id->type == osTimerPeriodic) {
|
||||
chSysLockFromISR();
|
||||
|
|
Loading…
Reference in New Issue