File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ use core::cell::RefCell;
1111use core:: default:: Default ;
1212use cortex_m_rt:: { entry, exception} ;
1313
14- use cortex_m:: asm;
1514use cortex_m:: interrupt:: Mutex ;
1615use stm32_eth:: {
1716 mac:: { phy:: BarePhy , Phy } ,
@@ -42,8 +41,8 @@ fn main() -> ! {
4241 defmt:: info!( "Enabling ethernet..." ) ;
4342 let ( eth_pins, mdio, mdc) = common:: setup_pins ( gpio) ;
4443
45- let mut rx_ring: [ RingEntry < _ > ; 16 ] = Default :: default ( ) ;
46- let mut tx_ring: [ RingEntry < _ > ; 8 ] = Default :: default ( ) ;
44+ let mut rx_ring: [ RingEntry < _ > ; 2 ] = Default :: default ( ) ;
45+ let mut tx_ring: [ RingEntry < _ > ; 2 ] = Default :: default ( ) ;
4746 let ( mut eth_dma, eth_mac) = stm32_eth:: new (
4847 ethernet. mac ,
4948 ethernet. mmc ,
@@ -143,13 +142,6 @@ fn main() -> ! {
143142 }
144143 }
145144 }
146-
147- cortex_m:: interrupt:: free ( |cs| {
148- let eth_pending = ETH_PENDING . borrow ( cs) . borrow_mut ( ) ;
149- if !* eth_pending {
150- asm:: wfi ( ) ;
151- }
152- } ) ;
153145 }
154146}
155147
You can’t perform that action at this time.
0 commit comments