summaryrefslogtreecommitdiff
path: root/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc_ex.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-03-19 11:28:45 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-20 17:57:55 +0200
commit120d70024bf0abfb4bd83416a90091199eb18669 (patch)
tree0cb6f04be839c562d4c01bfee367f92ea64258c3 /bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc_ex.c
parent44c8a1777f4a3bd619676c16852cb8764369a8ec (diff)
bsp/stm32h7: Constify some functions
Update #3910.
Diffstat (limited to 'bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc_ex.c')
-rw-r--r--bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc_ex.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc_ex.c b/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc_ex.c
index fa08e6920b..2c445e74ba 100644
--- a/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc_ex.c
+++ b/bsps/arm/stm32h7/hal/stm32h7xx_hal_rcc_ex.c
@@ -51,8 +51,8 @@
*/
/* Private function prototypes -----------------------------------------------*/
-static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider);
-static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider);
+static HAL_StatusTypeDef RCCEx_PLL2_Config(const RCC_PLL2InitTypeDef *pll2, uint32_t Divider);
+static HAL_StatusTypeDef RCCEx_PLL3_Config(const RCC_PLL3InitTypeDef *pll3, uint32_t Divider);
/* Exported functions --------------------------------------------------------*/
/** @defgroup RCCEx_Exported_Functions Exported Functions
@@ -95,7 +95,7 @@ static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t D
*
* @retval HAL status
*/
-HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
+HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(const RCC_PeriphCLKInitTypeDef *PeriphClkInit)
{
uint32_t tmpreg;
uint32_t tickstart;
@@ -3191,7 +3191,7 @@ __weak void HAL_RCCEx_CRS_ErrorCallback(uint32_t Error)
*
* @retval HAL status
*/
-static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider)
+static HAL_StatusTypeDef RCCEx_PLL2_Config(const RCC_PLL2InitTypeDef *pll2, uint32_t Divider)
{
uint32_t tickstart;
@@ -3296,7 +3296,7 @@ static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t D
*
* @retval HAL status
*/
-static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider)
+static HAL_StatusTypeDef RCCEx_PLL3_Config(const RCC_PLL3InitTypeDef *pll3, uint32_t Divider)
{
uint32_t tickstart;
HAL_StatusTypeDef status = HAL_OK;