diff options
| author | Barnaby Walters <[email protected]> | 2024-04-07 16:22:42 +0200 |
|---|---|---|
| committer | Barnaby Walters <[email protected]> | 2024-04-07 16:22:42 +0200 |
| commit | effc08dde34c39da3f6bb4363d517de4f5c1ddd4 (patch) | |
| tree | e636106f1c364f6f6ed02912c314c6343503b3c8 /examples/stm32f0/src/bin/multiprio.rs | |
| parent | 56d34eefaa2862ebaf883e5388f909f7989aba1f (diff) | |
Incorporated adam’s suggestion into all multiprio comments
Diffstat (limited to 'examples/stm32f0/src/bin/multiprio.rs')
| -rw-r--r-- | examples/stm32f0/src/bin/multiprio.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/stm32f0/src/bin/multiprio.rs b/examples/stm32f0/src/bin/multiprio.rs index e36c0d6c2..1c3f3991a 100644 --- a/examples/stm32f0/src/bin/multiprio.rs +++ b/examples/stm32f0/src/bin/multiprio.rs | |||
| @@ -126,9 +126,10 @@ fn main() -> ! { | |||
| 126 | // Initialize and create handle for devicer peripherals | 126 | // Initialize and create handle for devicer peripherals |
| 127 | let _p = embassy_stm32::init(Default::default()); | 127 | let _p = embassy_stm32::init(Default::default()); |
| 128 | 128 | ||
| 129 | // STM32s don’t have software-defined interrupts, so just use any free interrupt vectors which aren’t used | 129 | // STM32s don’t have any interrupts exclusively for software use, but they can all be triggered by software as well as |
| 130 | // by the rest of your application. In this case we’re using UART1 and UART2, but there’s nothing special | 130 | // by the peripheral, so we can just use any free interrupt vectors which aren’t used by the rest of your application. |
| 131 | // about them. Any otherwise unused interrupt vector would work exactly the same. | 131 | // In this case we’re using UART1 and UART2, but there’s nothing special about them. Any otherwise unused interrupt |
| 132 | // vector would work exactly the same. | ||
| 132 | 133 | ||
| 133 | // High-priority executor: USART1, priority level 6 | 134 | // High-priority executor: USART1, priority level 6 |
| 134 | interrupt::USART1.set_priority(Priority::P6); | 135 | interrupt::USART1.set_priority(Priority::P6); |
