From 3dfef74a4cd1bd49f4812c425fea78407b4b60c3 Mon Sep 17 00:00:00 2001 From: Finomnis Date: Wed, 23 Oct 2024 21:28:42 +0200 Subject: [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 --- rtic-monotonics/CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rtic-monotonics/CHANGELOG.md') diff --git a/rtic-monotonics/CHANGELOG.md b/rtic-monotonics/CHANGELOG.md index 6e18648..7efce03 100644 --- a/rtic-monotonics/CHANGELOG.md +++ b/rtic-monotonics/CHANGELOG.md @@ -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 -- cgit v1.2.3