Skip to content

Commit 7230e38

Browse files
committed
embedded-hal: 1.0.0-rc.1 -> 1.0.0-rc.2
1 parent 52ff303 commit 7230e38

File tree

6 files changed

+19
-9
lines changed

6 files changed

+19
-9
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.19.0] - 2023-11-29
8+
### Changed
9+
- Updated the v1 release of `embedded-hal` from `1.0.0-rc.1` to `1.0.0-rc.2`.
10+
- Updated the v1 release of `embedded-hal-nb` from `1.0.0-rc.1` to `1.0.0-rc.2`.
11+
712
## [0.18.0] - 2023-10-30
813
### Added
914
- Added an I2C implementation for `embedded-hal` version 1.
@@ -158,7 +163,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
158163
## [0.1.0] - 2020-09-12
159164
- Initial release
160165

161-
[Unreleased]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.18.0...HEAD
166+
[Unreleased]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.19.0...HEAD
167+
[0.19.0]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.18.0...v0.19.0
162168
[0.18.0]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.17.0...v0.18.0
163169
[0.17.0]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.16.0...v0.17.0
164170
[0.16.0]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.15.1...v0.16.0

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ftdi-embedded-hal"
3-
version = "0.18.0"
3+
version = "0.19.0"
44
authors = ["Alex Martens <alex@thinglab.org>"]
55
description = "embedded-hal implementation for FTDI USB devices."
66
keywords = ["ftdi", "usb", "io", "hal"]
@@ -17,8 +17,8 @@ default = []
1717

1818
[dependencies]
1919
eh0 = { package = "embedded-hal", version = "0.2.7", features = ["unproven"] }
20-
eh1 = { package = "embedded-hal", version = "=1.0.0-rc.1" }
21-
ehnb1 = { package = "embedded-hal-nb", version = "=1.0.0-rc.1" }
20+
eh1 = { package = "embedded-hal", version = "=1.0.0-rc.2" }
21+
ehnb1 = { package = "embedded-hal-nb", version = "=1.0.0-rc.2" }
2222
ftdi = { version = "0.1.3", optional = true }
2323
ftdi-mpsse = "0.1"
2424
libftd2xx = { version = "0.32", optional = true }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ FTDI device into the [embedded-hal] traits.
2525

2626
```toml
2727
[dependencies.ftdi-embedded-hal]
28-
version = "0.18.0"
28+
version = "0.19.0"
2929
features = ["libftd2xx", "libftd2xx-static"]
3030
```
3131

src/delay.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ impl Default for Delay {
3232
}
3333
}
3434

35-
impl eh1::delay::DelayUs for Delay {
35+
impl eh1::delay::DelayNs for Delay {
36+
fn delay_ns(&mut self, ns: u32) {
37+
std::thread::sleep(std::time::Duration::from_nanos(ns.into()))
38+
}
39+
3640
fn delay_us(&mut self, us: u32) {
3741
std::thread::sleep(std::time::Duration::from_micros(us.into()))
3842
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//!
1919
//! ```toml
2020
//! [dependencies.ftdi-embedded-hal]
21-
//! version = "0.18.0"
21+
//! version = "0.19.0"
2222
//! features = ["libftd2xx", "libftd2xx-static"]
2323
//! ```
2424
//!

src/spi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ where
526526
eh1::spi::Operation::TransferInPlace(buffer) => {
527527
eh1::spi::SpiBus::transfer_in_place(&mut bus, buffer)?;
528528
}
529-
eh1::spi::Operation::DelayUs(micros) => {
530-
std::thread::sleep(std::time::Duration::from_micros((*micros).into()));
529+
eh1::spi::Operation::DelayNs(micros) => {
530+
std::thread::sleep(std::time::Duration::from_nanos((*micros).into()));
531531
}
532532
}
533533
}

0 commit comments

Comments
 (0)