mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +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
@@ -133,6 +133,9 @@ int32_t MT25TL01G_Exit4BytesAddressMode(QSPI_HandleTypeDef *Ctx, MT25TL01G_Inter
|
||||
*/
|
||||
int32_t MT25TL01G_AutoPollingMemReady(QSPI_HandleTypeDef *Ctx, MT25TL01G_Interface_t Mode)
|
||||
{
|
||||
#ifdef __rtems__
|
||||
(void) Mode;
|
||||
#endif
|
||||
|
||||
QSPI_CommandTypeDef s_command;
|
||||
QSPI_AutoPollingTypeDef s_config;
|
||||
@@ -1013,6 +1016,9 @@ int32_t MT25TL01G_ReleaseFromDeepPowerDown(QSPI_HandleTypeDef *Ctx, MT25TL01G_In
|
||||
*/
|
||||
int32_t MT25TL01G_ReadSPBLockRegister(QSPI_HandleTypeDef *Ctx, MT25TL01G_Interface_t Mode, uint8_t *SPBRegister)
|
||||
{
|
||||
#ifdef __rtems__
|
||||
(void) Mode;
|
||||
#endif
|
||||
QSPI_CommandTypeDef s_command;
|
||||
|
||||
/* Initialize the reading of SPB lock register command */
|
||||
|
||||
@@ -170,6 +170,8 @@ static bool stm32h7_uart_first_open(
|
||||
rtems_libio_open_close_args_t *args
|
||||
)
|
||||
{
|
||||
(void) args;
|
||||
|
||||
stm32h7_uart_context *ctx;
|
||||
UART_HandleTypeDef *uart;
|
||||
#ifdef BSP_CONSOLE_USE_INTERRUPTS
|
||||
@@ -212,6 +214,8 @@ static void stm32h7_uart_last_close(
|
||||
rtems_libio_open_close_args_t *args
|
||||
)
|
||||
{
|
||||
(void) args;
|
||||
|
||||
#ifdef BSP_CONSOLE_USE_INTERRUPTS
|
||||
stm32h7_uart_context *ctx;
|
||||
|
||||
@@ -222,6 +226,9 @@ static void stm32h7_uart_last_close(
|
||||
stm32h7_uart_interrupt,
|
||||
tty
|
||||
);
|
||||
#else
|
||||
(void) tty;
|
||||
(void) base;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -274,6 +281,10 @@ rtems_status_code console_initialize(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
(void) arg;
|
||||
|
||||
size_t i;
|
||||
|
||||
rtems_termios_initialize();
|
||||
|
||||
@@ -86,6 +86,8 @@ static const stm32h7_gpio_config gpiob = {
|
||||
void
|
||||
HAL_ETH_MspInit(ETH_HandleTypeDef *heth)
|
||||
{
|
||||
(void) heth;
|
||||
|
||||
stm32h7_clk_enable(STM32H7_MODULE_ETH1MAC);
|
||||
stm32h7_clk_enable(STM32H7_MODULE_ETH1TX);
|
||||
stm32h7_clk_enable(STM32H7_MODULE_ETH1RX);
|
||||
|
||||
@@ -78,6 +78,8 @@ static const stm32h7_gpio_config gpiod = {
|
||||
void
|
||||
HAL_SD_MspInit(SD_HandleTypeDef *hsd)
|
||||
{
|
||||
(void) hsd;
|
||||
|
||||
stm32h7_clk_enable(STM32H7_MODULE_SDMMC1);
|
||||
stm32h7_gpio_init(&gpiob);
|
||||
stm32h7_gpio_init(&gpioc_af12);
|
||||
|
||||
@@ -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