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

Remove GPIOE remappings for USART4 & TIM1 on some ch32v20x chips #2

Merged
merged 1 commit into from
May 10, 2024

Conversation

marti157
Copy link
Contributor

@marti157 marti157 commented May 6, 2024

The following chips don't have GPIOE, but the default USART4/TIM1 peripheral defines remappings on GPIOE that are available on other chips, which prevents building for these:

  • ch32v203c8t6
  • ch32v203c8u6
  • ch32v203rbt6
  • ch32v208cbu6
  • ch32v208rbt6
  • ch32v208wbu6

I've added the V2x_USART4 peripheral (even though it's actually a UART, as are 6-8) which is basically a copy of FV2x_V3x_USART4 that doesn't include the PE remappings. Although it's worth mentioning that I set the global interrupt signal to UART4, because it wouldn't build with USART4.
Finally, I updated the references to the existing version of ADV_TIM1 which doesn't have PE remappings.

@andelf andelf merged commit 312cba6 into ch32-rs:main May 10, 2024
1 check passed
This pull request was closed.
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.

2 participants