Skip to content

Commit 901b435

Browse files
committed
Rename unused fields.
1 parent 494131e commit 901b435

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/otg_fs.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ use crate::{
1717
};
1818

1919
pub struct Usb {
20-
usb_global: pac::OTG_FS_GLOBAL,
21-
usb_device: pac::OTG_FS_DEVICE,
22-
usb_pwrclk: pac::OTG_FS_PWRCLK,
20+
_global: pac::OTG_FS_GLOBAL,
21+
_device: pac::OTG_FS_DEVICE,
22+
_pwrclk: pac::OTG_FS_PWRCLK,
2323
// TODO: check type
24-
pin_dm: PA11<Alternate<PushPull, 10>>,
25-
pin_dp: PA12<Alternate<PushPull, 10>>,
24+
_dm: PA11<Alternate<PushPull, 10>>,
25+
_dp: PA12<Alternate<PushPull, 10>>,
2626
hclk: Hertz,
2727
}
2828

@@ -39,11 +39,11 @@ impl Usb {
3939
pwr.cr2.reg().modify(|_, w| w.usv().set_bit());
4040

4141
Self {
42-
usb_global: global,
43-
usb_device: device,
44-
usb_pwrclk: pwrclk,
45-
pin_dm: dm,
46-
pin_dp: dp,
42+
_global: global,
43+
_device: device,
44+
_pwrclk: pwrclk,
45+
_dm: dm,
46+
_dp: dp,
4747
hclk: clocks.hclk(),
4848
}
4949
}

0 commit comments

Comments
 (0)