#hardware-abstraction-layer #hal #avr #abstraction-layer #arduino #atmega

nightly no-std atmega32u4-hal

Hardware Abstraction Layer for ATmega32U4

5 releases

Uses old Rust 2015

0.1.4 Dec 5, 2018
0.1.3 Oct 9, 2018
0.1.2 Oct 7, 2018
0.1.1 Oct 2, 2018
0.1.0 Oct 2, 2018

#34 in #arduino

Download history 15/week @ 2024-02-19 7/week @ 2024-02-26 6/week @ 2024-03-04 10/week @ 2024-03-11 41/week @ 2024-04-01

52 downloads per month
Used in arduino-leonardo

MIT/Apache

40KB
714 lines

ATmega32U4-HAL 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.

Dependencies

~795KB
~28K SLoC