File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ use crate::{
17
17
} ;
18
18
19
19
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 ,
23
23
// 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 > > ,
26
26
hclk : Hertz ,
27
27
}
28
28
@@ -39,11 +39,11 @@ impl Usb {
39
39
pwr. cr2 . reg ( ) . modify ( |_, w| w. usv ( ) . set_bit ( ) ) ;
40
40
41
41
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,
47
47
hclk : clocks. hclk ( ) ,
48
48
}
49
49
}
You can’t perform that action at this time.
0 commit comments