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

Firmware tidying #748

Merged
merged 13 commits into from
Jan 27, 2022
Merged

Firmware tidying #748

merged 13 commits into from
Jan 27, 2022

Conversation

Daft-Freak
Copy link
Collaborator

@Daft-Freak Daft-Freak commented Jan 10, 2022

Ended up looking at the firmware code for something and spotted a bunch of things that annoyed me enough to tidy them up a bit...

  • Some deleting of unused/duplicated code
  • Moves ADC handling out of 32blit.cpp (maybe should've merged the reset of the HAL setup in there too...)
  • Moves the last i2c device init to i2c.cpp and renames things for consistency
  • moves some of the newer files around a bit
  • Only updates the charge LED when charge status changes (there was a TODO about this, also haven't tested this)

There's definitely more stuff that could be tidied up here... (the old execution switching code is probably entirely broken due to being untested for over a year, display SPI code is only used by a function that is commented out)

Might help with the buggy toggling. Doesn't make it worse at least.
It hasn't done anything for nearly two years and CDC still works so...
... and update the comment. I have no idea if this code still works as it's been unused for... years?
Sources were 32blit/32blit_blah, headers were just 32blit_blah. Move both to 32blit/blah
It was relying on 32blit.hpp including it indirectly
That should handle the "not too often" TODO... not that I can test this on my beta blits...
Namespace it like the other stuff
I missed these when I deleted the code that used them in 38c8d4f
@Gadgetoid
Copy link
Contributor

uh oh
image

this... seems to have exploded into a state of merged/unmerged limbo.

@Gadgetoid Gadgetoid merged commit 0f82265 into 32blit:master Jan 27, 2022
@Daft-Freak Daft-Freak deleted the fw-tidy-stuff branch January 27, 2022 13:37
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