arm/stm32u5: 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:58 -05:00
committed by Gedare Bloom
parent 94475b3386
commit dcde65029b
6 changed files with 43 additions and 0 deletions

View File

@@ -933,6 +933,10 @@ HAL_StatusTypeDef HAL_PWR_GetConfigAttributes(uint32_t Item, uint32_t *pAttribut
attributes = ((PWR->PRIVCFGR & PWR_PRIVCFGR_NSPRIV) == 0U) ? PWR_NSEC_NPRIV : PWR_NSEC_PRIV;
}
#else
#ifdef __rtems__
(void) Item;
#endif
/* Get Non-Secure privileges attribute */
attributes = ((PWR->PRIVCFGR & PWR_PRIVCFGR_NSPRIV) == 0U) ? PWR_NSEC_NPRIV : PWR_NSEC_PRIV;
#endif /* __ARM_FEATURE_CMSE */

View File

@@ -1666,6 +1666,10 @@ HAL_StatusTypeDef HAL_RCC_ClockConfig(const RCC_ClkInitTypeDef *const pRCC_Clk
*/
void HAL_RCC_MCOConfig(uint32_t RCC_MCOx, uint32_t RCC_MCOSource, uint32_t RCC_MCODiv)
{
#ifdef __rtems__
(void) RCC_MCOx;
#endif
GPIO_InitTypeDef gpio_initstruct;
/* Check the parameters */
assert_param(IS_RCC_MCO(RCC_MCOx));
@@ -2108,6 +2112,10 @@ void HAL_RCC_ConfigAttributes(uint32_t Item, uint32_t Attributes)
CLEAR_BIT(RCC->PRIVCFGR, RCC_PRIVCFGR_NSPRIV);
break;
#else
#ifdef __rtems__
(void) Item;
#endif
/* Non-secure Privilege attribute */
case RCC_NSEC_PRIV:
SET_BIT(RCC->PRIVCFGR, RCC_PRIVCFGR_NSPRIV);
@@ -2162,6 +2170,10 @@ HAL_StatusTypeDef HAL_RCC_GetConfigAttributes(uint32_t Item, uint32_t *pAttribut
attributes = ((RCC->PRIVCFGR & RCC_PRIVCFGR_NSPRIV) == 0U) ? RCC_NSEC_NPRIV : RCC_NSEC_PRIV;
}
#else
#ifdef __rtems__
(void) Item;
#endif
/* Get Non-Secure privileges attribute */
attributes = ((RCC->PRIVCFGR & RCC_PRIVCFGR_NSPRIV) == 0U) ? RCC_NSEC_NPRIV : RCC_NSEC_PRIV;
#endif /* __ARM_FEATURE_CMSE */

View File

@@ -146,6 +146,10 @@
*/
ErrorStatus LL_DAC_DeInit(const DAC_TypeDef *DACx)
{
#ifdef __rtems__
(void) DACx;
#endif
/* Check the parameters */
assert_param(IS_DAC_ALL_INSTANCE(DACx));