File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 55//!
66//! The I2C bus is configured with Fast Mode Plus (FMP) enabled in SysCfg, and a 1MHz I2C clock rate.
77//!
8- //! ```DEFMT_LOG=debug cargo run --release --example rand --features stm32g431,defmt -- --chip STM32G431KBTx```
8+ //! ```DEFMT_LOG=debug cargo run --release --example i2c-fmp-as5600 --features stm32g431,defmt -- --chip STM32G431KBTx```
99
1010#![ deny( warnings) ]
1111#![ deny( unsafe_code) ]
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ impl SysCfg {
3434 /// Pins that are configured as I2C alternate functions will be configured as fast mode plus.
3535 /// The alternate function mode of the pin must be set before FMP is enabled in SysCfg.
3636 ///
37- /// When FM+ mode is activated on a pin, the GPIO speed configuration (OSPEEDR) is is ignored and overridden.
37+ /// When FM+ mode is activated on a pin, the GPIO speed configuration (OSPEEDR) is ignored and overridden.
3838 ///
3939 pub fn i2c_fmp_enable < const BUS : u8 > ( & mut self , en : bool ) {
4040 match BUS {
You can’t perform that action at this time.
0 commit comments