mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
Incorporated adam’s suggestion into all multiprio comments
This commit is contained in:
parent
56d34eefaa
commit
effc08dde3
@ -126,9 +126,10 @@ fn main() -> ! {
|
|||||||
// Initialize and create handle for devicer peripherals
|
// Initialize and create handle for devicer peripherals
|
||||||
let _p = embassy_stm32::init(Default::default());
|
let _p = embassy_stm32::init(Default::default());
|
||||||
|
|
||||||
// STM32s don’t have software-defined interrupts, so just use any free interrupt vectors which aren’t used
|
// STM32s don’t have any interrupts exclusively for software use, but they can all be triggered by software as well as
|
||||||
// by the rest of your application. In this case we’re using UART1 and UART2, but there’s nothing special
|
// by the peripheral, so we can just use any free interrupt vectors which aren’t used by the rest of your application.
|
||||||
// about them. Any otherwise unused interrupt vector would work exactly the same.
|
// In this case we’re using UART1 and UART2, but there’s nothing special about them. Any otherwise unused interrupt
|
||||||
|
// vector would work exactly the same.
|
||||||
|
|
||||||
// High-priority executor: USART1, priority level 6
|
// High-priority executor: USART1, priority level 6
|
||||||
interrupt::USART1.set_priority(Priority::P6);
|
interrupt::USART1.set_priority(Priority::P6);
|
||||||
|
@ -127,9 +127,10 @@ fn main() -> ! {
|
|||||||
|
|
||||||
let _p = embassy_stm32::init(Default::default());
|
let _p = embassy_stm32::init(Default::default());
|
||||||
|
|
||||||
// STM32s don’t have software-defined interrupts, so just use any free interrupt vectors which aren’t used
|
// STM32s don’t have any interrupts exclusively for software use, but they can all be triggered by software as well as
|
||||||
// by the rest of your application. In this case we’re using UART4 and UART5, but there’s nothing special
|
// by the peripheral, so we can just use any free interrupt vectors which aren’t used by the rest of your application.
|
||||||
// about them. Any otherwise unused interrupt vector would work exactly the same.
|
// In this case we’re using UART4 and UART5, but there’s nothing special about them. Any otherwise unused interrupt
|
||||||
|
// vector would work exactly the same.
|
||||||
|
|
||||||
// High-priority executor: UART4, priority level 6
|
// High-priority executor: UART4, priority level 6
|
||||||
interrupt::UART4.set_priority(Priority::P6);
|
interrupt::UART4.set_priority(Priority::P6);
|
||||||
|
@ -127,9 +127,10 @@ fn main() -> ! {
|
|||||||
|
|
||||||
let _p = embassy_stm32::init(Default::default());
|
let _p = embassy_stm32::init(Default::default());
|
||||||
|
|
||||||
// STM32s don’t have software-defined interrupts, so just use any free interrupt vectors which aren’t used
|
// STM32s don’t have any interrupts exclusively for software use, but they can all be triggered by software as well as
|
||||||
// by the rest of your application. In this case we’re using UART4 and UART5, but there’s nothing special
|
// by the peripheral, so we can just use any free interrupt vectors which aren’t used by the rest of your application.
|
||||||
// about them. Any otherwise unused interrupt vector would work exactly the same.
|
// In this case we’re using UART4 and UART5, but there’s nothing special about them. Any otherwise unused interrupt
|
||||||
|
// vector would work exactly the same.
|
||||||
|
|
||||||
// High-priority executor: UART4, priority level 6
|
// High-priority executor: UART4, priority level 6
|
||||||
interrupt::UART4.set_priority(Priority::P6);
|
interrupt::UART4.set_priority(Priority::P6);
|
||||||
|
@ -127,9 +127,10 @@ fn main() -> ! {
|
|||||||
|
|
||||||
let _p = embassy_stm32::init(Default::default());
|
let _p = embassy_stm32::init(Default::default());
|
||||||
|
|
||||||
// STM32s don’t have software-defined interrupts, so just use any free interrupt vectors which aren’t used
|
// STM32s don’t have any interrupts exclusively for software use, but they can all be triggered by software as well as
|
||||||
// by the rest of your application. In this case we’re using UART4 and UART5, but there’s nothing special
|
// by the peripheral, so we can just use any free interrupt vectors which aren’t used by the rest of your application.
|
||||||
// about them. Any otherwise unused interrupt vector would work exactly the same.
|
// In this case we’re using UART4 and UART5, but there’s nothing special about them. Any otherwise unused interrupt
|
||||||
|
// vector would work exactly the same.
|
||||||
|
|
||||||
// High-priority executor: UART4, priority level 6
|
// High-priority executor: UART4, priority level 6
|
||||||
interrupt::UART4.set_priority(Priority::P6);
|
interrupt::UART4.set_priority(Priority::P6);
|
||||||
|
Loading…
Reference in New Issue
Block a user