mirror of
https://github.com/embassy-rs/embassy.git
synced 2026-04-10 12:25:29 +00:00
SR is "write 0 to clear". Using `.modify()` is wrong since it will accidentally clear interrupts that happened between the read and write. Correct way is to write all ones except zero in the bit we want to clear. It's also faster.