snishanth512
Full Member level 3
- Joined
- Nov 12, 2012
- Messages
- 159
- Helped
- 13
- Reputation
- 26
- Reaction score
- 13
- Trophy points
- 1,308
- Location
- India
- Activity points
- 2,135
I ported uCOS II on ARM cortex M4 based micro-controller.
uCOS II works great.
But when interrupt is used, it goes to lowest priority idle task.
It is not scheduling user defined highest priority task.
I use the following code for servicing interrupt.
uCOS II works great.
But when interrupt is used, it goes to lowest priority idle task.
It is not scheduling user defined highest priority task.
I use the following code for servicing interrupt.
Code:
void BSP_IntHandler (CPU_INT16U src_nbr)
{
CPU_FNCT_VOID isr;
CPU_SR_ALLOC();
CPU_CRITICAL_ENTER();
OSIntEnter();
CPU_CRITICAL_EXIT();
OSIntExit();
}