I need to use 2 Tcp sockets (one for received orders, and one to send datas)
Even i group all my tcp functions in a single task (with lowest priority), i can't executes other tasks.
I use a tick_timer task as in example (with highest priority) :
__task void tick_timer (void) { os_itv_set (10); while (1) { os_itv_wait (); timer_tick (); } }
and task_tcp with:
while (1) { main_TcpNet (); send_data(); os_tsk_pass (); }
Do i use os_tsk_pass() in all other task ?