Skip to content

Commit

Permalink
Use embedded_hal_nb::serial instead of embedded_hal_0_2::serial
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsp committed Mar 16, 2024
1 parent 31c808b commit 8ce3897
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ defmt-rtt = "0.4.0"
display-interface = "0.4.1"
display-interface-spi = "0.4.1"
embedded-graphics = "0.7.1"
embedded-hal ="1.0.0"
embedded-hal = "1.0.0"
embedded-hal-nb = "1.0.0"
embedded-sdmmc = "0.5.0"
embedded_hal_0_2 = { package = "embedded-hal", version = "0.2.5", features = ["unproven", ] }
fugit = "0.3.7"
Expand Down
2 changes: 1 addition & 1 deletion boards/rp-pico/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ cortex-m-rtic.workspace = true
critical-section.workspace = true
embedded-graphics.workspace = true
embedded-hal.workspace = true
embedded-hal-nb.workspace = true
embedded-sdmmc.workspace = true
embedded_hal_0_2.workspace = true
hd44780-driver.workspace = true
heapless.workspace = true
i2c-pio.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion boards/rp-pico/examples/pico_uart_irq_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// These are the traits we need from Embedded HAL to treat our hardware
// objects as generic embedded devices.
use embedded_hal::digital::OutputPin;
use embedded_hal_0_2::serial::Write as UartWrite;
use embedded_hal_nb::serial::Write as UartWrite;

// The writeln! trait.
use core::fmt::Write;
Expand Down
2 changes: 1 addition & 1 deletion boards/rp-pico/examples/pico_uart_irq_echo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// These are the traits we need from Embedded HAL to treat our hardware
// objects as generic embedded devices.
use embedded_hal::digital::OutputPin;
use embedded_hal_0_2::serial::{Read, Write};
use embedded_hal_nb::serial::{Read, Write};

// We also need this for the 'Delay' object to work.
use rp2040_hal::Clock;
Expand Down

0 comments on commit 8ce3897

Please sign in to comment.