Revision 1572 branches/ir_branch/code/projects/libdragonfly/eeprom.c

View differences:

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