File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -455,12 +455,6 @@ pub unsafe fn new_unchecked<const TD: usize, const RD: usize>(
455
455
// Ensure syscfg is enabled (for PMCR)
456
456
rcc. apb4enr . modify ( |_, w| w. syscfgen ( ) . set_bit ( ) ) ;
457
457
458
- // Reset ETH_DMA - write 1 and wait for 0.
459
- // On the H723, we have to do this before prec.enable()
460
- // or the DMA will never come out of reset
461
- eth_dma. dmamr . modify ( |_, w| w. swr ( ) . set_bit ( ) ) ;
462
- while eth_dma. dmamr . read ( ) . swr ( ) . bit_is_set ( ) { }
463
-
464
458
// AHB1 ETH1MACEN
465
459
prec. enable ( ) ;
466
460
@@ -478,6 +472,10 @@ pub unsafe fn new_unchecked<const TD: usize, const RD: usize>(
478
472
//rcc.ahb1rstr.modify(|_, w| w.eth1macrst().clear_bit());
479
473
480
474
cortex_m:: interrupt:: free ( |_cs| {
475
+ // reset ETH_DMA - write 1 and wait for 0
476
+ eth_dma. dmamr . modify ( |_, w| w. swr ( ) . set_bit ( ) ) ;
477
+ while eth_dma. dmamr . read ( ) . swr ( ) . bit_is_set ( ) { }
478
+
481
479
// 200 MHz
482
480
eth_mac
483
481
. mac1ustcr
You can’t perform that action at this time.
0 commit comments