someone42 / hardware-bitcoin-wallet

A minimal Bitcoin wallet intended for embedded devices
BSD 2-Clause "Simplified" License
150 stars 44 forks source link

PIC32: Check for race conditions in SFRs writes #15

Open someone42 opened 11 years ago

someone42 commented 11 years ago

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.