diff options
| author | Jesse Braham <jessebraham@users.noreply.github.com> | 2024-11-27 11:04:14 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-27 19:04:14 +0000 |
| commit | 8678d424fd17596b6f6bc89815d2daa1be39c4d6 (patch) | |
| tree | 6defdc20cd54fc39d740fcf0833d79e635e73c53 /rtic-macros/src/codegen | |
| parent | ed026cc4a319ead48b0519b0e01f09f695498e5c (diff) | |
Do not limit async priority with `NVIC_PRIO_BITS` when targeting ESP32-C3 (#996)
* Remove reference to `NVIC_PRIO_BITS` for ESP32-C3 codegen bindings
* Update `CHANGELOG.md`
Diffstat (limited to 'rtic-macros/src/codegen')
| -rw-r--r-- | rtic-macros/src/codegen/bindings/esp32c3.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/rtic-macros/src/codegen/bindings/esp32c3.rs b/rtic-macros/src/codegen/bindings/esp32c3.rs index 4caaa35..9c778f9 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