Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CH32V30x: Fix PLL_MULTIPLICATION definition for ch32v303 #498

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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