Hi JuroV
I understand your response.
I have a question related with RR
I'm using MQX 3.7
In my main.c have
TASK_TEMPLATE_STRUCT MQX_template_list[] =
{
/* Task number, Entry point, Stack, Pri, String, Auto? */
{MAIN_TASK, Main_task, 2000, 9, "main", MQX_AUTO_START_TASK | MQX_TIME_SLICE_TASK, 0L, 2 },
{SECOND_TASK, Second_task, 2000, 9, "second", MQX_AUTO_START_TASK | MQX_TIME_SLICE_TASK, 0l, 2},
{0, 0, 0, 0, 0, 0, }
};
In mqx.h said:
/*
** Tasks with this attribute will use the time slice
** scheduler within the kernel
*/
#if MQX_HAS_TIME_SLICE
#define MQX_TIME_SLICE_TASK (0x04)
#endif
I checked the file small_ram_config.h
And I saw:
#ifndef MQX_HAS_TIME_SLICE
#define MQX_HAS_TIME_SLICE 0
#endif
I changed the value, for 1
#ifndef MQX_HAS_TIME_SLICE
#define MQX_HAS_TIME_SLICE 1
#endif
But In CodeWarrior when I saw this code
#if MQX_HAS_TIME_SLICE
#define MQX_TIME_SLICE_TASK (0x04)
#endif
it looks like desactivated

I suppose that the flag: MQX_HAS_TIME_SLICE doesn't udated by MQX,
am I correct?
When I execute this program ( that has the 2 task )
void Main_task(uint_32 initial_data)
{
int a;
for(a=0; a< 32000 ; a++)
{
printf("hola\t");
}
void Second_task(uint_32 initial_data)
{
int a;
for(a=0; a< 32000 ; a++)
{
printf("adios\t");
}
}
Execute the program like a FIFO , it doesn't execute like Round Robin

What are the correct modifications in the config files for change to RR scheduling?
best regards
jam