#include "EEPROM_Fast.h" //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ISR(EE_READY_vect){ while (1) { if (EEPROM_BUF_COUNT == 0){ IDIBUS_MODULE.LONG_OP.State = IDILONGOP_STATE_COMPLETE_NO_ERR; //isThisSafe???!!! IDIBUS_MODULE.LONG_OP.Switch = 0; IDIBUS_MODULE.LONG_OP.Type = IDIBUS_LONGOP_NOPE; EECR &= ~(1< EEPROM_BUF_SIZE || count == 0) { IDIBUS_MODULE.LONG_OP.State = IDILONGOP_STATE_COMPLETE_WITH_ERR; //isThisSafe???!!! IDIBUS_MODULE.LONG_OP.Switch = 0; IDIBUS_MODULE.LONG_OP.Type = IDIBUS_LONGOP_NOPE; return; } EEPROM_BUF_COUNT = count; EEPROM_ADDR = addr; IDIBUS_MODULE.LONG_OP.Switch = 1; while (1) { if (EEPROM_BUF_COUNT == 0){ IDIBUS_MODULE.LONG_OP.State = IDILONGOP_STATE_COMPLETE_NO_ERR; //isThisSafe???!!! IDIBUS_MODULE.LONG_OP.Switch = 0; IDIBUS_MODULE.LONG_OP.Type = IDIBUS_LONGOP_NOPE; EECR &= ~(1<