Skip to content

Commit

Permalink
CH32V30x: Fix PLL_MULTIPLICATION definition for ch32v303
Browse files Browse the repository at this point in the history
  • Loading branch information
miggazElquez committed Jan 20, 2025
1 parent 144974b commit bd3e842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ch32v003fun/ch32v003fun.h
Original file line number Diff line number Diff line change
Expand Up @@ -6073,7 +6073,7 @@ typedef struct
#define RCC_PLLMULL14 ((uint32_t)0x00300000) /* PLL input clock*14 */
#define RCC_PLLMULL15 ((uint32_t)0x00340000) /* PLL input clock*15 */
#define RCC_PLLMULL16 ((uint32_t)0x00380000) /* PLL input clock*16 */
#if defined(CH32V20x)
#if defined(CH32V20x) || defined(CH32V30x_D8)
#define RCC_PLLMULL18 ((uint32_t)0x003C0000) /* PLL input clock*18 */
#endif

Expand Down Expand Up @@ -13972,7 +13972,7 @@ void DefaultIRQHandler( void ) __attribute__((section(".text.vector_handler")))
#define PLL_MULTIPLICATION RCC_PLLMULL15
#elif FUNCONF_PLL_MULTIPLIER == 16
#define PLL_MULTIPLICATION RCC_PLLMULL16
#elif defined(CH32V20x) && FUNCONF_PLL_MULTIPLIER == 18
#elif (defined(CH32V20x) || defined(CH32V30x_D8)) && FUNCONF_PLL_MULTIPLIER == 18
#define PLL_MULTIPLICATION RCC_PLLMULL18
#else
#error "Invalid PLL multiplier"
Expand Down

0 comments on commit bd3e842

Please sign in to comment.