Skip to content

Commit 93d68ef

Browse files
deps(grand_central_m4)!: Upgrade HAL to 0.22.0
PR #903
1 parent f9f9897 commit 93d68ef

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

boards/grand_central_m4/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ version = "0.7"
1515
optional = true
1616

1717
[dependencies.atsamd-hal]
18-
version = "0.21.3"
1918
default-features = false
19+
version = "0.22.0"
2020

2121
[dependencies.usb-device]
2222
version = "0.3.2"

boards/grand_central_m4/examples/eic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn main() -> ! {
6262

6363
let gclk0 = clocks.gclk0();
6464
let eic_clock = clocks.eic(&gclk0).unwrap();
65-
let eic = Eic::new(&mut peripherals.mclk, eic_clock, peripherals.eic);
65+
let eic = Eic::new(&mut peripherals.mclk, &eic_clock, peripherals.eic);
6666
let eic_channels = eic.split();
6767
let button: Pin<_, PullUpInterrupt> = pins.d46.into();
6868

boards/grand_central_m4/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ use hal::{
1717
sercom::{
1818
i2c, spi,
1919
uart::{self, BaudMode, Oversampling},
20-
IoSet2,
2120
},
2221
time::Hertz,
2322
};
@@ -481,7 +480,7 @@ hal::bsp_pins!(
481480
/// SPI pads for the labelled SPI peripheral
482481
///
483482
/// You can use these pads with other, user-defined [`spi::Config`]urations.
484-
pub type SpiPads = spi::Pads<SpiSercom, IoSet2, Miso, Mosi, Sclk>;
483+
pub type SpiPads = spi::Pads<SpiSercom, Miso, Mosi, Sclk>;
485484

486485
/// SPI master for the labelled SPI peripheral
487486
///
@@ -540,7 +539,7 @@ pub fn qspi_master(
540539
/// I2C pads for the labelled I2C peripheral
541540
///
542541
/// You can use these pads with other, user-defined [`i2c::Config`]urations.
543-
pub type I2cPads = i2c::Pads<I2cSercom, IoSet2, Sda, Scl>;
542+
pub type I2cPads = i2c::Pads<I2cSercom, Sda, Scl>;
544543

545544
/// I2C master for the labelled I2C peripheral
546545
///
@@ -570,7 +569,7 @@ pub fn i2c_master(
570569
}
571570

572571
/// UART Pads for the labelled UART peripheral
573-
pub type UartPads = uart::Pads<UartSercom, IoSet2, UartRx, UartTx>;
572+
pub type UartPads = uart::Pads<UartSercom, UartRx, UartTx>;
574573

575574
/// UART device for the labelled RX & TX pins
576575
pub type Uart = uart::Uart<uart::Config<UartPads>, uart::Duplex>;

0 commit comments

Comments
 (0)