File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ pub struct InterruptReason {
64
64
pub tx : bool ,
65
65
/// A DMA error occured.
66
66
pub dma_error : bool ,
67
- #[ cfg( feature = "ptp" ) ]
67
+ #[ cfg( all ( feature = "ptp" , not ( feature = "stm32f1xx-hal" ) ) ) ]
68
68
/// The target time configured for PTP has
69
69
/// passed.
70
70
pub time_passed : bool ,
@@ -78,14 +78,14 @@ pub struct InterruptReason {
78
78
pub fn eth_interrupt_handler ( ) -> InterruptReason {
79
79
let dma = EthernetDMA :: interrupt_handler ( ) ;
80
80
81
- #[ cfg( feature = "ptp" ) ]
81
+ #[ cfg( all ( feature = "ptp" , not ( feature = "stm32f1xx-hal" ) ) ) ]
82
82
let is_time_trigger = EthernetPTP :: interrupt_handler ( ) ;
83
83
84
84
InterruptReason {
85
85
rx : dma. is_rx ,
86
86
tx : dma. is_tx ,
87
87
dma_error : dma. is_error ,
88
- #[ cfg( feature = "ptp" ) ]
88
+ #[ cfg( all ( feature = "ptp" , not ( feature = "stm32f1xx-hal" ) ) ) ]
89
89
time_passed : is_time_trigger,
90
90
}
91
91
}
You can’t perform that action at this time.
0 commit comments