Update rp2040-hal to version 0.6 (#35)

This commit is contained in:
Jan Niehusmann 2022-08-26 13:59:59 +02:00 committed by GitHub
parent d204789394
commit be40e36a95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -7,20 +7,19 @@ version = "0.1.0"
cortex-m = "0.7" cortex-m = "0.7"
cortex-m-rt = "0.7" cortex-m-rt = "0.7"
embedded-hal = { version = "0.2.5", features = ["unproven"] } embedded-hal = { version = "0.2.5", features = ["unproven"] }
embedded-time = "0.12"
defmt = "0.3" defmt = "0.3"
defmt-rtt = "0.3" defmt-rtt = "0.3"
panic-probe = { version = "0.3", features = ["print-defmt"] } panic-probe = { version = "0.3", features = ["print-defmt"] }
# We're using a Pico by default on this template # We're using a Pico by default on this template
rp-pico = "0.4" rp-pico = "0.5"
# but you can use any BSP. Uncomment this to use the pro_micro_rp2040 BSP instead # but you can use any BSP. Uncomment this to use the pro_micro_rp2040 BSP instead
# sparkfun-pro-micro-rp2040 = "0.3" # sparkfun-pro-micro-rp2040 = "0.3"
# If you're not going to use a Board Support Package you'll need these: # If you're not going to use a Board Support Package you'll need these:
# rp2040-hal = { version="0.5", features=["rt"] } # rp2040-hal = { version="0.6", features=["rt"] }
# rp2040-boot2 = "0.2" # rp2040-boot2 = "0.2"
# cargo build/run # cargo build/run

View File

@ -8,7 +8,6 @@ use bsp::entry;
use defmt::*; use defmt::*;
use defmt_rtt as _; use defmt_rtt as _;
use embedded_hal::digital::v2::OutputPin; use embedded_hal::digital::v2::OutputPin;
use embedded_time::fixed_point::FixedPoint;
use panic_probe as _; use panic_probe as _;
// Provide an alias for our BSP so we can switch targets quickly. // Provide an alias for our BSP so we can switch targets quickly.
@ -45,7 +44,7 @@ fn main() -> ! {
.ok() .ok()
.unwrap(); .unwrap();
let mut delay = cortex_m::delay::Delay::new(core.SYST, clocks.system_clock.freq().integer()); let mut delay = cortex_m::delay::Delay::new(core.SYST, clocks.system_clock.freq().to_Hz());
let pins = bsp::Pins::new( let pins = bsp::Pins::new(
pac.IO_BANK0, pac.IO_BANK0,