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

Unified arduino-hal #117

Closed
Rahix opened this issue Dec 12, 2020 · 0 comments
Closed

Unified arduino-hal #117

Rahix opened this issue Dec 12, 2020 · 0 comments
Assignees
Labels
hal-api API design for the different components of avr-hal

Comments

@Rahix
Copy link
Owner

Rahix commented Dec 12, 2020

I think it makes sense to move towards merging board crates similar to what we're doing with HAL crates in #94. In specific, I want to create a single arduino-hal crate with features for the specific devices. The goal should be to provide an API that allows very easily switching from one board to another. This means we should abstract all board-specific details into a common layer, as far as that is reasonably possible.

@Rahix Rahix added the hal-api API design for the different components of avr-hal label Dec 12, 2020
@Rahix Rahix added this to the crates.io Release milestone Dec 12, 2020
@Rahix Rahix self-assigned this Dec 12, 2020
Rahix added a commit that referenced this issue Feb 7, 2021
Create a unified crate for all arduino boards, to combat code
duplication in the current design.  As a start, add very basic support
for Arduino Uno.

Ref: #117
Rahix added a commit that referenced this issue Feb 13, 2021
Create a unified crate for all arduino boards, to combat code
duplication in the current design.  As a start, add very basic support
for Arduino Uno.  This includes GPIO pins and USART communication for
now.

Additionally, include a `prelude` for reexporting commonly needed traits
again.

This crate, similarly to atmega-hal, exposes its own `Peripherals`
struct.  This struct uses fields and types more fitting for the selected
board.  For example, the `pins` field has subfields for each of the
boards external pins, named appropriately instead of relying on the MCU
pin names.

Ref: #117
@Rahix Rahix closed this as completed Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hal-api API design for the different components of avr-hal
Projects
None yet
Development

No branches or pull requests

1 participant