From 009db3b1777542c2d4bcb56535a3cb6d4eb174de Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 14 Jun 2022 21:24:25 +0200 Subject: [PATCH] Rename unused fields. --- src/otg_fs.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/otg_fs.rs b/src/otg_fs.rs index 836fb0a9..1a8eeda1 100644 --- a/src/otg_fs.rs +++ b/src/otg_fs.rs @@ -17,12 +17,12 @@ use crate::{ }; pub struct Usb { - usb_global: pac::OTG_FS_GLOBAL, - usb_device: pac::OTG_FS_DEVICE, - usb_pwrclk: pac::OTG_FS_PWRCLK, + _global: pac::OTG_FS_GLOBAL, + _device: pac::OTG_FS_DEVICE, + _pwrclk: pac::OTG_FS_PWRCLK, // TODO: check type - pin_dm: PA11>, - pin_dp: PA12>, + _dm: PA11>, + _dp: PA12>, hclk: Hertz, } @@ -39,11 +39,11 @@ impl Usb { pwr.cr2.reg().modify(|_, w| w.usv().set_bit()); Self { - usb_global: global, - usb_device: device, - usb_pwrclk: pwrclk, - pin_dm: dm, - pin_dp: dp, + _global: global, + _device: device, + _pwrclk: pwrclk, + _dm: dm, + _dp: dp, hclk: clocks.hclk(), } }