File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
62
62
- The ` embedded-hal ` Read implementation of ` Serial ` does now return ` WoudBlock `
63
63
if the peripheral is busy. Also if an ` Overrun ` occured the receive data
64
64
register (RDR) is flushed to have a more consistent API. ([ #253 ] )
65
- - Remove ` cargo-metadata ` as a build dependency to cut down dependencies and
65
+ - Remove ` cargo-metadata ` as a build dependency to cut down dependencies and
66
66
the reliance on ` resolver = "2" ` . ([ #270 ] )
67
67
68
68
### Fixed
@@ -115,6 +115,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
115
115
- Adc's ` SampleTime ` type has been reworked and is now a consistent wrapper around
116
116
the underlying types for ` stm32f3 ` 's ` SMP9_A ` and ` SMP18_A ` type. ([ #266 ] )
117
117
- Rename ` CkMode ` to ` ClockMode ` ([ #266 ] )
118
+ - Rename ` stm32-usbd ` feature to ` usb ` . ` stm32-usbd ` is still used as a
119
+ dependency. ([ #271 ] )
118
120
119
121
## [ v0.7.0] - 2021-06-18
120
122
@@ -440,6 +442,7 @@ let clocks = rcc
440
442
[ defmt ] : https://github.com/knurling-rs/defmt
441
443
[ filter ] : https://defmt.ferrous-systems.com/filtering.html
442
444
445
+ [ #271 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/271
443
446
[ #270 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/270
444
447
[ #266 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/266
445
448
[ #265 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/265
Original file line number Diff line number Diff line change @@ -28,15 +28,15 @@ members = [
28
28
]
29
29
30
30
[package .metadata .docs .rs ]
31
- features = [" stm32f303xc" , " rt" , " stm32-usbd " , " can" ]
31
+ features = [" stm32f303xc" , " rt" , " usb " , " can" ]
32
32
targets = [" thumbv7em-none-eabihf" ]
33
33
rustc-args = [" --cfg" , " docsrs" ]
34
34
35
35
[dependencies ]
36
36
cfg-if = " 1.0.0"
37
37
cortex-m = " 0.7.2"
38
38
cortex-m-rt = " 0.6.14"
39
- defmt = { version = " 0.2.2 " , optional = true }
39
+ defmt = { version = " 0.2.3 " , optional = true }
40
40
embedded-dma = " 0.1.2"
41
41
embedded-hal = { version = " 0.2.5" , features = [" unproven" ] }
42
42
embedded-time = " 0.12.0"
@@ -73,6 +73,7 @@ direct-call-deprecated = []
73
73
ld = []
74
74
rt = [" stm32f3/rt" ]
75
75
can = [" bxcan" ]
76
+ usb = [" stm32-usbd" ]
76
77
77
78
svd-f301 = [" stm32f3/stm32f301" ]
78
79
svd-f302 = [" stm32f3/stm32f302" ]
@@ -170,7 +171,7 @@ required-features = ["ld", "stm32f303xc"]
170
171
171
172
[[example ]]
172
173
name = " usb_serial"
173
- required-features = [" ld" , " stm32f303xc" , " stm32-usbd " ]
174
+ required-features = [" ld" , " stm32f303xc" , " usb " ]
174
175
175
176
[[example ]]
176
177
name = " spi"
Original file line number Diff line number Diff line change 76
76
### `can`
77
77
78
78
Enable CAN peripherals on supported targets.
79
+ The can implementation of the interface is backed by [`bxcan`](https://crates.io/crates/bxcan)
79
80
80
- ### `stm32-usbd `
81
+ ### `usb `
81
82
82
- Enable USB peripherals on supported targets.
83
+ Enable USB peripherals on supported targets via the [`stm32-usbd`](https://crates.io/crates/sttm32-usbd) crate .
83
84
84
85
### `enumset`
85
86
@@ -184,15 +185,15 @@ pub mod spi;
184
185
pub mod syscfg;
185
186
pub mod timer;
186
187
#[ cfg( all(
187
- feature = "stm32-usbd " ,
188
+ feature = "usb " ,
188
189
any(
189
190
feature = "stm32f303xb" ,
190
191
feature = "stm32f303xc" ,
191
192
feature = "stm32f303xd" ,
192
193
feature = "stm32f303xe" ,
193
194
) ,
194
195
) ) ]
195
- #[ cfg_attr( docsrs, doc( cfg( feature = "stm32-usbd " ) ) ) ]
196
+ #[ cfg_attr( docsrs, doc( cfg( feature = "usb " ) ) ) ]
196
197
pub mod usb;
197
198
pub mod watchdog;
198
199
You can’t perform that action at this time.
0 commit comments