Skip to content

Commit

Permalink
Fix for issue ETH_DMATXNDESCWBF_OWN inconsistent across device series
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradCvjetkovic committed Jun 24, 2024
1 parent 448eacf commit 5b8d8a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Drivers/ETH_MAC_STM32.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,11 @@ static int32_t ETH_MAC_SendFrame (const uint8_t *frame, uint32_t len, uint32_t f
tx_index = eth_mac0_ro_info.ptr_heth->TxDescList.CurTxDesc;
tx_desc = (ETH_DMADescTypeDef *)eth_mac0_ro_info.ptr_heth->TxDescList.TxDesc[tx_index];

#ifdef ETH_DMATXDESC_OWN
if ((*((volatile uint32_t *)tx_desc) & ETH_DMATXDESC_OWN) != 0U) {
#else
if ((tx_desc->DESC3 & ETH_DMATXNDESCWBF_OWN) != 0U) {
#endif
// If Transmitter is busy
return ARM_DRIVER_ERROR_BUSY;
}
Expand Down

0 comments on commit 5b8d8a4

Please sign in to comment.