File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ fn main() -> ! {
119
119
dp. ETHERNET_MAC ,
120
120
dp. ETHERNET_MTL ,
121
121
dp. ETHERNET_DMA ,
122
- & mut ETHERNET_DESCRIPTOR_RING ,
122
+ & mut * core :: ptr :: addr_of_mut! ( ETHERNET_DESCRIPTOR_RING ) ,
123
123
mac_addr. clone ( ) ,
124
124
ccdr. peripheral . ETH1MAC ,
125
125
& ccdr. clocks ,
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ impl<'a> EthernetInterface<'a> {
187
187
188
188
let mut interface = EthernetInterface :: new ( pins) ;
189
189
let timeout_timer = match interface. up (
190
- unsafe { & mut ETHERNET_STORAGE } ,
190
+ unsafe { & mut * core :: ptr :: addr_of_mut! ( ETHERNET_STORAGE ) } ,
191
191
mac_address,
192
192
ip_address,
193
193
eth1mac,
@@ -248,7 +248,7 @@ impl<'a> EthernetInterface<'a> {
248
248
dp. ETHERNET_MAC ,
249
249
dp. ETHERNET_MTL ,
250
250
dp. ETHERNET_DMA ,
251
- & mut ETHERNET_DESCRIPTOR_RING ,
251
+ & mut * core :: ptr :: addr_of_mut! ( ETHERNET_DESCRIPTOR_RING ) ,
252
252
ethernet_address,
253
253
eth1mac,
254
254
ccdr_clocks,
You can’t perform that action at this time.
0 commit comments