Skip to content

Commit

Permalink
embedded-hal: 1.0.0-rc.1 -> 1.0.0-rc.2
Browse files Browse the repository at this point in the history
  • Loading branch information
newAM committed Nov 29, 2023
1 parent 52ff303 commit 7230e38
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.19.0] - 2023-11-29
### Changed
- Updated the v1 release of `embedded-hal` from `1.0.0-rc.1` to `1.0.0-rc.2`.
- Updated the v1 release of `embedded-hal-nb` from `1.0.0-rc.1` to `1.0.0-rc.2`.

## [0.18.0] - 2023-10-30
### Added
- Added an I2C implementation for `embedded-hal` version 1.
Expand Down Expand Up @@ -158,7 +163,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.1.0] - 2020-09-12
- Initial release

[Unreleased]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.18.0...HEAD
[Unreleased]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.19.0...HEAD
[0.19.0]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.18.0...v0.19.0
[0.18.0]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.17.0...v0.18.0
[0.17.0]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.16.0...v0.17.0
[0.16.0]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.15.1...v0.16.0
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ftdi-embedded-hal"
version = "0.18.0"
version = "0.19.0"
authors = ["Alex Martens <[email protected]>"]
description = "embedded-hal implementation for FTDI USB devices."
keywords = ["ftdi", "usb", "io", "hal"]
Expand All @@ -17,8 +17,8 @@ default = []

[dependencies]
eh0 = { package = "embedded-hal", version = "0.2.7", features = ["unproven"] }
eh1 = { package = "embedded-hal", version = "=1.0.0-rc.1" }
ehnb1 = { package = "embedded-hal-nb", version = "=1.0.0-rc.1" }
eh1 = { package = "embedded-hal", version = "=1.0.0-rc.2" }
ehnb1 = { package = "embedded-hal-nb", version = "=1.0.0-rc.2" }
ftdi = { version = "0.1.3", optional = true }
ftdi-mpsse = "0.1"
libftd2xx = { version = "0.32", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ FTDI device into the [embedded-hal] traits.

```toml
[dependencies.ftdi-embedded-hal]
version = "0.18.0"
version = "0.19.0"
features = ["libftd2xx", "libftd2xx-static"]
```

Expand Down
6 changes: 5 additions & 1 deletion src/delay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ impl Default for Delay {
}
}

impl eh1::delay::DelayUs for Delay {
impl eh1::delay::DelayNs for Delay {
fn delay_ns(&mut self, ns: u32) {
std::thread::sleep(std::time::Duration::from_nanos(ns.into()))
}

fn delay_us(&mut self, us: u32) {
std::thread::sleep(std::time::Duration::from_micros(us.into()))
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//!
//! ```toml
//! [dependencies.ftdi-embedded-hal]
//! version = "0.18.0"
//! version = "0.19.0"
//! features = ["libftd2xx", "libftd2xx-static"]
//! ```
//!
Expand Down
4 changes: 2 additions & 2 deletions src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,8 @@ where
eh1::spi::Operation::TransferInPlace(buffer) => {
eh1::spi::SpiBus::transfer_in_place(&mut bus, buffer)?;
}
eh1::spi::Operation::DelayUs(micros) => {
std::thread::sleep(std::time::Duration::from_micros((*micros).into()));
eh1::spi::Operation::DelayNs(micros) => {
std::thread::sleep(std::time::Duration::from_nanos((*micros).into()));
}
}
}
Expand Down

0 comments on commit 7230e38

Please sign in to comment.