Skip to content

Commit

Permalink
Only implement __pender if a hal-executor is used (#937)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani authored Nov 15, 2023
1 parent f729f89 commit 5a9763a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed short wait times in embassy causing hangs (#906)
- Make sure to clear LP/RTC RAM before loading code (#916)
- Async RMT channels can be used concurrently (#925)
- Xtensa: Allow using `embassy-executor`'s thread-mode executor if neither `embassy-executor-thread`, nor `embassy-executor-interrupt` is enabled. (#937)

### Removed

Expand Down
4 changes: 4 additions & 0 deletions esp-hal-common/src/embassy/executor/xtensa/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ pub mod thread;
#[cfg(feature = "embassy-executor-thread")]
pub use thread::*;

#[cfg(any(
feature = "embassy-executor-thread",
feature = "embassy-executor-interrupt",
))]
#[export_name = "__pender"]
fn __pender(context: *mut ()) {
let context = (context as usize).to_le_bytes();
Expand Down

0 comments on commit 5a9763a

Please sign in to comment.