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

Purpose: Flash and boot lock-bit masks.

Namespace: atmega328p::lock_bits

The header names LB1, LB2, BLB01, BLB02, BLB11, and BLB12, and provides the default lock-bit byte.

namespace mcu = atmega328p;
static_assert(mcu::lock_bits::count == 6, "Lock-bit count");
static_assert(mcu::lock_bits::default_value == 0xFF, "Default lock byte");
Flash and boot lock-bit definitions.
Device-specific definitions for the ATmega328P.
Definition ADC.h:14

Lock bits can restrict access to Flash and boot sections. Chip Erase restores them.