Привет.
Уменя есть структура.
Код
typedef struct time
{
char hour;
char minutes;
char seconds;
} time_t;
typedef struct date
{
char day;
char month;
char year;
} date_t;
typedef struct
{
time_t light_on;
time_t light_off;
time_t pump_on;
time_t pump_off;
time_t fan_on;
time_t fan_off;
date_t start_date;
date_t stop_date;
unsigned int days;
char temp_high;
char temp_low;
char hum_high;
char hum_low;
char fan_cycle_time;
} phase_t;
Я создаю массив структур
Код
phase_t phases[10];
Как я могу сохранить масив структур в EEPROM? Компайлер IAR для AVR.