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

[wip] use 1/4th of flash for character definitions #3

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

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