mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-02-04 12:41:34 +00:00
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:
committed by
Gedare Bloom
parent
004e3b7bbc
commit
94475b3386
@@ -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__ */
|
||||
}
|
||||
|
||||
|
||||
@@ -55,6 +55,10 @@
|
||||
*/
|
||||
ErrorStatus LL_HRTIM_DeInit(HRTIM_TypeDef *HRTIMx)
|
||||
{
|
||||
#ifdef __rtems__
|
||||
(void) HRTIMx;
|
||||
#endif
|
||||
|
||||
ErrorStatus result = SUCCESS;
|
||||
|
||||
/* Check the parameters */
|
||||
|
||||
Reference in New Issue
Block a user