Skip to content

Commit

Permalink
Merge pull request #20 from ithinuel/experiment-gpio-overhaul
Browse files Browse the repository at this point in the history
Use internal pull-up in pico_spi_sd_card example
  • Loading branch information
jannic authored Sep 1, 2023
2 parents f04d6c4 + 5fd8238 commit d444d68
Show file tree
Hide file tree
Showing 22 changed files with 131 additions and 169 deletions.
10 changes: 5 additions & 5 deletions boards/adafruit-feather-rp2040/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ repository = "https://github.com/rp-rs/rp-hal-boards.git"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cortex-m = "0.7.2"
cortex-m-rt = { version = "0.7", optional = true }
rp2040-boot2 = { version = "0.3.0", optional = true }
rp2040-hal = { version = "0.9.0-alpha.1" }
cortex-m-rt = { version = "0.7", optional = true }

[dev-dependencies]
cortex-m = "0.7.7"
panic-halt= "0.2.0"
embedded-hal ="0.2.5"
fugit = "0.3.5"
nb = "1.0.0"
embedded-hal ="0.2.7"
fugit = "0.3.7"
nb = "1.1.0"
smart-leds = "0.3.0"
ws2812-pio = "0.6.0"

Expand Down
10 changes: 5 additions & 5 deletions boards/adafruit-itsy-bitsy-rp2040/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ repository = "https://github.com/rp-rs/rp-hal-boards.git"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cortex-m = "0.7.2"
cortex-m-rt = { version = "0.7", optional = true }
rp2040-boot2 = { version = "0.3.0", optional = true }
rp2040-hal = { version = "0.9.0-alpha.1" }
cortex-m-rt = { version = "0.7", optional = true }

[dev-dependencies]
cortex-m = "0.7.7"
panic-halt= "0.2.0"
embedded-hal ="0.2.5"
embedded-hal ="0.2.7"
smart-leds = "0.3"
nb = "1.0.0"
nb = "1.1.0"
ws2812-pio = "0.6.0"
fugit = "0.3.5"
fugit = "0.3.7"

[features]
# This is the set of features we enable by default
Expand Down
11 changes: 5 additions & 6 deletions boards/adafruit-kb2040/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@ repository = "https://github.com/rp-rs/rp-hal-boards.git"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cortex-m = "0.7.2"
rp2040-hal = { version = "0.9.0-alpha.1" }
cortex-m-rt = { version = "0.7.0", optional = true }
embedded-hal = { version = "0.2.4", features = ["unproven"] }
cortex-m-rt = { version = "0.7.3", optional = true }
embedded-hal = { version = "0.2.7", features = ["unproven"] }
rp2040-boot2 = { version = "0.3.0", optional = true }
rp2040-hal = { version = "0.9.0-alpha.1" }

[dev-dependencies]
panic-halt = "0.2.0"
rp2040-boot2 = "0.3"
smart-leds = "0.3.0"
fugit = "0.3.5"
nb = "1.0.0"
fugit = "0.3.7"
nb = "1.1.0"
ws2812-pio = "0.6.0"

[features]
Expand Down
6 changes: 3 additions & 3 deletions boards/adafruit-macropad/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ repository = "https://github.com/rp-rs/rp-hal-boards.git"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cortex-m = "0.7.2"
cortex-m-rt = { version = "0.7", optional = true }
rp2040-boot2 = { version = "0.3.0", optional = true }
rp2040-hal = { version = "0.9.0-alpha.1" }
cortex-m-rt = { version = "0.7", optional = true }

[dev-dependencies]
cortex-m = "0.7.7"
embedded-hal ="0.2.7"
panic-halt= "0.2.0"
embedded-hal ="0.2.5"

[features]
# This is the set of features we enable by default
Expand Down
9 changes: 4 additions & 5 deletions boards/adafruit-qt-py-rp2040/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@ repository = "https://github.com/rp-rs/rp-hal-boards.git"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cortex-m = "0.7.2"
rp2040-hal = { version = "0.9.0-alpha.1" }
cortex-m-rt = { version = "0.7", optional = true }
rp2040-boot2 = { version = "0.3.0", optional = true }
rp2040-hal = { version = "0.9.0-alpha.1" }

[dev-dependencies]
panic-halt= "0.2.0"
embedded-hal ="0.2.5"
embedded-hal ="0.2.7"
smart-leds = "0.3"
nb = "1.0.0"
nb = "1.1.0"
ws2812-pio = "0.6.0"
fugit = "0.3.5"
fugit = "0.3.7"

[features]
# This is the set of features we enable by default
Expand Down
10 changes: 5 additions & 5 deletions boards/adafruit-trinkey-qt2040/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ repository = "https://github.com/rp-rs/rp-hal-boards.git"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rp2040-hal = { version = "0.9.0-alpha.1" }
cortex-m-rt = { version = "0.7.0", optional = true }
cortex-m-rt = { version = "0.7.3", optional = true }
rp2040-boot2 = { version = "0.3.0", optional = true }
rp2040-hal = { version = "0.9.0-alpha.1" }

