diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-07-08 23:36:51 +0200 |
|---|---|---|
| committer | diondokter <[email protected]> | 2025-08-29 13:22:01 +0200 |
| commit | 2ba34ce2178d576f339f0b0dac70ac125f81cc5b (patch) | |
| tree | 604ab957e698b371d45c29df7e8099569c1a3df8 /embassy-executor/Cargo.toml | |
| parent | 658a52fb99e47d3d2f08ebf66335774930ad35ac (diff) | |
executor: allow trace and rtos-trace to coexist additively.
Before, enabling `trace` would enable embassy-native tracing, and
enabling *both* would *disable* embassy-native tracing.
Diffstat (limited to 'embassy-executor/Cargo.toml')
| -rw-r--r-- | embassy-executor/Cargo.toml | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/embassy-executor/Cargo.toml b/embassy-executor/Cargo.toml index d89e85cb7..a36a61885 100644 --- a/embassy-executor/Cargo.toml +++ b/embassy-executor/Cargo.toml | |||
| @@ -115,7 +115,24 @@ arch-spin = ["_arch"] | |||
| 115 | executor-thread = [] | 115 | executor-thread = [] |
| 116 | ## Enable the interrupt-mode executor (available in Cortex-M only) | 116 | ## Enable the interrupt-mode executor (available in Cortex-M only) |
| 117 | executor-interrupt = [] | 117 | executor-interrupt = [] |
| 118 | ## Enable tracing support (adds some overhead) | 118 | ## Enable tracing hooks |
| 119 | trace = [] | 119 | trace = ["_any_trace"] |
| 120 | ## Enable support for rtos-trace framework | 120 | ## Enable support for rtos-trace framework |
| 121 | rtos-trace = ["dep:rtos-trace", "trace", "dep:embassy-time-driver"] | 121 | rtos-trace = ["dep:rtos-trace", "_any_trace", "dep:embassy-time-driver"] |
| 122 | _any_trace = [] | ||
| 123 | |||
| 124 | #! ### Timer Item Payload Size | ||
| 125 | #! Sets the size of the payload for timer items, allowing integrated timer implementors to store | ||
| 126 | #! additional data in the timer item. The payload field will be aligned to this value as well. | ||
| 127 | #! If these features are not defined, the timer item will contain no payload field. | ||
| 128 | |||
| 129 | _timer-item-payload = [] # A size was picked | ||
| 130 | |||
| 131 | ## 1 bytes | ||
| 132 | timer-item-payload-size-1 = ["_timer-item-payload"] | ||
| 133 | ## 2 bytes | ||
| 134 | timer-item-payload-size-2 = ["_timer-item-payload"] | ||
| 135 | ## 4 bytes | ||
| 136 | timer-item-payload-size-4 = ["_timer-item-payload"] | ||
| 137 | ## 8 bytes | ||
| 138 | timer-item-payload-size-8 = ["_timer-item-payload"] | ||
