Incorporated adam’s suggestion into all multiprio comments

This commit is contained in:
Barnaby Walters 2024-04-07 16:22:42 +02:00
parent 56d34eefaa
commit effc08dde3
4 changed files with 16 additions and 12 deletions

View File

@ -126,9 +126,10 @@ fn main() -> ! {
// Initialize and create handle for devicer peripherals
let _p = embassy_stm32::init(Default::default());
// STM32s dont have software-defined interrupts, so just use any free interrupt vectors which arent used
// by the rest of your application. In this case were using UART1 and UART2, but theres nothing special
// about them. Any otherwise unused interrupt vector would work exactly the same.
// STM32s dont have any interrupts exclusively for software use, but they can all be triggered by software as well as
// by the peripheral, so we can just use any free interrupt vectors which arent used by the rest of your application.
// In this case were using UART1 and UART2, but theres nothing special about them. Any otherwise unused interrupt
// vector would work exactly the same.
// High-priority executor: USART1, priority level 6
interrupt::USART1.set_priority(Priority::P6);

View File

@ -127,9 +127,10 @@ fn main() -> ! {
let _p = embassy_stm32::init(Default::default());
// STM32s dont have software-defined interrupts, so just use any free interrupt vectors which arent used
// by the rest of your application. In this case were using UART4 and UART5, but theres nothing special
// about them. Any otherwise unused interrupt vector would work exactly the same.
// STM32s dont have any interrupts exclusively for software use, but they can all be triggered by software as well as
// by the peripheral, so we can just use any free interrupt vectors which arent used by the rest of your application.
// In this case were using UART4 and UART5, but theres nothing special about them. Any otherwise unused interrupt
// vector would work exactly the same.
// High-priority executor: UART4, priority level 6
interrupt::UART4.set_priority(Priority::P6);

View File

@ -127,9 +127,10 @@ fn main() -> ! {
let _p = embassy_stm32::init(Default::default());
// STM32s dont have software-defined interrupts, so just use any free interrupt vectors which arent used
// by the rest of your application. In this case were using UART4 and UART5, but theres nothing special
// about them. Any otherwise unused interrupt vector would work exactly the same.
// STM32s dont have any interrupts exclusively for software use, but they can all be triggered by software as well as
// by the peripheral, so we can just use any free interrupt vectors which arent used by the rest of your application.
// In this case were using UART4 and UART5, but theres nothing special about them. Any otherwise unused interrupt
// vector would work exactly the same.
// High-priority executor: UART4, priority level 6
interrupt::UART4.set_priority(Priority::P6);

View File

@ -127,9 +127,10 @@ fn main() -> ! {
let _p = embassy_stm32::init(Default::default());
// STM32s dont have software-defined interrupts, so just use any free interrupt vectors which arent used
// by the rest of your application. In this case were using UART4 and UART5, but theres nothing special
// about them. Any otherwise unused interrupt vector would work exactly the same.
// STM32s dont have any interrupts exclusively for software use, but they can all be triggered by software as well as
// by the peripheral, so we can just use any free interrupt vectors which arent used by the rest of your application.
// In this case were using UART4 and UART5, but theres nothing special about them. Any otherwise unused interrupt
// vector would work exactly the same.
// High-priority executor: UART4, priority level 6
interrupt::UART4.set_priority(Priority::P6);