8.2.2 boot_lock_bits_set Macro

Set the bootloader lock bits.

Include

<avr/boot.h>

Prototype

int boot_lock_bits_set(unsigned char mask);

Remarks

This macro sets those bits specified by the bit mask in the SPM control register. The bootloader lock bits, once set, can only be cleared by a chip erase, which in turn will also erase the boot loader itself.

Example

#include <avr/boot.h>
int main(void)
{
  boot_lock_bits_set(_BV(BLB11)|_BV(BLB12));
}