ATmega328P HAL Driver
|
Welcome to the ATmega328P HAL driver documentation. This driver provides easy to use interface for device peripherals.
ATmega328P hal driver is seperated in to independent modules for every peripheral. In this way, unneeded modules can be omitted to save both memory and flash space.
This driver depends on avr-libc and uses avr-gcc as the compiler.
atmega328p_hal_driver
directory to target project's drivers directory.atmega328p_hal_driver/include/
directory to target project's include path.atmega328p_hal_driver/src/
to target project's build toolchain as source file(s).hal.h
header or a specific header to desired source file(s).Example usage for every module is in examples
directory.
snake_case
, except for the constants: they are in SCREAMING_SNAKE_CASE
.hal_
prefix (e.g.: hal_usart.c
).usart_transmit()
or struct usart_t
).With these information, needed members of this driver can be found easily.
A module can have 3 different files and they have different suffixes:
hal_usart.c
._irq
suffix. E.g.: hal_usart_irq.c
._extra
suffix. E.g.: hal_usart_extra.c
.This project is licensed under MIT license.