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> {
248
248
/// Receive the next packet (if any is ready), or return [`Err`]
249
249
/// immediately.
250
250
pub fn recv_next ( & mut self , packet_id : Option < PacketId > ) -> Result < RxPacket , RxError > {
251
+ #[ cfg( feature = "stm32h7xx-hal" ) ]
251
252
let entries_len = self . ring . len ( ) ;
253
+
252
254
let entry = self . recv_next_impl ( packet_id. map ( |p| p. into ( ) ) ) ?;
253
255
254
256
#[ cfg( feature = "f-series" ) ]
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ impl EthernetMAC {
305
305
}
306
306
307
307
// 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" ) ) ) ]
309
309
pub ( crate ) fn unmask_timestamp_trigger_interrupt ( ) {
310
310
// SAFETY: MACIMR only receives atomic writes.
311
311
let mac = & unsafe { & * ETHERNET_MAC :: ptr ( ) } ;
You can’t perform that action at this time.
0 commit comments