Skip to content

Commit

Permalink
Fix PB1 div
Browse files Browse the repository at this point in the history
  • Loading branch information
VynDragon committed Dec 10, 2024
1 parent b6618f1 commit 40e33ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch32v003fun/ch32v003fun.c
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,7 @@ void SystemInit( void )
#if defined(CH32V003)
#define BASE_CFGR0 RCC_HPRE_DIV1 | RCC_PLLSRC_HSI_Mul2 // HCLK = SYSCLK = APB1 And, enable PLL
#else
#define BASE_CFGR0 RCC_HPRE_DIV1 | RCC_PPRE2_DIV1 | RCC_PPRE1_DIV2 | PLL_MULTIPLICATION
#define BASE_CFGR0 RCC_HPRE_DIV1 | RCC_PPRE2_DIV1 | RCC_PPRE1_DIV1 | PLL_MULTIPLICATION
#endif
#else
#if defined(CH32V003) || defined(CH32X03x)
Expand Down

0 comments on commit 40e33ca

Please sign in to comment.