Skip to content

Commit f3ae527

Browse files
committed
Switch itsybitsy_m4 BSP to latest HAL release.
1 parent e881437 commit f3ae527

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

boards/itsybitsy_m4/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ version = "0.7"
2424
optional = true
2525

2626
[dependencies.atsamd-hal]
27-
version = "0.21"
27+
version = "0.22.2"
2828
default-features = false
2929

3030
[dependencies.usb-device]

boards/itsybitsy_m4/examples/sercom_interrupt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ use bsp::hal::{
4242
prelude::*,
4343
sercom::{
4444
uart::{self, BaudMode, Flags, Oversampling},
45-
IoSet3, Sercom0,
45+
Sercom0,
4646
},
4747
time::Hertz,
4848
};
4949

50-
type UartPads0 = uart::Pads<Sercom0, IoSet3, IoSet3Sercom0Pad2, IoSet3Sercom0Pad0>;
50+
type UartPads0 = uart::Pads<Sercom0, IoSet3Sercom0Pad2, IoSet3Sercom0Pad0>;
5151
type Uart0 = uart::Uart<uart::Config<UartPads0>, uart::Duplex>;
5252

5353
/// Utility function for setting up SERCOM0 pins as an additional

boards/itsybitsy_m4/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ pub fn qspi_master(
288288
/// I2C pads for the labelled I2C peripheral
289289
///
290290
/// You can use these pads with other, user-defined [`i2c::Config`]urations.
291-
pub type I2cPads = i2c::Pads<I2cSercom, IoSet1, Sda, Scl>;
291+
pub type I2cPads = i2c::Pads<I2cSercom, Sda, Scl>;
292292

293293
/// I2C master for the labelled I2C peripheral
294294
///
@@ -318,7 +318,7 @@ pub fn i2c_master(
318318
}
319319

320320
/// UART Pads for the labelled UART peripheral
321-
pub type UartPads = uart::Pads<UartSercom, IoSet3, UartRx, UartTx>;
321+
pub type UartPads = uart::Pads<UartSercom, UartRx, UartTx>;
322322

323323
/// UART device for the labelled RX & TX pins
324324
pub type Uart = uart::Uart<uart::Config<UartPads>, uart::Duplex>;
@@ -375,7 +375,7 @@ pub fn dotstar_bitbang<T: CountDown + Periodic>(
375375
/// SPI pads for the labelled SPI peripheral
376376
///
377377
/// You can use these pads with other, user-defined [`spi::Config`]urations.
378-
pub type SpiPads = spi::Pads<SpiSercom, UndocIoSet2, Miso, Mosi, Sck>;
378+
pub type SpiPads = spi::Pads<SpiSercom, Miso, Mosi, Sck>;
379379

380380
/// SPI master for the labelled SPI peripheral
381381
///

0 commit comments

Comments
 (0)