[En-Nut-Discussion] HANDLE in spibus.h: volatile or not?

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Sun Mar 8 16:46:09 CET 2015


Hello,

the definitions in nut/dev/spibus.h
     84     /*! \brief Bus lock queue.
     85      */
     86     HANDLE bus_mutex;
     87 
     88     /*! \brief Bus wait ready queue.
     89      */
     90     HANDLE bus_ready;
     91 
 
don't contain the volatile keyword.

It that intentional and the volatile keyword not needed?

For interrupt driven drivers, normally the interrupt routine signals the
handle and the user code waits on that handle. As I understand it, this is
the classic case where "volatile" is needed.

Thanks

-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------


More information about the En-Nut-Discussion mailing list