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

Configuration save support #30

Merged
merged 5 commits into from
Jan 13, 2024
Merged

Configuration save support #30

merged 5 commits into from
Jan 13, 2024

Conversation

markadev
Copy link
Owner

This PR adds support for saving the device settings to the Pico's flash so that they are saved across power cycles. All the settings are saved:

  • emulated scanlines
  • soft-monochrome mode
  • the soft-monochrome foreground & background colors
  • Any changes to the text character patterns

The registers for saving & loading are documented in Usage.md.

Configure the build to place all code and data into RAM instead of flash by default.
Then remove all the __time_critical_func decorators that were trying to do this but
not fully covering all the important code.

The default character ROM will remain in flash since it's only read once at startup.

This will allow program flash to be modified without having to perform complex cross-core
synchronization to stop flash accesses.
Add the infrastructure for config saving & restoration and
ensure that the configuration is read on power-up, falling back
to default values if no configuration has ever been saved.
@markadev markadev merged commit 0b20755 into main Jan 13, 2024
@markadev markadev deleted the config-saving branch January 13, 2024 16:30
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