[dev-dependencies]
panic-halt= "0.2.0"
embedded-hal ="0.2.5"
embedded-hal ="0.2.7"
smart-leds = "0.3"
nb = "1.0.0"
nb = "1.1.0"
ws2812-pio = "0.6.0"
fugit = "0.3.5"
fugit = "0.3.7"

[features]
# This is the set of features we enable by default
Expand Down
12 changes: 6 additions & 6 deletions boards/arduino_nano_connect/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ repository = "https://github.com/rp-rs/rp-hal-boards.git"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cortex-m = "0.7.3"
cortex-m-rt = { version = "0.7.3", optional = true }
embedded-hal = { version = "0.2.7", features = ["unproven"] }
rp2040-boot2 = { version = "0.3.0", optional = true }
rp2040-hal = { version = "0.9.0-alpha.1" }
cortex-m-rt = { version = "0.7.0", optional = true }
embedded-hal = { version = "0.2.4", features = ["unproven"] }

[dev-dependencies]
cortex-m = "0.7.7"
panic-halt= "0.2.0"
embedded-hal ="0.2.5"
nb = "1.0"
fugit = "0.3.5"
embedded-hal ="0.2.7"
nb = "1.1"
fugit = "0.3.7"

[features]
# This is the set of features we enable by default
Expand Down
16 changes: 8 additions & 8 deletions boards/pimoroni-pico-explorer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ repository = "https://github.com/rp-rs/rp-hal-boards.git"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cortex-m = "0.7.2"
rp2040-hal = { version = "0.9.0-alpha.1" }
cortex-m-rt = { version = "0.7", optional = true }
embedded-hal = { version = "0.2.4", features = ["unproven"] }
st7789 = "0.6.1"
display-interface-spi = "0.4.1"
fugit = "0.3.5"
embedded-graphics = "0.7.1"
embedded-hal = { version = "0.2.7", features = ["unproven"] }
fugit = "0.3.7"
rp2040-boot2 = { version = "0.3.0", optional = true }
rp2040-hal = { version = "0.9.0-alpha.1" }
st7789 = "0.6.1"

[dev-dependencies]
arrayvec = { version = "0.7.4", default-features = false }
cortex-m = "0.7.7"
display-interface = "0.4.1"
nb = "1.1.0"
panic-halt = "0.2.0"
arrayvec = { version="0.7.1", default-features=false }
nb = "1.0.0"

[features]
# This is the set of features we enable by default
Expand All @@ -38,7 +38,7 @@ critical-section-impl = ["rp2040-hal/critical-section-impl"]
boot2 = ["rp2040-boot2"]

# Minimal startup / runtime for Cortex-M microcontrollers
rt = ["cortex-m-rt","rp2040-hal/rt"]
rt = ["cortex-m-rt", "rp2040-hal/rt"]

# This enables a fix for USB errata 5: USB device fails to exit RESET state on busy USB bus.
# Only required for RP2040 B0 and RP2040 B1, but it also works for RP2040 B2 and above
Expand Down
8 changes: 4 additions & 4 deletions boards/pimoroni-pico-lipo-16mb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ repository = "https://github.com/rp-rs/rp-hal-boards.git"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cortex-m = "0.7.2"
rp2040-hal = { version = "0.9.0-alpha.1" }
cortex-m-rt = { version = "0.7", optional = true }
rp2040-boot2 = { version = "0.3.0", optional = true }
rp2040-hal = { version = "0.9.0-alpha.1" }

[dev-dependencies]
cortex-m = "0.7.7"
panic-halt= "0.2.0"
embedded-hal ="0.2.5"
nb = "1.0"
embedded-hal ="0.2.7"
nb = "1.1"

[features]
# This is the set of features we enable by default
Expand Down
12 changes: 6 additions & 6 deletions boards/pimoroni-plasma-2040/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ repository = "https://github.com/rp-rs/rp-hal-boards.git"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cortex-m = "0.7.2"
cortex-m-rt = { version = "0.7", optional = true }
rp2040-boot2 = { version = "0.3.0", optional = true }
rp2040-hal = { version = "0.9.0-alpha.1" }
cortex-m-rt = { version = "0.7", optional = true }

[dev-dependencies]
rp2040-hal = { version = "0.9.0-alpha.1", features = [ "defmt" ] }
cortex-m = "0.7.7"
embedded-hal ="0.2.7"
fugit = "0.3.7"
panic-halt= "0.2.0"
embedded-hal ="0.2.5"
rp2040-hal = { version = "0.9.0-alpha.1", features = [ "defmt" ] }
smart-leds = "0.3.0"
ws2812-pio = "0.6.0"
fugit = "0.3.5"

defmt = "0.3.0"
defmt = "0.3.5"
defmt-rtt = "0.4.0"

[features]
Expand Down
15 changes: 7 additions & 8 deletions boards/pimoroni-servo2040/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,18 @@ repository = "https://github.com/rp-rs/rp-hal-boards.git"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cortex-m = "0.7.2"
cortex-m-rt = { version = "0.7", optional = true }
rp2040-boot2 = { version = "0.3.0", optional = true }
rp2040-hal = { version = "0.9.0-alpha.1" }
cortex-m-rt = { version = "0.7", optional = true }

