...
If OS_CFG_CALLED_FROM_ISR_CHK_EN
set to 1
in os_cfg.h
: This function is called from an ISR, which is not allowed.
OS_ERR_TMR_INACTIVE
p_tmr
is pointing to an inactive timer. In other words, this error appears when pointing to a timer that has been deleted.
OS_ERR_TMR_INVALID_STATE
the timer is in an invalid state.
Returned Values
DEF_TRUE
if the timer was deleted, DEF_FALSE
if not.
Notes/Warnings
- Do not call this function from an ISR.
- When deleting a timer, do not reference it again unless you re-create the timer by calling
OSTmrCreate()
.