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

Refactored attiny_hal for additive features #605

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

Conversation

innermatrix
Copy link

@innermatrix innermatrix commented Nov 24, 2024

See #602 for context and overall plan. This PR refactors attiny_hal to make conflicting globals optional (but available by default).

Changes:

  • Added deprecated-globals feature (on by default)
  • Added <mcu>-no-deprecated-globals features for all MCU, which can be used to build the crate for multiple MCUs
  • Added a module for each supported MCU

@innermatrix innermatrix force-pushed the attiny-hal-additive-features branch from 05a3c0f to e0e975d Compare November 24, 2024 22:13
@innermatrix innermatrix force-pushed the attiny-hal-additive-features branch 6 times, most recently from 5f261ea to 4ffe0b8 Compare December 9, 2024 00:20
@innermatrix innermatrix force-pushed the attiny-hal-additive-features branch from 4ffe0b8 to 674f0ed Compare December 29, 2024 22:40
@innermatrix innermatrix force-pushed the attiny-hal-additive-features branch 2 times, most recently from c5a9717 to 42bd207 Compare December 30, 2024 13:18
@tones111
Copy link

tones111 commented Jan 1, 2025

The issue is a bit old at this point, but perhaps this restructure could be an item in #130 under "Redesign HAL APIs/internals for more flexibility towards supported devices".

@innermatrix
Copy link
Author

@tones111 Thanks for pointing that out! Yes, this work is very much aligned with that refactor. (There are many other desired / planned improvements that are being tracked by #130, and I am not trying to address those here; specifically, I am not introducing any API changes here, I am just restructuring modules and macros, which I think has organizational value in its own right.)

@stappersg
Copy link
Contributor

stappersg commented Jan 1, 2025 via email

@innermatrix innermatrix force-pushed the attiny-hal-additive-features branch from 42bd207 to fc3ee61 Compare January 1, 2025 16:13
@innermatrix innermatrix force-pushed the attiny-hal-additive-features branch from fc3ee61 to 6515962 Compare January 1, 2025 16:13
@tones111 tones111 mentioned this pull request Jan 1, 2025
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.

3 participants