Gast
#362942
Hallo da draußen,
ich habe eine struct aus 3 arrays definiert, die ich mit
eeprom_write_block(...) ins EEPROM (des ATMega128) ab Adresse 0
schreiben möchte, und natürlich auch wieder auslesen möchte.
Da, wo im folgenden Code die ??? stehen, habe ich mein Problem: wie
finde ich das 1. Element der struct ?
Danke im voraus !
Otto
/**** eeprom_handling.c begonnen 5.3.06 OR *****/
#include <avr/eeprom.h>
typedef struct
{
uint8_t format_delay_control [ 3 ] ;
uint8_t chroma_gain_control [ 3 ];
uint8_t chroma_control [ 3 ];
} eeprom_struct ;
#define eeprom_struct.format_delay_control = {0x12, 0x0F, 0x0E} ;
#define eeprom_struct.chroma_gain_control = {0x13, 0x0F, 0x0E } ;
#define eeprom_struct.chroma_control = {0x24, 0x0F, 0x0E } ;
void eeprom_write ( void )
{
eeprom_write_block ( ??? , 0 , sizeof ( eeprom_struct ) ) ;
}