Hello Maarten,
I'm sorry for my rudeness, I hit the wrong button and my message got sent
before I wanted.
I was about to write an example of what I meant:
struct MOTOR_CONFIG {
uint8_t item1; // 8 bits EEPROM item
uint16_t item2; // 16 bits EEPROM item
uint32_t item3; // 32 bits EEPROM item
uint8_t reserved_bytes [10]; // Array EEPROM item
};
struct MOTOR_DATA {
uint8_t item1;
uint16_t item2;
uint32_t item3;
};
__eeprom MOTOR_CONFIG motor1; // This data is mapped in the EEPROM
__eeprom MOTOR_CONFIG motor2; // This data is mapped in the EEPROM
__xdata MOTOR_DATA motor1; // This goes into the XDATA
__xdata MOTOR_DATA motor2; // This goes into the XDATA
Thank you again for taking the time to read.
Regards,
Victor
------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user