From 27ee3f1b1b17dd7533bab5b0d3280f82b4229628 Mon Sep 17 00:00:00 2001 From: Jesse Braham Date: Tue, 12 Nov 2024 20:04:14 +0100 Subject: [PATCH 1/2] Remove reference to `NVIC_PRIO_BITS` for ESP32-C3 codegen bindings --- rtic-macros/src/codegen/bindings/esp32c3.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rtic-macros/src/codegen/bindings/esp32c3.rs b/rtic-macros/src/codegen/bindings/esp32c3.rs index 4caaa35f1323..9c778f944a5b 100644 --- a/rtic-macros/src/codegen/bindings/esp32c3.rs +++ b/rtic-macros/src/codegen/bindings/esp32c3.rs @@ -211,9 +211,7 @@ mod esp32c3 { let max = if let Some(max) = analysis.max_async_prio { quote!(#max) } else { - // No limit - let device = &app.args.device; - quote!(1 << #device::NVIC_PRIO_BITS) + quote!(u8::MAX) // No limit }; vec![quote!( From 912a6bed6fa5f67c518416595bb6e22a8f79936d Mon Sep 17 00:00:00 2001 From: Jesse Braham Date: Tue, 12 Nov 2024 20:07:00 +0100 Subject: [PATCH 2/2] Update `CHANGELOG.md` --- rtic-macros/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/rtic-macros/CHANGELOG.md b/rtic-macros/CHANGELOG.md index dd9dceaf0417..0f9858365a97 100644 --- a/rtic-macros/CHANGELOG.md +++ b/rtic-macros/CHANGELOG.md @@ -17,6 +17,7 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top! ### Fixed - Fix interrupt handlers when targeting esp32c3 and using latest version of esp-hal +- Do not limit async priority with `NVIC_PRIO_BITS` when targeting esp32c3 ## [v2.1.0] - 2024-02-27