Skip to content

Commit 5edd8d8

Browse files
RAc-GITalfred2g
andauthored
Amended ETH_DMA_IT_xxx flags in ETH_DMA_ALL_INTS (#402)
* Amended ETH_DMA_IT_xxx flags in ETH_DMA_ALL_INTS according to the ST docs, this is a sticky bit that must be cleared explicitly even though it is an OR of different other status bits. * Update NetworkInterface.c Style: Fix Formatting Co-authored-by: alfred gedeon <[email protected]>
1 parent c33a9ac commit 5edd8d8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

portable/NetworkInterface/STM32Fxx/NetworkInterface.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,11 @@
7373
#define EMAC_IF_ERR_EVENT 4UL
7474
#define EMAC_IF_ALL_EVENT ( EMAC_IF_RX_EVENT | EMAC_IF_TX_EVENT | EMAC_IF_ERR_EVENT )
7575

76-
#define ETH_DMA_ALL_INTS \
77-
( ETH_DMA_IT_TST | ETH_DMA_IT_PMT | ETH_DMA_IT_MMC | ETH_DMA_IT_NIS | ETH_DMA_IT_ER | \
78-
ETH_DMA_IT_FBE | ETH_DMA_IT_RWT | ETH_DMA_IT_RPS | ETH_DMA_IT_RBU | ETH_DMA_IT_R | \
79-
ETH_DMA_IT_TU | ETH_DMA_IT_RO | ETH_DMA_IT_TJT | ETH_DMA_IT_TPS | ETH_DMA_IT_T )
76+
#define ETH_DMA_ALL_INTS \
77+
( ETH_DMA_IT_TST | ETH_DMA_IT_PMT | ETH_DMA_IT_MMC | ETH_DMA_IT_NIS | \
78+
ETH_DMA_IT_AIS | ETH_DMA_IT_ER | ETH_DMA_IT_FBE | ETH_DMA_IT_RWT | \
79+
ETH_DMA_IT_RPS | ETH_DMA_IT_RBU | ETH_DMA_IT_R | ETH_DMA_IT_TU | \
80+
ETH_DMA_IT_RO | ETH_DMA_IT_TJT | ETH_DMA_IT_TPS | ETH_DMA_IT_T )
8081

8182
#ifndef NETWORK_BUFFER_HEADER_SIZE
8283
#define NETWORK_BUFFER_HEADER_SIZE ( ipBUFFER_PADDING )

0 commit comments

Comments
 (0)