diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-05-11 01:27:46 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-05-11 01:34:24 +0200 |
| commit | e0809ab0fb64ff71be23e2d041d4fbae67dca234 (patch) | |
| tree | 3ac40e1f52a0ed3981d2983074fafe70563548e6 /embassy-nrf-examples | |
| parent | e6a8c8bfcce1e882d4cd6b37c83eb6662762810b (diff) | |
Switch to use PrioritX enums.
Diffstat (limited to 'embassy-nrf-examples')
| -rw-r--r-- | embassy-nrf-examples/src/bin/multiprio.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-nrf-examples/src/bin/multiprio.rs b/embassy-nrf-examples/src/bin/multiprio.rs index c6228a1ea..9ed5c1368 100644 --- a/embassy-nrf-examples/src/bin/multiprio.rs +++ b/embassy-nrf-examples/src/bin/multiprio.rs | |||
| @@ -135,7 +135,7 @@ fn main() -> ! { | |||
| 135 | 135 | ||
| 136 | // High-priority executor: SWI1_EGU1, priority level 6 | 136 | // High-priority executor: SWI1_EGU1, priority level 6 |
| 137 | let irq = interrupt::take!(SWI1_EGU1); | 137 | let irq = interrupt::take!(SWI1_EGU1); |
| 138 | irq.set_priority(interrupt::Priority::Level6); | 138 | irq.set_priority(interrupt::Priority::P6); |
| 139 | let alarm = ALARM_HIGH.put(rtc.alarm2()); | 139 | let alarm = ALARM_HIGH.put(rtc.alarm2()); |
| 140 | let executor = EXECUTOR_HIGH.put(InterruptExecutor::new(irq)); | 140 | let executor = EXECUTOR_HIGH.put(InterruptExecutor::new(irq)); |
| 141 | executor.set_alarm(alarm); | 141 | executor.set_alarm(alarm); |
| @@ -145,7 +145,7 @@ fn main() -> ! { | |||
| 145 | 145 | ||
| 146 | // Medium-priority executor: SWI0_EGU0, priority level 7 | 146 | // Medium-priority executor: SWI0_EGU0, priority level 7 |
| 147 | let irq = interrupt::take!(SWI0_EGU0); | 147 | let irq = interrupt::take!(SWI0_EGU0); |
| 148 | irq.set_priority(interrupt::Priority::Level7); | 148 | irq.set_priority(interrupt::Priority::P7); |
| 149 | let alarm = ALARM_MED.put(rtc.alarm1()); | 149 | let alarm = ALARM_MED.put(rtc.alarm1()); |
| 150 | let executor = EXECUTOR_MED.put(InterruptExecutor::new(irq)); | 150 | let executor = EXECUTOR_MED.put(InterruptExecutor::new(irq)); |
| 151 | executor.set_alarm(alarm); | 151 | executor.set_alarm(alarm); |
