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`
This commit is contained in:
Jesse Braham 2024-11-27 11:04:14 -08:00 committed by GitHub
parent ed026cc4a3
commit 8678d424fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -17,6 +17,7 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top!
### Fixed ### Fixed
- Fix interrupt handlers when targeting esp32c3 and using latest version of esp-hal - 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 ## [v2.1.0] - 2024-02-27

View file

@ -211,9 +211,7 @@ mod esp32c3 {
let max = if let Some(max) = analysis.max_async_prio { let max = if let Some(max) = analysis.max_async_prio {
quote!(#max) quote!(#max)
} else { } else {
// No limit quote!(u8::MAX) // No limit
let device = &app.args.device;
quote!(1 << #device::NVIC_PRIO_BITS)
}; };
vec![quote!( vec![quote!(