Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boards/itsybitsy_m4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ version = "0.7"
optional = true

[dependencies.atsamd-hal]
version = "0.21"
version = "0.22.2"
default-features = false

[dependencies.usb-device]
Expand Down
4 changes: 2 additions & 2 deletions boards/itsybitsy_m4/examples/sercom_interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ use bsp::hal::{
prelude::*,
sercom::{
uart::{self, BaudMode, Flags, Oversampling},
IoSet3, Sercom0,
Sercom0,
},
time::Hertz,
};

type UartPads0 = uart::Pads<Sercom0, IoSet3, IoSet3Sercom0Pad2, IoSet3Sercom0Pad0>;
type UartPads0 = uart::Pads<Sercom0, IoSet3Sercom0Pad2, IoSet3Sercom0Pad0>;
type Uart0 = uart::Uart<uart::Config<UartPads0>, uart::Duplex>;

/// Utility function for setting up SERCOM0 pins as an additional
Expand Down
6 changes: 3 additions & 3 deletions boards/itsybitsy_m4/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ pub fn qspi_master(
/// I2C pads for the labelled I2C peripheral
///
/// You can use these pads with other, user-defined [`i2c::Config`]urations.
pub type I2cPads = i2c::Pads<I2cSercom, IoSet1, Sda, Scl>;
pub type I2cPads = i2c::Pads<I2cSercom, Sda, Scl>;

/// I2C master for the labelled I2C peripheral
///
Expand Down Expand Up @@ -318,7 +318,7 @@ pub fn i2c_master(
}

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

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

/// SPI master for the labelled SPI peripheral
///
Expand Down