AnsweredAssumed Answered

Task with priority 8 and kernel isr how works the system?

Question asked by ShinjiIkari on Oct 27, 2010
Latest reply on Aug 8, 2012 by Reza Mohazeb

Hi,

I have a system that works with MQX RTOS 3.5 on Coldifire MCF52259 one task always active with priority 8 plus a kernel isr

 

TASK_TEMPLATE_STRUCT MQX_template_list[] =
{
//  Task number, Entry point, Stack, Pri, String, Auto?
    { MAIN_TASK, Main_task,   5000,  8,   "main_prof", MQX_AUTO_START_TASK, 0L, 0},
    { 0,         0,           0,     0,   0,      0, 0L, 0                       }
};

 

#define GPT0_INTERRUPT_LEVEL              7
#define GPT0_INTERRUPT_PRIORITY        7

 

 

_int_install_kernel_isr(MCF5225_INT_TIMA_C0F,(void (_CODE_PTR_)(void))isrINT_CF0);

_mcf5225_int_init(MCF5225_INT_TIMA_C0F,GPT0_INTERRUPT_LEVEL,GPT0_INTERRUPT_PRIORITY,TRUE);

 

 

With this configuration, when my hw interrupt starts, the system blocks the task and execute the interrupt or I need to use task queue inside interrupt kernel for suspending the task?

Outcomes