On Fri, Dec 26, 2025 at 5:06 AM <[email protected]> wrote:

> With avr-gcc, int is int16_t. ...


And from what I gather, int16_t accesses are not atomic.  Most 8-bit CPUs
offer some hardware support for atomicity (AVR has shadow registers).

This is not really a NuttX-specific problem, but would effect all real-time
systems that use and ANSI C.  I suppose you could define type int to be
type int-atomic and then exploit this hardware support in a cpu-specific
way.

Reply via email to