/* Sets all general-purpose fuses with the appropriate erase and write operations.  */
void flashcalw_set_all_gp_fuses(uint64_t value)
/* Sets all general-purpose fuses with the appropriate erase and write operations.  */
void flashcalw_set_all_gp_fuses(uint64_t value)
{
	uint32_t error_status;
	switch (value) {
	case (uint64_t)-1:
		flashcalw_erase_all_gp_fuses(false);
		break;
	case (uint64_t)0:
		flashcalw_write_all_gp_fuses((uint64_t)0);
		break;
	default:
		flashcalw_erase_all_gp_fuses(false);
		error_status = flashcalw_error_status;
		flashcalw_write_all_gp_fuses(value);
		flashcalw_error_status |= error_status;
		break;
	}
}