From 35034554c607ac1c1b4cca86ff9059b883b401b7 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 2 Apr 2020 08:28:56 +0200 Subject: bsp/stm32h7: Disable unused functions Update #3910. --- bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc.c') diff --git a/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc.c b/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc.c index 11762091f3..4b303c6c54 100644 --- a/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc.c +++ b/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc.c @@ -175,6 +175,7 @@ * @{ */ +#ifndef __rtems__ /** * @brief Resets the RCC clock configuration to the default reset state. * @note The default reset state of the clock configuration is given below: @@ -385,6 +386,7 @@ HAL_StatusTypeDef HAL_RCC_DeInit(void) return HAL_OK; } +#endif /* __rtems__ */ /** * @brief Initializes the RCC Oscillators according to the specified parameters in the @@ -1195,7 +1197,11 @@ HAL_StatusTypeDef HAL_RCC_ClockConfig(const RCC_ClkInitTypeDef *RCC_ClkInitStru #endif /* DUAL_CORE && CORE_CM4 */ /* Configure the source of time base considering new system clocks settings*/ +#ifndef __rtems__ halstatus = HAL_InitTick (uwTickPrio); +#else /* __rtems__ */ + halstatus = HAL_OK; +#endif /* __rtems__ */ return halstatus; } -- cgit v1.2.3