diff options
Diffstat (limited to 'examples/stm32f3/src/bin')
| -rw-r--r-- | examples/stm32f3/src/bin/multiprio.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/stm32f3/src/bin/multiprio.rs b/examples/stm32f3/src/bin/multiprio.rs index 3a3059db1..87830b416 100644 --- a/examples/stm32f3/src/bin/multiprio.rs +++ b/examples/stm32f3/src/bin/multiprio.rs | |||
| @@ -127,9 +127,10 @@ fn main() -> ! { | |||
| 127 | 127 | ||
| 128 | let _p = embassy_stm32::init(Default::default()); | 128 | let _p = embassy_stm32::init(Default::default()); |
| 129 | 129 | ||
| 130 | // STM32s don’t have software-defined interrupts, so just use any free interrupt vectors which aren’t used | 130 | // STM32s don’t have any interrupts exclusively for software use, but they can all be triggered by software as well as |
| 131 | // by the rest of your application. In this case we’re using UART4 and UART5, but there’s nothing special | 131 | // by the peripheral, so we can just use any free interrupt vectors which aren’t used by the rest of your application. |
| 132 | // about them. Any otherwise unused interrupt vector would work exactly the same. | 132 | // In this case we’re using UART4 and UART5, but there’s nothing special about them. Any otherwise unused interrupt |
| 133 | // vector would work exactly the same. | ||
| 133 | 134 | ||
| 134 | // High-priority executor: UART4, priority level 6 | 135 | // High-priority executor: UART4, priority level 6 |
| 135 | interrupt::UART4.set_priority(Priority::P6); | 136 | interrupt::UART4.set_priority(Priority::P6); |
