13.07.2015 Views

DSP56xxx C Cross-Compiler User's Guide - Tasking

DSP56xxx C Cross-Compiler User's Guide - Tasking

DSP56xxx C Cross-Compiler User's Guide - Tasking

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Language Implementation 3–61int _sema_clr(volatile int *p, int bitnumber);volatile intpinttypedef volatile int semaphore_t;void f(void){static semaphore_t flag = 1;}while( !_sema_clr( &flag, 0 ) ); /* wait until we reset flag ourselves *//* code to handle device */_sema_set( &flag, 0 );/* free device for other processes */• • • • • • • •

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

Saved successfully!

Ooh no, something went wrong!