mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
rp: fix nvic prio bits (it's 2, not 3)
This commit is contained in:
parent
1b95990258
commit
f48391a685
@ -30,7 +30,7 @@ unstable-traits = ["embedded-hal-1"]
|
|||||||
embassy-util = { version = "0.1.0", path = "../embassy-util" }
|
embassy-util = { version = "0.1.0", path = "../embassy-util" }
|
||||||
embassy-executor = { version = "0.1.0", path = "../embassy-executor" }
|
embassy-executor = { version = "0.1.0", path = "../embassy-executor" }
|
||||||
embassy-time = { version = "0.1.0", path = "../embassy-time", features = [ "tick-1mhz" ] }
|
embassy-time = { version = "0.1.0", path = "../embassy-time", features = [ "tick-1mhz" ] }
|
||||||
embassy-cortex-m = { version = "0.1.0", path = "../embassy-cortex-m", features = ["prio-bits-3"]}
|
embassy-cortex-m = { version = "0.1.0", path = "../embassy-cortex-m", features = ["prio-bits-2"]}
|
||||||
embassy-hal-common = {version = "0.1.0", path = "../embassy-hal-common" }
|
embassy-hal-common = {version = "0.1.0", path = "../embassy-hal-common" }
|
||||||
embassy-embedded-hal = {version = "0.1.0", path = "../embassy-embedded-hal" }
|
embassy-embedded-hal = {version = "0.1.0", path = "../embassy-embedded-hal" }
|
||||||
atomic-polyfill = "1.0.1"
|
atomic-polyfill = "1.0.1"
|
||||||
|
@ -189,7 +189,7 @@ impl<'d, T: Pin> InputFuture<'d, T> {
|
|||||||
unsafe {
|
unsafe {
|
||||||
let irq = interrupt::IO_IRQ_BANK0::steal();
|
let irq = interrupt::IO_IRQ_BANK0::steal();
|
||||||
irq.disable();
|
irq.disable();
|
||||||
irq.set_priority(interrupt::Priority::P6);
|
irq.set_priority(interrupt::Priority::P3);
|
||||||
|
|
||||||
// Each INTR register is divided into 8 groups, one group for each
|
// Each INTR register is divided into 8 groups, one group for each
|
||||||
// pin, and each group consists of LEVEL_LOW, LEVEL_HIGH, EDGE_LOW,
|
// pin, and each group consists of LEVEL_LOW, LEVEL_HIGH, EDGE_LOW,
|
||||||
|
Loading…
Reference in New Issue
Block a user