Revision 1572
Added get_ir_offset to eeprom and changed program_eeprom.c so that it can read and modify them.
eeprom.c | ||
---|---|---|
53 | 53 |
else |
54 | 54 |
return 0xFF; |
55 | 55 |
} |
56 |
|
|
57 |
unsigned char get_ir_offset(void) { |
|
58 |
unsigned char c0, c1, c2; |
|
59 |
|
|
60 |
eeprom_get_byte(EEPROM_IR_OFFSET_ADDR, &c0); |
|
61 |
eeprom_get_byte(EEPROM_IR_OFFSET_ADDR+1, &c1); |
|
62 |
eeprom_get_byte(EEPROM_IR_OFFSET_ADDR+2, &c2); |
|
63 |
if(c0 == 'I' && c1 == 'R') |
|
64 |
return c2; |
|
65 |
else |
|
66 |
return 0xFF; |
|
67 |
} |
|
68 |
|
Also available in: Unified diff