Skip to content

Conversation

jrudolph
Copy link

@jrudolph jrudolph commented Nov 6, 2024

This works because for CH32v003 you can just set BR all the time and have BS determine the full state of a GPIO in the BSHR register.

According to 7.3.1.4 of CH32V003RM:

If both BR and BS bits are set, the BS bit takes effect.

As a trade-off this moves some extra work to vga_prepare_line. For me this slightly changes the glitch pattern.

Needs testing and also needs to be expanded to the #ifdef areas of vga.c.

This works because for CH32v003 you can just set BR all the time and
have BS determine the full state of a GPIO in the BSHR register.

According to 7.3.1.4 of CH32V003RM:

If both BR and BS bits are set, the BS bit takes effect.

This moves some extra work to vga_prepare_line.
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