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–63int _sema_tst(volatile int *p, int bitnumber);volatile intpinttypedef volatile int semaphore_t;semaphore_t dev_started; /* set by other routines */void f(void){while( ! _sema_tst( &dev_started, 15 ) ); /* wait until device is operational *//* code using device */}org p,”.ptext”:L3: btst #15,x:Fdev_started ; _sema_tstjcc L3rtsvoid _stop( void );_stop();stop• • • • • • • •

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

Saved successfully!

Ooh no, something went wrong!