This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

os_mbx_wait get how long has sleep

Hello

How can I know how many ticks the os_mbx_wait function slept before the message has been received? So when the return code is OS_R_MBX, how can I calculate the wait period?

Regards

Parents
  • How do you implement your uptime counter? I mean where do you increment it?
    I tried to use os_tmr_create/os_tmr_call but this is just a one shot timer not a periodic one, and I cannot call the os_tmr_create function from os_tmr_call to reactivate it
    I tried also to use my SysTick_Handler which calls the SysTick_Handler exported by RTX but the execution stop into a hardware-fault

    Regards

Reply
  • How do you implement your uptime counter? I mean where do you increment it?
    I tried to use os_tmr_create/os_tmr_call but this is just a one shot timer not a periodic one, and I cannot call the os_tmr_create function from os_tmr_call to reactivate it
    I tried also to use my SysTick_Handler which calls the SysTick_Handler exported by RTX but the execution stop into a hardware-fault

    Regards

Children