Understand the avr-hal repository structure
mainThe avr-hal workspace is organized into several specialized crates:
arduino-hal: The primary, batteries-included HAL for Arduino and similar boards. It abstracts away board differences and is the recommended starting point for most users.mcu/atmega-hal&mcu/attiny-hal: HAL crates for specific AVR microcontroller families. Use these if you are working with custom boards rather than standard Arduino boards.avr-hal-generic: A core crate containing HAL implementations as macros. If you are writing drivers intended to work across various AVR chips, target this crate.examples/*: A collection of hardware examples. Thearduino-unocrate currently contains the most comprehensive set.ravedude: A utility for integratingavrdudeand serial consoles into thecargoworkflow.