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

Conversation

miggazElquez
Copy link

When compiling for a ch32v303 (which is part of the ch32v30x_D8), the build was failing because FUNCONF_PLL_MULTIPLIER is set to 18 (for all ch32v30x), but the code test for 18 only for the ch32v20x. This cause the build to errors with the message "Invalid PLL multiplier".

I also modified the condition before the declaration of RCC_PLLMULL18, to include all ch32v30x_D8.

I didn't really test directly the modifications, as I used this with Zephyr, which use the macros RCC_PLLMul_x (they have the same value as the macros RCC_PLLMULLx, I don't really understand the difference).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant