We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecdc24b commit 57453b1Copy full SHA for 57453b1
examples/fmc.rs
@@ -15,7 +15,7 @@ mod utilities;
15
extern crate cortex_m;
16
17
use cortex_m_rt::entry;
18
-use stm32h7xx_hal::gpio::{alt::fmc as alt, Speed};
+use stm32h7xx_hal::gpio::alt::fmc as alt;
19
use stm32h7xx_hal::{pac, prelude::*};
20
21
use stm32_fmc::devices::is42s32800g_6;
src/gpio/alt/h7.rs
@@ -608,7 +608,11 @@ pub mod eth {
608
<TxClk, PushPull> for [
609
PC3<11>,
610
],
611
+ }
612
613
+ // TODO: check
614
+ //#[cfg(feature = "gpio-h747")]
615
+ pin! {
616
<Txd2, PushPull> for [
617
PC2<11>,
618
@@ -5317,6 +5321,18 @@ pub mod otg_hs {
5317
5321
5318
5322
}
5319
5323
5324
+ // TODO: check this, absent in Cube-MX
5325
+ #[cfg(any(feature = "gpio-h72", feature = "gpio-h7a2"))]
5326
5327
+ <Dm, PushPull> for [
5328
+ PA11<10>,
5329
+ ],
5330
+
5331
+ <Dp, PushPull> for [
5332
+ PA12<10>,
5333
5334
5335
5320
5336
pin! {
5337
<Id, PushPull> for [
5338
#[cfg(any(feature = "gpio-h72", feature = "gpio-h7a2"))]
@@ -5382,11 +5398,13 @@ pub mod otg_hs {
5382
5398
5383
5399
5384
5400
5385
- #[cfg(any(feature = "gpio-h747", feature = "gpio-h7a2"))]
5401
+ //#[cfg(any(feature = "gpio-h747", feature = "gpio-h7a2"))]
5386
5402
5387
5403
<UlpiDir, PushPull> for [
5404
5388
5405
PC2<10, Speed::VeryHigh>,
5389
5406
5407
+ #[cfg(any(feature = "gpio-h747", feature = "gpio-h7a2"))]
5390
5408
PI11<10, Speed::VeryHigh>,
5391
5409
5392
5410
src/usb_hs.rs
@@ -33,7 +33,6 @@ pub struct USB1 {
33
pub hclk: Hertz,
34
35
impl USB1 {
36
- #[cfg(any(feature = "rm0433", feature = "rm0399"))]
37
pub fn new(
38
usb_global: stm32::OTG1_HS_GLOBAL,
39
usb_device: stm32::OTG1_HS_DEVICE,
@@ -47,20 +46,6 @@ impl USB1 {
47
46
let _ = pin_dp.into();
48
Self::new_unchecked(usb_global, usb_device, usb_pwrclk, prec, clocks)
49
50
- #[cfg(any(feature = "rm0455", feature = "rm0468"))]
51
- pub fn new(
52
- usb_global: stm32::OTG1_HS_GLOBAL,
53
- usb_device: stm32::OTG1_HS_DEVICE,
54
- usb_pwrclk: stm32::OTG1_HS_PWRCLK,
55
- pin_dm: impl Into<gpio::alt::otg_fs::Dm>,
56
- pin_dp: impl Into<gpio::alt::otg_fs::Dp>,
57
- prec: rcc::rec::Usb1Otg,
58
- clocks: &rcc::CoreClocks,
59
- ) -> Self {
60
- let _ = pin_dm.into();
61
- let _ = pin_dp.into();
62
- Self::new_unchecked(usb_global, usb_device, usb_pwrclk, prec, clocks)
63
- }
64
pub fn new_unchecked(
65
66
0 commit comments