arm/stm32h7: Address unused parameter warnings

Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
This commit is contained in:
Joel Sherrill
2025-10-10 13:05:30 -05:00
committed by Gedare Bloom
parent 004e3b7bbc
commit 94475b3386
6 changed files with 31 additions and 0 deletions

View File

@@ -1225,6 +1225,8 @@ static void ETH_UpdateDescriptor(ETH_HandleTypeDef *heth)
heth->RxDescList.RxBuildDescIdx = descidx;
heth->RxDescList.RxBuildDescCnt = desccount;
}
#else
(void) heth;
#endif /* ! __rtems__ */
}
@@ -3011,6 +3013,8 @@ static void ETH_DMATxDescListInit(ETH_HandleTypeDef *heth)
/* Set Transmit Descriptor Tail pointer */
WRITE_REG(heth->Instance->DMACTDTPR, (uint32_t) heth->Init.TxDesc);
#else
(void) heth;
#endif /* __rtems__ */
}
@@ -3057,6 +3061,8 @@ static void ETH_DMARxDescListInit(ETH_HandleTypeDef *heth)
/* Set Receive Descriptor Tail pointer Address */
WRITE_REG(heth->Instance->DMACRDTPR, ((uint32_t)(heth->Init.RxDesc + (uint32_t)(ETH_RX_DESC_CNT - 1U))));
#else
(void) heth;
#endif /* __rtems__ */
}

View File

@@ -55,6 +55,10 @@
*/
ErrorStatus LL_HRTIM_DeInit(HRTIM_TypeDef *HRTIMx)
{
#ifdef __rtems__
(void) HRTIMx;
#endif
ErrorStatus result = SUCCESS;
/* Check the parameters */