Add an extra byte for allowing simavr store the chip's lock bits / boot
lock bits as well as set the default value as defined in a number of
specs.
2 files changed:
.e2end = E2END, \
.vector_size = _vector_size, \
.fuse = _FUSE_HELPER, \
- .signature = { SIGNATURE_0,SIGNATURE_1,SIGNATURE_2 }
+ .signature = { SIGNATURE_0,SIGNATURE_1,SIGNATURE_2 }, \
+ .lockbits = 0xFF
#else
// Disable signature when using an old avr toolchain
#define DEFAULT_CORE(_vector_size) \
uint8_t vector_size;
uint8_t signature[3];
uint8_t fuse[6];
+ uint8_t lockbits;
avr_io_addr_t rampz; // optional, only for ELPM/SPM on >64Kb cores
avr_io_addr_t eind; // optional, only for EIJMP/EICALL on >64Kb cores
uint8_t address_size; // 2, or 3 for cores >128KB in flash