diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-08-22 14:30:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 14:30:06 +0000 |
commit | 53fbd0efb3e77e1e3de948afde2b5bf1a5a9735f (patch) | |
tree | c369107cf96018e3325d248b2dd3506b0e7c7260 | |
parent | 381ac97746c318963b42eec6ced6773301c91519 (diff) | |
parent | f48391a6856fdf713002cf9068087136b83da915 (diff) | |
download | embassy-53fbd0efb3e77e1e3de948afde2b5bf1a5a9735f.zip |
Merge #921
921: rp: fix nvic prio bits (it's 2, not 3) r=Dirbaio a=Dirbaio
bors r+
Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
-rw-r--r-- | embassy-rp/Cargo.toml | 2 | ||||
-rw-r--r-- | embassy-rp/src/gpio.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/embassy-rp/Cargo.toml b/embassy-rp/Cargo.toml index af7c8ee6..0e53d3a3 100644 --- a/embassy-rp/Cargo.toml +++ b/embassy-rp/Cargo.toml @@ -30,7 +30,7 @@ unstable-traits = ["embedded-hal-1"] embassy-util = { version = "0.1.0", path = "../embassy-util" } embassy-executor = { version = "0.1.0", path = "../embassy-executor" } 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-embedded-hal = {version = "0.1.0", path = "../embassy-embedded-hal" } atomic-polyfill = "1.0.1" diff --git a/embassy-rp/src/gpio.rs b/embassy-rp/src/gpio.rs index f9fa8378..90862fa3 100644 --- a/embassy-rp/src/gpio.rs +++ b/embassy-rp/src/gpio.rs @@ -189,7 +189,7 @@ impl<'d, T: Pin> InputFuture<'d, T> { unsafe { let irq = interrupt::IO_IRQ_BANK0::steal(); 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 // pin, and each group consists of LEVEL_LOW, LEVEL_HIGH, EDGE_LOW, |