17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example Programs<br />

else if ( !strcmp ( input , dis2 ) )<br />

rtos_disable ( The_second_rtos_task );<br />

else<br />

printf ( "Error: unknown command\n\r" );<br />

input_ready=FALSE;<br />

index=0;<br />

}<br />

}<br />

void main ( ) {<br />

// initialize input variables<br />

index=0;<br />

input_ready=FALSE;<br />

// initialize interrupts<br />

enable_interrupts(int_rda);<br />

enable_interrupts(global);<br />

rtos_run();<br />

}<br />

391

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!