embassy/embassy-stm32f4
Dario Nieuwenhuis da91779117 interrupt: Split set_handler context.
Since introducing the ctx pointer, the handler is now two words, so setting it can
race with the interrupt firing. On race it's possible for the new handler to be
alled with the old ctx pointer or viceversa.

Rather than documenting this, it's better to split the function in two to make it
obvious to the user that it's not atomic. The user can use a critical section, or
disable/enable the interrupt to avoid races if this is a concern.
2021-02-26 02:04:48 +01:00
..
src interrupt: Split set_handler context. 2021-02-26 02:04:48 +01:00
Cargo.toml update defmt and defmt-rtt to 0.2.0 2021-02-24 08:44:23 +01:00