Hardware definitions for the ATmega328P microcontroller.
Header-only C++11 library describing registers, memory, GPIO, peripherals, package pins, clock sources, interrupts, fuses, electrical characteristics and errata.
No hardware access, drivers or initialization code is included.
#define MCU_PACKAGE_PDIP28
#define MCU_GRADE_INDUSTRIAL_85C
#define MCU_CLOCK_HZ 1000000UL
#include <atmega328p/ATmega328P.h>
namespace mcu = atmega328p;For smaller includes, import the required module directly:
#include <atmega328p/Pin.h>
#include <atmega328p/GPIO.h>
#include <atmega328p/RegisterMap.h>The project selects its package, operating grade and clock. Clock and fuse settings must match the physical board.
Getting started · Module reference · Technical references
See LICENSE.