ATmega328p
Hardware definitions
Loading...
Searching...
No Matches
RegisterMap.h

Purpose: Data-space addresses of the ATmega328P registers.

Namespace: atmega328p::register_map

Register names are available as integer constants, so normal code does not need a cast.

namespace mcu = atmega328p;
static_assert(mcu::register_map::PORTB == 0x25, "PORTB address");
static_assert(mcu::register_map::TCCR1A == 0x80, "TCCR1A address");
static_assert(mcu::register_map::UDR0 == 0xC6, "UDR0 address");
Data-space addresses of the ATmega328P registers.
Device-specific definitions for the ATmega328P.
Definition ADC.h:14

Addresses are in the AVR data-space map. This header does not declare volatile register objects or replace the compiler's device header.