[dev-dependencies]
rp2040-hal = { version = "0.9.0-alpha.1", features = [ "defmt" ] }
panic-halt= "0.2.0"
defmt = "0.3.0"
defmt = "0.3.5"
defmt-rtt = "0.4.0"
embedded-hal ="0.2.5"
fugit = "0.3.5"
nb = "1.0.0"
embedded-hal ="0.2.7"
fugit = "0.3.7"
nb = "1.1.0"
panic-halt= "0.2.0"
rp2040-hal = { version = "0.9.0-alpha.1", features = [ "defmt" ] }
smart-leds = "0.3.0"
ws2812-pio = "0.6.0"

Expand Down
12 changes: 6 additions & 6 deletions boards/pimoroni-tiny2040/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ repository = "https://github.com/rp-rs/rp-hal-boards.git"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cortex-m = "0.7.2"
cortex-m = "0.7.7"
cortex-m-rt = { version = "0.7", optional = true }
rp2040-boot2 = { version = "0.3.0", optional = true }
rp2040-hal = { version = "0.9.0-alpha.1" }
cortex-m-rt = { version = "0.7", optional = true }

[dev-dependencies]
rp2040-hal = { version = "0.9.0-alpha.1", features = [ "defmt" ] }
embedded-hal ="0.2.7"
fugit = "0.3.7"
panic-halt= "0.2.0"
embedded-hal ="0.2.5"
fugit = "0.3.5"
rp2040-hal = { version = "0.9.0-alpha.1", features = [ "defmt" ] }

defmt = "0.3.0"
defmt = "0.3.5"
defmt-rtt = "0.4.0"

[features]
Expand Down
15 changes: 7 additions & 8 deletions boards/pimoroni_badger2040/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@ repository = "https://github.com/rp-rs/rp-hal-boards.git"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cortex-m = "0.7.2"
rp2040-boot2 = { version = "0.3.0", optional = true }
rp2040-hal = { version = "0.9.0-alpha.1"}
cortex-m-rt = { version = "0.7", optional = true }
fugit = "0.3.5"
embedded-hal ="0.2.5"
embedded-hal = "0.2.7"
fugit = "0.3.7"
rp2040-boot2 = { version = "0.3.0", optional = true }
rp2040-hal = { version = "0.9.0-alpha.1" }

[dev-dependencies]
panic-halt= "0.2.0"
nb = "1.0"
panic-halt = "0.2.0"
nb = "1.1"

[features]
# This is the set of features we enable by default
Expand All @@ -33,7 +32,7 @@ critical-section-impl = ["rp2040-hal/critical-section-impl"]
boot2 = ["rp2040-boot2"]

# Minimal startup / runtime for Cortex-M microcontrollers
rt = ["cortex-m-rt","rp2040-hal/rt"]
rt = ["cortex-m-rt", "rp2040-hal/rt"]

# This enables a fix for USB errata 5: USB device fails to exit RESET state on busy USB bus.
# Only required for RP2040 B0 and RP2040 B1, but it also works for RP2040 B2 and above
Expand Down
38 changes: 19 additions & 19 deletions boards/rp-pico/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,34 @@ repository = "https://github.com/rp-rs/rp-hal-boards.git"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cortex-m = "0.7.2"
cortex-m-rt = { version = "0.7", optional = true }
fugit = "0.3.7"
rp2040-boot2 = { version = "0.3.0", optional = true }
rp2040-hal = { version = "0.9.0-alpha.1" }
cortex-m-rt = { version = "0.7", optional = true }
fugit = "0.3.5"
usb-device= "0.2.9"

[dev-dependencies]
rp2040-hal = { version = "0.9.0-alpha.1", features = [ "defmt" ] }
panic-halt= "0.2.0"
embedded-hal ="0.2.5"
cortex-m-rtic = "1.1.2"
nb = "1.0"
i2c-pio = "0.6.0"
heapless = "0.7.9"
embedded-sdmmc = "0.4.0"
smart-leds = "0.3.0"
ws2812-pio = "0.6.0"
ssd1306 = "0.7.0"
cortex-m = "0.7.7"
cortex-m-rtic = "1.1.4"
critical-section = "1.1.2"
embedded-graphics = "0.7.1"
embedded-hal ="0.2.7"
embedded-sdmmc = "0.4.0"
hd44780-driver = "0.4.0"
pio = "0.2.0"
pio-proc = "0.2.1"
critical-section = "1.0.0"
heapless = "0.7.16"
i2c-pio = "0.6.0"
nb = "1.1"
panic-halt= "0.2.0"
pio = "0.2.1"
pio-proc = "0.2.2"
rp2040-hal = { version = "0.9.0-alpha.1", features = [ "defmt" ] }
smart-leds = "0.3.0"
ssd1306 = "0.7.1"
usbd-hid = "0.5.2"
usbd-serial = "0.1.1"
usbd-hid = "0.5.1"
ws2812-pio = "0.6.0"

defmt = "0.3.0"
defmt = "0.3.5"
defmt-rtt = "0.4.0"

[features]
Expand Down
Loading

0 comments on commit d444d68

Please sign in to comment.