aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor-macros/src/macros
Commit message (Collapse)AuthorAgeFilesLines
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-062-3/+7
|
* Edition 2024.Dario Nieuwenhuis2025-10-061-1/+1
|
* executor: always name main task `main`, not just with rtos-trace.Dario Nieuwenhuis2025-09-051-1/+1
| | | | Also fixes the warning about the `rtos-trace` feature not existing in embassy-executor-macros.
* executor: rtos-trace: name main taskFlorian Grandel2025-08-301-2/+14
| | | | | | | Assigns a name to the main task when (rtos-)tracing is active. This improves tracing usability with the SystemView backend. Signed-off-by: Florian Grandel <[email protected]>
* executor: return error when creating the spawntoken, not when spawning.Dario Nieuwenhuis2025-08-292-4/+4
|
* embassy-executor: explicitly return impl Future in task inner taskBrezak2025-07-231-3/+16
|
* embassy-executor: explicitly return impl Future in task inner taskBrezak2025-07-231-26/+52
|
* embassy-executor: unsafe tasks as unsafeBrezak2025-07-231-1/+14
|
* excutor: fix Send unsoundness with `-> impl Future` tasks.Dario Nieuwenhuis2025-07-081-2/+8
|
* Allow `-> impl Future<Output = ()>` in #[task]Matthew Tran2025-05-281-14/+20
|
* Add support for Cortex-A/RRobin Mueller2025-05-281-0/+6
|
* executor: add executor selection to #[embassy_executor::main]outfoxxed2025-04-061-5/+43
|
* Move macro helper functions to embassy-executorMatthew Tran2025-03-291-32/+3
|
* Fix ugly compiler errorsMatthew Tran2025-03-291-10/+16
|
* Statically allocate task pools on stable Rust.Dario Nieuwenhuis2025-03-281-2/+36
| | | | | | Thanks @0e4ef622 for the awesome idea of how to do it and the first implementation. Co-Authored-By: Matthew Tran <[email protected]>
* preserve user attributesRobin Mueller2025-03-101-0/+6
|
* Update main.rsVictor LEFEBVRE2025-02-051-0/+1
|
* executor: allow overriding `embassy_executor` path in `task` macroKaspar Schleiser2024-11-041-4/+13
|
* executor-macros: improve error messages.Dario Nieuwenhuis2024-10-201-2/+24
|
* executor: fix unsoundness due to `impl Trait`, improve macro error handling. ↵Dario Nieuwenhuis2024-10-182-170/+221
| | | | | | | | | | | | | (#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-1/+28
| | | | | | | | | | | | | | | | | | | | | | 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]>
* executor: Use spawner.must_spawn(...) for wasm tooJ. Neuschäfer2024-07-121-1/+1
| | | | | All other architectures use must_spawn instead of spawn+unwrap, so use it for wasm as well.
* oopsGrant Miller2024-02-231-1/+1
|
* Improve hygieneGrant Miller2024-02-141-5/+4
|
* wipGrant Miller2024-02-141-3/+15
|
* Merge remote-tracking branch 'origin'sodo2024-01-021-4/+15
|\
| * Extend the task macro to allow cfging arguments awayScott Mabin2023-12-311-4/+15
| |
* | add avr supportsodo2023-12-101-0/+14
|/
* executor: rename macro crate to embassy-executor-macros, bump it.Dario Nieuwenhuis2023-12-073-0/+254