Skip to content

Commit

Permalink
stm32cube: stm32u0xx: drivers: add LL_SetFlashLatency function
Browse files Browse the repository at this point in the history
-Need LL_SetFlashLatency instead of UTILS_SetFlashLatency for compilation
- remove redundant files and update readme
Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
  • Loading branch information
djiatsaf-st authored and erwango committed Aug 14, 2024
1 parent 52dcf45 commit d5bb94f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5,389 deletions.
6 changes: 6 additions & 0 deletions stm32cube/stm32u0xx/README
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ Patch List:
-dos2unix applied
-trailing white spaces removed

*Created LL_SetFlashLatency function that return UTILS_SetFlashLatency
Impacted files:
stm32cube/stm32u0xx/drivers/src/stm32u0xx_ll_utils.c
stm32cube/stm32u0xx/drivers/include/stm32u0xx_ll_utils.h
Internal reference 187914.

*Provision to enable hal & ll asserts added
-Added stm32cube/stm32u0xx/drivers/include/stm32_assert.h
-Removed unused stm32cube/stm32u0xx/drivers/include/stm32_assert_template.h
Expand Down
1 change: 1 addition & 0 deletions stm32cube/stm32u0xx/drivers/include/stm32u0xx_ll_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ ErrorStatus LL_PLL_ConfigSystemClock_HSI(LL_UTILS_PLLInitTypeDef *UTILS_PLLInitS
LL_UTILS_ClkInitTypeDef *UTILS_ClkInitStruct);
ErrorStatus LL_PLL_ConfigSystemClock_HSE(uint32_t HSEBypass, LL_UTILS_PLLInitTypeDef *UTILS_PLLInitStruct,
LL_UTILS_ClkInitTypeDef *UTILS_ClkInitStruct);
ErrorStatus LL_SetFlashLatency(uint32_t HCLK_Frequency);

/**
* @}
Expand Down
5 changes: 5 additions & 0 deletions stm32cube/stm32u0xx/drivers/src/stm32u0xx_ll_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,11 @@ static ErrorStatus UTILS_SetFlashLatency(uint32_t HCLK_Frequency)
return status;
}

ErrorStatus LL_SetFlashLatency(uint32_t HCLK_Frequency)
{
return UTILS_SetFlashLatency(HCLK_Frequency);
}

/**
* @brief Function to check that PLL can be modified
* @param PLL_InputFrequency PLL input frequency (in Hz)
Expand Down
Loading

0 comments on commit d5bb94f

Please sign in to comment.