void flashc_set_gp_fuse_bitfield (unsigned int pos, unsigned int width, U64 value) { unsigned int error_status = 0; unsigned int gp_fuse_bit; pos &= 0x3F; width = min (width, 64); for (gp_fuse_bit = pos; gp_fuse_bit < pos + width; gp_fuse_bit++, value >>= 1) { flashc_set_gp_fuse_bit (gp_fuse_bit, value & 0x01); error_status |= flashc_error_status; } flashc_error_status = error_status; }
void DFU_ForceIsp(Bool force) { flashc_set_gp_fuse_bit(ISP_GPFB_FORCE_OFFSET, force); }
void flashc_lock_external_privileged_fetch(bool lock) { flashc_set_gp_fuse_bit(AVR32_FLASHC_FGPFRLO_EPFL_OFFSET, !lock); }