Skip to content

About

A header-only C++ library containing hardware definitions for the ATmega328P.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

ATmega328P

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.

Usage

#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.

Documentation

Getting started · Module reference · Technical references

License

See LICENSE.

About

A header-only C++ library containing hardware definitions for the ATmega328P.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages