Hallo,
i use tsk_lock() for disables task switching(on Arm Cortex-M3) is this the same function as NVIC_DisableIRQ(SysTick_IRQn)
i wonder because tsk_lock() takes longer then calling NVIC_DisableIRQ(SysTick_IRQn)
Rgds, Willi Huber
Sounds like the two functions does completely different things.
Disabling the systick counter sounds like a solution that wouldn't allow the RTOS to see time, potentially increasing the timeouts or timers.
Hi Per,
please take o look on http://www.keil.com/support/man/docs/rlarm/rlarm_tsk_lock.htm
The tsk_lock function disables the RTX kernel timer interrupts and thereby disables task switching.
So i want to figure out what is exactly the difference between these two possibility to prevent task switching.
Rgds, mario
one difference is that 'os_tsk_lock' is a SWI function.
View all questions in Keil forum