aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor-macros/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add support for Cortex-A/RRobin Mueller2025-05-281-0/+25
|
* executor: add executor selection to #[embassy_executor::main]outfoxxed2025-04-061-0/+24
|
* executor: fix unsoundness due to `impl Trait`, improve macro error handling. ↵Dario Nieuwenhuis2024-10-181-43/+7
| | | | | | | | | | | | | (#3425) * executor-macros: don't parse function bodies. * executor-macros: refactor for better recovery and ide-friendliness on errors. * executor-macros: disallow `impl Trait` in task arguments. Fixes #3420 * Fix example using `impl Trait` in tasks.
* executor/spin: introduce an architecture agnostic executorDummyc0m2024-10-061-0/+29
| | | | | | | | | | | | | | | | | | | | | | Spin polls the raw executor and never sleeps. It is useful for disabling any power features associated with wfi/wfe-like instructions. When implementing support for the CH32V30x MCU, the wfi instruction had issues interacting with the USB OTG peripheral and appeared to be non-spec-compliant. 1. When sending a USB Data-in packet, the USB peripheral appears to be unable to read the system main memory while in WFI. This manifests in the USB peripheral sending all or partially zeroed DATA packets. Disabling WFI works around this issue. 2. The WFI instruction does not wake up the processor when MIE is disabled. The MCU provides a WFITOWFE bit to emulate the WFE instruction on arm, which, when enabled, ignores the MIE and allows the processor to wake up. This works around the non-compliant WFI implementation. Co-authored-by: Codetector <[email protected]> Co-authored-by: Dummyc0m <[email protected]>
* add avr supportsodo2023-12-101-0/+7
|
* executor: rename macro crate to embassy-executor-macros, bump it.Dario Nieuwenhuis2023-12-071-0/+175