Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Latest commit

 

History

History
35 lines (22 loc) · 1.66 KB

README.md

File metadata and controls

35 lines (22 loc) · 1.66 KB

Deprecation Note:

This crate will soon be deprecated in favor of avr-hal.

avr-hal is a new approach to writing the HAL crate, that was designed with support for many AVR microcontrollers in mind. The macros have been factored out into a common crate named avr-hal-generic, which the board HALs then use to instanciate their respective peripherals.


ATmega32U4-HAL crates.io page docs.rs

Hardware Abstraction Layer for ATmega32U4. Built ontop of atmega32u4 for register definitions and embedded-hal for hardware abstractions.

The following features are implemented as of now:

  • Port digital IO: Digital input and output using embedded-hal traits.
  • Port PWM: Using the 4 builtin timers, PWM can be configured for a few pins. Namely PB5, PB6, PB7, PC6, PC7 & PD0.
  • Delay: Delay using a busy loop. Implementation taken from the ArduinoCore library.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.