fork(1) download
  1. #include <stdio.h>
  2.  
  3. #define BOOL unsigned char
  4. #define BYTE unsigned char
  5.  
  6. typedef struct { // ===== instance parameters =====
  7. BOOL bInstanceActive;
  8. BYTE nInstanceGrp[4];
  9. BYTE nEventFilter;
  10. BYTE nEventScheme;
  11. BYTE nEventPriority;
  12. BYTE nShortMul;
  13. BYTE nDoubleMul;
  14. BYTE nRepeatMul;
  15. BYTE nStuckMul;
  16. BYTE nDummy[3];
  17. } InstanceBlock;
  18. #define DEFAULT_INSTANCE_BLOCK {1, {255,255,255,255}, 244, 0, 2, 15, 5, 10, 30, {0, 0, 0}}
  19.  
  20. typedef struct {
  21. InstanceBlock xInstance[4]; //** edited should be 1 instead of 0
  22. } EEprom_Mapping;
  23. #define DEFAULT_EEprom_Mapping {{ DEFAULT_INSTANCE_BLOCK, DEFAULT_INSTANCE_BLOCK, DEFAULT_INSTANCE_BLOCK, DEFAULT_INSTANCE_BLOCK }}
  24.  
  25. EEprom_Mapping xEE __attribute__((section(".eeprom"))) = DEFAULT_EEprom_Mapping;
  26.  
  27. int main(void) {
  28. // your code goes here
  29. return 0;
  30. }
  31.  
Success #stdin #stdout 0s 2164KB
stdin
Standard input is empty
stdout
Standard output is empty