File tree Expand file tree Collapse file tree 7 files changed +11
-6
lines changed Expand file tree Collapse file tree 7 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ exclude = [
22
22
[package .metadata .docs .rs ]
23
23
features = [" stm32f303xc" , " rt" , " stm32-usbd" , " can" ]
24
24
targets = [" thumbv7em-none-eabihf" ]
25
+ rustc-args = [" --cfg" , " docsrs" ]
25
26
26
27
[dependencies ]
27
28
cfg-if = " 1"
Original file line number Diff line number Diff line change 1
- //! Analog to Digital Converter. (Requires feature `stm32f303x[bcde]`)
1
+ //! Analog to Digital Converter.
2
2
//!
3
3
//! # Examples
4
4
//!
Original file line number Diff line number Diff line change 1
- //! Controller Area Network (Requires feature `can`)
1
+ //! Controller Area Network.
2
2
//!
3
3
//! CAN is currently not enabled by default, and
4
4
//! can be enabled by the `can` feature.
Original file line number Diff line number Diff line change 1
- //! Direct memory access (DMA) controller. (Requires feature `stm32f303*` or `stm32f302*`)
1
+ //! Direct memory access (DMA) controller.
2
2
//!
3
3
//! Currently DMA is only supported for STM32F303 or STM32F302 MCUs.
4
4
//!
Original file line number Diff line number Diff line change @@ -125,11 +125,14 @@ pub use stm32f3::stm32f3x4 as pac;
125
125
pub use crate :: pac:: interrupt;
126
126
127
127
#[ cfg( feature = "stm32f303" ) ]
128
+ #[ cfg_attr( docsrs, doc( cfg( feature = "stm32f303" ) ) ) ]
128
129
pub mod adc;
129
130
#[ cfg( feature = "can" ) ]
131
+ #[ cfg_attr( docsrs, doc( cfg( feature = "can" ) ) ) ]
130
132
pub mod can;
131
133
pub mod delay;
132
134
#[ cfg( any( feature = "stm32f302" , feature = "stm32f303" ) ) ]
135
+ #[ cfg_attr( docsrs, doc( cfg( any( feature = "stm32f302" , feature = "stm32f303" ) ) ) ) ]
133
136
pub mod dma;
134
137
pub mod flash;
135
138
pub mod gpio;
@@ -151,6 +154,7 @@ pub mod timer;
151
154
feature = "stm32f303xe" ,
152
155
) ,
153
156
) ) ]
157
+ #[ cfg_attr( docsrs, doc( cfg( feature = "stm32-usbd" ) ) ) ]
154
158
pub mod usb;
155
159
pub mod watchdog;
156
160
Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ impl CFGR {
425
425
/// - Maximal supported frequency with `HSE`: 72 Mhz
426
426
/// - Maximal supported frequency without `HSE`: 64 Mhz
427
427
///
428
- /// If [`CFGR::hse `] is not used, therefor `HSI / 2` is used.
428
+ /// If [`CFGR::use_hse `] is not set, `HSI / 2` will be used.
429
429
/// Only multiples of (HSI / 2) (4 Mhz) are allowed.
430
430
///
431
431
/// This is true for devices **except** the following devices,
@@ -818,7 +818,7 @@ impl Clocks {
818
818
/// Returns whether the USBCLK clock frequency is valid for the USB peripheral
819
819
///
820
820
/// If the microcontroller does support USB, 48 Mhz or 72 Mhz have to be used
821
- /// and the [`CFGR::hse `] must be used .
821
+ /// and the [`CFGR::use_hse `] must be set .
822
822
///
823
823
/// The APB1 / [`CFGR::pclk1`] clock must have a minimum frequency of 10 MHz to avoid data
824
824
/// overrun/underrun problems. [RM0316 32.5.2][RM0316]
Original file line number Diff line number Diff line change 1
- //! USB peripheral. (Requires feature `stm32-usbd`)
1
+ //! USB peripheral.
2
2
//!
3
3
//! See [examples/usb_serial.rs] for a usage example.
4
4
//!
You can’t perform that action at this time.
0 commit comments