mirror of https://github.com/ARMmbed/mbed-os.git
STM32H747xI: allow overriding SetSysClock
parent
f2a01f2ba0
commit
ae35c887f3
|
@ -55,7 +55,7 @@ uint8_t SetSysClock_PLL_HSI(void);
|
||||||
* @retval None
|
* @retval None
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void SetSysClock(void)
|
MBED_WEAK void SetSysClock(void)
|
||||||
{
|
{
|
||||||
#if ((CLOCK_SOURCE) & USE_PLL_HSE_EXTC)
|
#if ((CLOCK_SOURCE) & USE_PLL_HSE_EXTC)
|
||||||
/* 1- Try to start with HSE and external clock (MCO from STLink PCB part) */
|
/* 1- Try to start with HSE and external clock (MCO from STLink PCB part) */
|
||||||
|
@ -158,7 +158,7 @@ MBED_WEAK uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* PLL (clocked by HSI) used as System clock source */
|
/* PLL (clocked by HSI) used as System clock source */
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
uint8_t SetSysClock_PLL_HSI(void)
|
MBED_WEAK uint8_t SetSysClock_PLL_HSI(void)
|
||||||
{
|
{
|
||||||
RCC_ClkInitTypeDef RCC_ClkInitStruct;
|
RCC_ClkInitTypeDef RCC_ClkInitStruct;
|
||||||
RCC_OscInitTypeDef RCC_OscInitStruct;
|
RCC_OscInitTypeDef RCC_OscInitStruct;
|
||||||
|
|
Loading…
Reference in New Issue