Commit f1b7d830 authored by Erwan Gouriou's avatar Erwan Gouriou Committed by Alberto Escolar
Browse files

stm32cube: stm32h5: eth: Fix calculation of the tail pointer

Fixed in hal_stm32 main branch following cube version update
from version v1.3.0 to version v1.4.0.

Signed-off-by: default avatarErwan Gouriou <erwan.gouriou@st.com>
parent ca6c8767
Loading
Loading
Loading
Loading
+1 −1
Changes for stm32cube/stm32h5xx/drivers/src/stm32h5xx_hal_eth.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -1218,7 +1218,7 @@ static void ETH_UpdateDescriptor(ETH_HandleTypeDef *heth)
  if (heth->RxDescList.RxBuildDescCnt != desccount)
  {
    /* Set the tail pointer index */
    tailidx = (descidx + 1U) % ETH_RX_DESC_CNT;
    tailidx = (ETH_RX_DESC_CNT + descidx - 1U) % ETH_RX_DESC_CNT;

    /* DMB instruction to avoid race condition */
    __DMB();