185 Commits

Author SHA1 Message Date
Dániel Buga
1bf3a44e5d
Retain timer_queue_item 2025-08-18 12:50:52 +02:00
Dániel Buga
74037f0493
Make TimerQueueItem opaque 2025-08-18 12:50:51 +02:00
Bart Slinger
b7964df887 add missing feature gate for rtos-trace 2025-08-14 13:54:43 +08:00
Ulf Lilleengen
f3cb0f3c30
Merge pull request #4443 from Brezak/task-unsafe
executor: mark unsafe tasks as unsafe
2025-08-01 06:42:55 +00:00
Ralph Ursprung
98595f659c
embassy-time: add missing Debug & defmt::Format derives
`defmt::Format` is *not* implemented for `MockDriver` and
`InnerMockDriver` because the former contains the latter and the latter
is using `Queue` from `embassy-time-queue-utils` which so far does not
have a `defmt` dependency. since this is just a mock driver it shouldn't
be relevant if it has no `defmt::Format` impl.
2025-07-28 15:44:21 +02:00
Brezak
539ff78ebb
embassy-executor: explicitly return impl Future in task inner task 2025-07-23 20:55:42 +02:00
Ulf Lilleengen
9651cfca51
Merge pull request #4373 from fg-cfh/fix/name-new-tasks
embassy-executor: rtos-trace: fix task naming for new tasks
2025-07-11 20:51:10 +00:00
Dario Nieuwenhuis
0c136c7b05 executor: mark Spawner::for_current_executor() as unsafe.
It's unsound with manually-created Contexts, see https://github.com/embassy-rs/embassy/issues/4379
2025-07-08 22:39:53 +02:00
Florian Grandel
b861dd1728
embassy-executor: rtos-trace: fix task naming for new tasks
Tasks that are spawned after starting SystemViewer were not named. This
change ensures that tasks spawned while SystemViewer is running will be
properly named, too.

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
2025-07-06 19:21:12 +02:00
Dario Nieuwenhuis
8a23a4dfa4
Merge pull request #4266 from 0e4ef622/task-rpit
Allow `-> impl Future<Output = ()>` in #[task]
2025-06-22 21:27:56 +00:00
Matthew Tran
0d83fbbb57 Add diagnostic::on_unimplemented for nightly 2025-06-01 10:32:24 -05:00
Dario Nieuwenhuis
ad5a14fe85
Merge pull request #4244 from janderholm/master
executor: Make state implementations and their conditions match
2025-06-01 12:16:50 +00:00
Matthew Tran
b06a708f81 Mention ! in diagnostic 2025-05-29 05:54:25 -05:00
Matthew Tran
a4d4f62a1e Allow -> impl Future<Output = ()> in #[task] 2025-05-28 23:37:17 -05:00
Robin Mueller
5a07ea5d85 Add support for Cortex-A/R 2025-05-28 17:00:42 +02:00
Johan Anderholm
0f9a7a057f executor: Make state implementations and their conditions match
Use u8 for state_atomics and state_critical_section since that
is all that is needed. Change arm condition to "32" since that is what
is used and required.
2025-05-23 18:27:14 +02:00
Kat Perez
ebb6132f5f rustfmt 2025-05-08 16:31:47 -04:00
Kat Perez
3ffa2e4f3f remove unnecessary trace flags 2025-05-08 16:30:06 -04:00
Kat Perez
dfaab013eb move SpawnerTraceExt back into Spawner 2025-05-08 14:35:43 -04:00
Kat Perez
e968c47636 update TraceExt trait name for Spawner 2025-05-08 14:04:54 -04:00
Kat Perez
194a3044ac remove unused task_id 2025-05-08 13:46:41 -04:00
Kat Perez
3b873bb6bb implement TaskRefTrace for tracing-only fields in TaskRef 2025-05-08 13:40:32 -04:00
Kat Perez
462d04c6d5 move TaskTracker to trace 2025-05-08 13:35:34 -04:00
Kat Perez
8a8deb704f move spawn_named into trace.rs through TraceExt trait 2025-05-08 11:29:44 -04:00
Kat Perez
56b5e35c60 change rtos-trace feature flag on tracing API to trace feature flag 2025-05-08 10:58:59 -04:00
Kat Perez
8f18810ec6 remove unused tracing API 2025-05-08 10:58:27 -04:00
Kat Perez
b3e13cc6de make tracing API functions internal 2025-05-08 10:58:07 -04:00
Kat Perez
f2429c212e fix whitespace in the imports in trace.rs 2025-05-06 11:55:58 -04:00
Kat Perez
6085916714 use an intrusive linked list in TaskHeader to track tasks 2025-05-06 11:47:04 -04:00
Kat Perez
f4e0cbb7cc add ID field to TaskHeader 2025-05-06 09:59:27 -04:00
Kat Perez
54b3fb6e7a remove name from TaskRegistry and retrieve from task header instead 2025-05-06 09:27:19 -04:00
Kat Perez
61f0f889a0 add get/set for task name 2025-05-06 09:23:39 -04:00
Kat Perez
05d52decb2 add name to TaskHeader 2025-05-06 09:04:21 -04:00
Kat Perez
bbffd2b3f9 whitespace in the documentation 2025-05-06 08:27:46 -04:00
Kat Perez
032898adf5 add a stub implementation for spawn_named
When rtos-trace is not enabled, spawn_named will use spawn instead
2025-05-06 08:27:46 -04:00
Kat Perez
f8f9c38b2e add a task registry to tracing infrastructure 2025-05-06 08:27:46 -04:00
Phil-hacker
3a85ecebef fix rustfmt 2025-04-08 22:30:17 +02:00
Phil-hacker
ce40a39a87 fix compilation on anything not using the feature arch-avr 2025-04-08 22:15:05 +02:00
Phil-hacker
66a02a4f8d fix the avr executor 2025-04-08 22:10:17 +02:00
Dario Nieuwenhuis
1eec964637
Merge pull request #4046 from outfoxxed/main-macro-executor
executor: add executor selection to #[embassy_executor::main]
2025-04-07 13:08:33 +00:00
outfoxxed
ef8d168df6
executor: add executor selection to #[embassy_executor::main] 2025-04-06 18:52:32 -07:00
Kaspar Schleiser
89f3566419 embassy_executor: introduce Spawner::executor_id() 2025-04-04 22:32:55 +02:00
Kaspar Schleiser
3f87ce6f50 embassy-executor: introduce Executor::id() 2025-04-04 22:32:55 +02:00
James Munns
b7e1b1ca94 Fix some intra-doc links 2025-04-03 10:35:00 +02:00
James Munns
ef3c1b87d1 Minor docs improvements 2025-04-01 14:35:21 +02:00
James Munns
2e474b7df2 Remove notes about stability 2025-04-01 14:30:36 +02:00
James Munns
3e25a7be86 Small grammar fixes 2025-04-01 14:27:32 +02:00
James Munns
c3efb85b85 Fix task_end callback 2025-04-01 14:23:39 +02:00
James Munns
8a8e450053 Reorder doc comments for format reasons 2025-04-01 14:12:58 +02:00
James Munns
84cd416bed Finish trailing sentence 2025-04-01 14:11:42 +02:00