Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to wait for more than one signal in one task in RTX51 TI

Status
Not open for further replies.

hero0765

Member level 2
Member level 2
Joined
Sep 15, 2008
Messages
52
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
China
Activity points
1,605
Hi:

I want to excute one task that is already waiting for serval different signals. how can I do that in the RTX51 TINNY?

for example:
void task_0(){

os_send_signal (2);
}

void task_1(){

os_send_signal (2);
}

void task_2(){

os_wait(K_SIG,0,0); //I want to excute this task until both task_0 and task_1 send the signal to task_2.

++count;

}

//It is expressed in C language :
if( signal_A && signal_B){
task_2();
//how can I send signal_A and signal_B from different tasks to task_2?
}


thanks in advance
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top