diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-04-02 08:28:56 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-10-27 06:11:45 +0100 |
commit | e4ba06f8b49da4334543f713ba437263c794d7ee (patch) | |
tree | b53f0f0457ec834172249f6ce5cd47e7b466410a /bsps/arm/stm32h7/hal/stm32h7xx_hal.c | |
parent | bsp/stm32h7: Enable LL drivers (diff) | |
download | rtems-e4ba06f8b49da4334543f713ba437263c794d7ee.tar.bz2 |
bsp/stm32h7: Disable unused functions
Update #3910.
Diffstat (limited to 'bsps/arm/stm32h7/hal/stm32h7xx_hal.c')
-rw-r--r-- | bsps/arm/stm32h7/hal/stm32h7xx_hal.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bsps/arm/stm32h7/hal/stm32h7xx_hal.c b/bsps/arm/stm32h7/hal/stm32h7xx_hal.c index 3e92312e99..8fc0f84c93 100644 --- a/bsps/arm/stm32h7/hal/stm32h7xx_hal.c +++ b/bsps/arm/stm32h7/hal/stm32h7xx_hal.c @@ -68,9 +68,11 @@ /** @defgroup HAL_Exported_Variables HAL Exported Variables
* @{
*/
+#ifndef __rtems__
__IO uint32_t uwTick;
uint32_t uwTickPrio = (1UL << __NVIC_PRIO_BITS); /* Invalid PRIO */
HAL_TickFreqTypeDef uwTickFreq = HAL_TICK_FREQ_DEFAULT; /* 1KHz */
+#endif /* __rtems__ */
/**
* @}
*/
@@ -166,11 +168,13 @@ uint32_t common_system_clock; SystemCoreClock = common_system_clock;
#endif /* DUAL_CORE && CORE_CM4 */
+#ifndef __rtems__
/* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
{
return HAL_ERROR;
}
+#endif /* __rtems__ */
/* Init the low level hardware */
HAL_MspInit();
@@ -179,6 +183,7 @@ uint32_t common_system_clock; return HAL_OK;
}
+#ifndef __rtems__
/**
* @brief This function de-Initializes common part of the HAL and stops the systick.
* This function is optional.
@@ -220,7 +225,9 @@ HAL_StatusTypeDef HAL_DeInit(void) /* Return function status */
return HAL_OK;
}
+#endif /* __rtems__ */
+#ifndef __rtems__
/**
* @brief Initializes the MSP.
* @retval None
@@ -287,6 +294,7 @@ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) /* Return function status */
return HAL_OK;
}
+#endif /* __rtems__ */
/**
* @}
@@ -315,6 +323,7 @@ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) * @{
*/
+#ifndef __rtems__
/**
* @brief This function is called to increment a global variable "uwTick"
* used as application time base.
@@ -448,6 +457,7 @@ __weak void HAL_ResumeTick(void) /* Enable SysTick Interrupt */
SysTick->CTRL |= SysTick_CTRL_TICKINT_Msk;
}
+#endif /* __rtems__ */
/**
* @brief Returns the HAL revision
|