AnsweredAssumed Answered

Task Argument

Question asked by Tom Moulton on Jul 15, 2010
Latest reply on Aug 2, 2010 by Petr MacHala

I have a task that I need to run on two serial ports.

 

The same operations on both ports.

 

I tried using the Task Parameter from the Task Template but it didn't seem to work.

 

TASK_TEMPLATE_STRUCT MQX_template_list[] ={/*  Task number, Entry point, Stack, Pri, String, Auto? */   {MAIN_TASK, Main_task,   3000,  9,   "main",  MQX_AUTO_START_TASK, 0, 50},   {TTYA, serial_app,  3000,  9,   "TTYA", MQX_TIME_SLICE_TASK, 0, 50},   {TTYB, serial_app,  3000,  9,   "TTYB", MQX_TIME_SLICE_TASK, 1, 50},   {0,           0,           0,     0,   0,             0,     0, 0}};

 

I have the task argument for TTYA set to 0 and TTYB set to 1

 

Each time serial_app starts the argument is 0

 

What am I missing?

 

tom

ps. I am using MQX 3.6

Outcomes