The xTimerCreate method has a parameter for a callback function but I would like to specify a lambda to be executed when the timer fires.
Code: Select all
TimerHandle_t xTimerCreate( const char * const pcTimerName,
const TickType_t xTimerPeriodInTicks,
const UBaseType_t uxAutoReload,
void * const pvTimerID,
TimerCallbackFunction_t pxCallbackFunction
)
with TimerCallbackFunction defined as void vCallbackFunction( TimerHandle_t xTimer )
How would I do that?