[monotonics] Fix STM32 read-modify-write race condition (#984)

* Fix stm32 read-modify-write problem

The `SR` register for STM32 clears when writing a zero to a bit.
Therefore, all registers that should not be cleared need to be `1`.

`modify` here caused a read-modify-write error that could clear
unrelated flags.

* Add changelog

* Make initialization more deterministic

* Update changelog

* Beautification in comments

---------

Co-authored-by: Martin Stumpf <martin.stumpf@vected.de>
This commit is contained in:
Finomnis 2024-10-23 21:28:42 +02:00 committed by GitHub
parent 0f532c6b48
commit 3dfef74a4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 28 additions and 6 deletions

View file

@ -15,6 +15,11 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top!
- Update `esp32c3` dependency
### Fixed
- STM32: Make initialization more deterministic
- STM32: Fix race condition that caused missed interrupts
## v2.0.2 - 2024-07-05
### Added