File tree Expand file tree Collapse file tree 6 files changed +19
-9
lines changed Expand file tree Collapse file tree 6 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
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
+
7
12
## [ 0.18.0] - 2023-10-30
8
13
### Added
9
14
- 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
158
163
## [ 0.1.0] - 2020-09-12
159
164
- Initial release
160
165
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
162
168
[ 0.18.0 ] : https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.17.0...v0.18.0
163
169
[ 0.17.0 ] : https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.16.0...v0.17.0
164
170
[ 0.16.0 ] : https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.15.1...v0.16.0
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " ftdi-embedded-hal"
3
- version = " 0.18 .0"
3
+ version = " 0.19 .0"
4
4
authors = [" Alex Martens <alex@thinglab.org>" ]
5
5
description = " embedded-hal implementation for FTDI USB devices."
6
6
keywords = [" ftdi" , " usb" , " io" , " hal" ]
@@ -17,8 +17,8 @@ default = []
17
17
18
18
[dependencies ]
19
19
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 " }
22
22
ftdi = { version = " 0.1.3" , optional = true }
23
23
ftdi-mpsse = " 0.1"
24
24
libftd2xx = { version = " 0.32" , optional = true }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ FTDI device into the [embedded-hal] traits.
25
25
26
26
``` toml
27
27
[dependencies .ftdi-embedded-hal ]
28
- version = " 0.18 .0"
28
+ version = " 0.19 .0"
29
29
features = [" libftd2xx" , " libftd2xx-static" ]
30
30
```
31
31
Original file line number Diff line number Diff line change @@ -32,7 +32,11 @@ impl Default for Delay {
32
32
}
33
33
}
34
34
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
+
36
40
fn delay_us ( & mut self , us : u32 ) {
37
41
std:: thread:: sleep ( std:: time:: Duration :: from_micros ( us. into ( ) ) )
38
42
}
Original file line number Diff line number Diff line change 18
18
//!
19
19
//! ```toml
20
20
//! [dependencies.ftdi-embedded-hal]
21
- //! version = "0.18 .0"
21
+ //! version = "0.19 .0"
22
22
//! features = ["libftd2xx", "libftd2xx-static"]
23
23
//! ```
24
24
//!
Original file line number Diff line number Diff line change @@ -526,8 +526,8 @@ where
526
526
eh1:: spi:: Operation :: TransferInPlace ( buffer) => {
527
527
eh1:: spi:: SpiBus :: transfer_in_place ( & mut bus, buffer) ?;
528
528
}
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 ( ) ) ) ;
531
531
}
532
532
}
533
533
}
You can’t perform that action at this time.
0 commit comments