Skip to content
Snippets Groups Projects
Commit dfa342b5 authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

cpu/samd21: Avoid clearing interrupt bits unintentionally

The INTENSET, INTENCLR, INTFLAG registers are write-1-to-confirm
registers, so writing zeroes will not affect anything, on the other
hand, a compiler generated read-modify-write cycle may unintentionally
affect more bits than the one being set. Avoid by using direct
assignment instead of or-assignment (|=) or bitfield writes (.bit.xxx=).
parent 719515a0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment