Skip to content

Commit

Permalink
Add possibility to enable HSE Bypass mode
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt committed Jan 3, 2023
1 parent 9a24fd4 commit 5c2d987
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stm32/cmsis/variants/stm32f1/system_stm32f10x.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,11 @@ void SystemCoreClockUpdate (void)
*/
static void SetSysClock(void)
{
#if defined(PIO_FRAMEWORK_SPL_HSE_IN_BYPASS_MODE)
/* enable HSE bypass mode instead of crystal oscillator mode */
RCC->CR |= RCC_CR_HSEBYP;
#endif

#ifdef SYSCLK_FREQ_HSE
SetSysClockToHSE();
#elif defined SYSCLK_FREQ_24MHz
Expand Down

0 comments on commit 5c2d987

Please sign in to comment.