[rtems commit] bsps/stm32h7: disable ETH_UpdateDescriptor as unused function
Karel Gardas
karel at rtems.org
Mon Jul 31 16:11:50 UTC 2023
Module: rtems
Branch: master
Commit: 93bcf4e7a25acc91f30070e56a8d4fe7108835a0
Changeset: http://git.rtems.org/rtems/commit/?id=93bcf4e7a25acc91f30070e56a8d4fe7108835a0
Author: Karel Gardas <karel at functional.vision>
Date: Wed Jul 19 18:54:31 2023 +0200
bsps/stm32h7: disable ETH_UpdateDescriptor as unused function
---
bsps/arm/stm32h7/hal/stm32h7xx_hal_eth.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bsps/arm/stm32h7/hal/stm32h7xx_hal_eth.c b/bsps/arm/stm32h7/hal/stm32h7xx_hal_eth.c
index 1e961b277e..9396759326 100644
--- a/bsps/arm/stm32h7/hal/stm32h7xx_hal_eth.c
+++ b/bsps/arm/stm32h7/hal/stm32h7xx_hal_eth.c
@@ -1153,6 +1153,7 @@ HAL_StatusTypeDef HAL_ETH_ReadData(ETH_HandleTypeDef *heth, void **pAppBuff)
*/
static void ETH_UpdateDescriptor(ETH_HandleTypeDef *heth)
{
+#ifndef __rtems__
uint32_t descidx;
uint32_t desccount;
ETH_DMADescTypeDef *dmarxdesc;
@@ -1217,6 +1218,7 @@ static void ETH_UpdateDescriptor(ETH_HandleTypeDef *heth)
heth->RxDescList.RxBuildDescIdx = descidx;
heth->RxDescList.RxBuildDescCnt = desccount;
}
+#endif /* ! __rtems__ */
}
/**
More information about the vc
mailing list