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
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
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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.