summaryrefslogtreecommitdiff
path: root/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc.c')
-rw-r--r--bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc.c6
1 files changed, 6 insertions, 0 deletions
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;
}