summaryrefslogtreecommitdiffstats
path: root/bsps/arm/stm32h7/hal/stm32h7xx_hal.c
diff options
context:
space:
mode:
authorKarel Gardas <karel@functional.vision>2023-07-19 18:18:29 +0200
committerKarel Gardas <karel@functional.vision>2023-07-31 15:15:09 +0200
commit4b3d7993d2cebf0596066d99f2475017064723c0 (patch)
treebf384bd8cee3543139788250813be36bb7bb9525 /bsps/arm/stm32h7/hal/stm32h7xx_hal.c
parentbsps/stm32h7: update STM32 H7 HAL (diff)
downloadrtems-4b3d7993d2cebf0596066d99f2475017064723c0.tar.bz2
bsp/stm32h7: Disable unused functions
Re-apply based on: commit e4ba06f8b49da4334543f713ba437263c794d7ee Author: Sebastian Huber <sebastian.huber@embedded-brains.de> Date: Thu Apr 2 08:28:56 2020 +0200 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.c10
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 c59b17d6cf..704626aa92 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.
@@ -449,6 +458,7 @@ __weak void HAL_ResumeTick(void)
/* Enable SysTick Interrupt */
SysTick->CTRL |= SysTick_CTRL_TICKINT_Msk;
}
+#endif /* __rtems__ */
/**
* @brief Returns the HAL revision