PIC32: Check for race conditions in SFRs writes
Opened this issue · 0 comments
someone42 commented
Writes to SFRs should use the atomic CLR/SET versions to avoid race conditions (especially when clearing interrupt flags). Under some situations (eg. isolated use of peripheral; interrupts disabled), this won't be necessary.