[DONE]Atomic IO operations
Posted: Fri Aug 02, 2013 8:38 am
Hi,
I am a bit confused when reading the documentation on the PalWritePad (and the other Pad operations).
http://chibios.sourceforge.net/html/gro ... 34c5b42daa
In the Note, it says that the function is not guaranteed to be atomic, and it can be enclosed between chSysLock() and chSysUnlock() to ensure this. However, the Function Class is "Normal" which means it cannot be invoked within a lock zone.
So, which one is it?
I really need to make a small set of Pad write operations atomic in a PWM callback, but I'm not sure if it is allowed.
Best regards,
Kjell
I am a bit confused when reading the documentation on the PalWritePad (and the other Pad operations).
http://chibios.sourceforge.net/html/gro ... 34c5b42daa
In the Note, it says that the function is not guaranteed to be atomic, and it can be enclosed between chSysLock() and chSysUnlock() to ensure this. However, the Function Class is "Normal" which means it cannot be invoked within a lock zone.
So, which one is it?
I really need to make a small set of Pad write operations atomic in a PWM callback, but I'm not sure if it is allowed.
Best regards,
Kjell