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;
11
11
use core:: default:: Default ;
12
12
use cortex_m_rt:: { entry, exception} ;
13
13
14
- use cortex_m:: asm;
15
14
use cortex_m:: interrupt:: Mutex ;
16
15
use stm32_eth:: {
17
16
mac:: { phy:: BarePhy , Phy } ,
@@ -42,8 +41,8 @@ fn main() -> ! {
42
41
defmt:: info!( "Enabling ethernet..." ) ;
43
42
let ( eth_pins, mdio, mdc) = common:: setup_pins ( gpio) ;
44
43
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 ( ) ;
47
46
let ( mut eth_dma, eth_mac) = stm32_eth:: new (
48
47
ethernet. mac ,
49
48
ethernet. mmc ,
@@ -143,13 +142,6 @@ fn main() -> ! {
143
142
}
144
143
}
145
144
}
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
- } ) ;
153
145
}
154
146
}
155
147
You can’t perform that action at this time.
0 commit comments