File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,9 @@ impl<'a> RxRing<'a> {
248248 /// Receive the next packet (if any is ready), or return [`Err`]
249249 /// immediately.
250250 pub fn recv_next ( & mut self , packet_id : Option < PacketId > ) -> Result < RxPacket , RxError > {
251+ #[ cfg( feature = "stm32h7xx-hal" ) ]
251252 let entries_len = self . ring . len ( ) ;
253+
252254 let entry = self . recv_next_impl ( packet_id. map ( |p| p. into ( ) ) ) ?;
253255
254256 #[ cfg( feature = "f-series" ) ]
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ impl EthernetMAC {
305305 }
306306
307307 // NOTE(allow): only used on F4 and F7
308- #[ cfg( all( feature = "ptp" , feature = "f-series" ) ) ]
308+ #[ cfg( all( feature = "ptp" , feature = "f-series" , not ( feature = "stm32f1xx-hal" ) ) ) ]
309309 pub ( crate ) fn unmask_timestamp_trigger_interrupt ( ) {
310310 // SAFETY: MACIMR only receives atomic writes.
311311 let mac = & unsafe { & * ETHERNET_MAC :: ptr ( ) } ;
You can’t perform that action at this time.
0 commit comments