summaryrefslogtreecommitdiffstats
path: root/bsps/arm
diff options
context:
space:
mode:
authorKarel Gardas <karel@functional.vision>2023-07-19 18:54:31 +0200
committerKarel Gardas <karel@functional.vision>2023-07-31 15:15:09 +0200
commit93bcf4e7a25acc91f30070e56a8d4fe7108835a0 (patch)
tree57498654bbde1d8034d298660af77715f35cbb21 /bsps/arm
parentbsps/stm32h7: recreate stm32h7xx_hal_conf.h (diff)
downloadrtems-93bcf4e7a25acc91f30070e56a8d4fe7108835a0.tar.bz2
bsps/stm32h7: disable ETH_UpdateDescriptor as unused function
Diffstat (limited to 'bsps/arm')
-rw-r--r--bsps/arm/stm32h7/hal/stm32h7xx_hal_eth.c2
1 files changed, 2 insertions, 0 deletions
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__ */
}
/**