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

Purpose: GPIO port widths, masks, pull-ups, and pin limitations.

Namespace: atmega328p::gpio

The device has ports B, C, and D. Port C exposes seven logical pins; ports B and D expose eight each.

namespace mcu = atmega328p;
static_assert(mcu::gpio::port_count == 3, "Three GPIO ports");
static_assert(mcu::gpio::port::b_width == 8, "Port B width");
static_assert(mcu::gpio::port::c_width == 7, "Port C width");
static_assert(mcu::gpio::has_internal_pullups == 1, "Internal pull-ups");
GPIO port characteristics and hardware limitations.
Device-specific definitions for the ATmega328P.
Definition ADC.h:14

This is hardware metadata only. A GPIO library is responsible for configuring DDRx, PORTx, and PINx.