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:
Giovanni Di Sirio 2021-06-05 10:34:21 +00:00
parent 26418125b4
commit 002f7a9920
1 changed files with 4 additions and 2 deletions

View File

@ -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();