mirror of
https://bitbucket.org/C_Classic/prgkbd.git
synced 2024-11-25 11:15:06 +01:00
Updated revision number according to bug report #2
This commit is contained in:
parent
77818dde76
commit
37d1cb9f2c
@ -24,7 +24,7 @@ uint8_t keyType[16]; // Will contain whether the key has to be handled as a ...
|
|||||||
|
|
||||||
// MEMORY ARCHITECTURE (INTERNAL)
|
// MEMORY ARCHITECTURE (INTERNAL)
|
||||||
#define MEM_SERIAL_OFFSET 0
|
#define MEM_SERIAL_OFFSET 0
|
||||||
#define MEM_SERIAL_LENGTH 16
|
#define MEM_SERIAL_LENGTH 8
|
||||||
|
|
||||||
// MEM. ARCH. (EXTERNAL)
|
// MEM. ARCH. (EXTERNAL)
|
||||||
#define MEM_KEY_LENGTH 512 // 512B * 16 -> 8KByte (64Kbit)
|
#define MEM_KEY_LENGTH 512 // 512B * 16 -> 8KByte (64Kbit)
|
||||||
@ -36,11 +36,10 @@ uint8_t keyType[16]; // Will contain whether the key has to be handled as a ...
|
|||||||
#define CMD_EEREAD 3
|
#define CMD_EEREAD 3
|
||||||
#define CMD_EEOPEN 4 // Can be used if errors occour while writing to the device.
|
#define CMD_EEOPEN 4 // Can be used if errors occour while writing to the device.
|
||||||
#define CMD_RESET 5 // WDT RESET
|
#define CMD_RESET 5 // WDT RESET
|
||||||
#define CMD_SERIAL 6 // DEV-Serial PRGKBD0010911001 --> This data sits in the INETRNAL eeprom
|
#define CMD_SERIAL 6 // DEV-Serial 1-"0811"-000 --> This data sits in the INTERNAL eeprom
|
||||||
// 6B PRGKBD
|
// 1B HW-Revision (Number/10)
|
||||||
// 3B HW_REV
|
// 4B HW-Date (MMYY)
|
||||||
// 4B HW_Date (MMYY)
|
// 3B HW-ID (Number)
|
||||||
// 3B ID
|
|
||||||
#define CMD_IEEWRITE 7 //internal eeprom
|
#define CMD_IEEWRITE 7 //internal eeprom
|
||||||
#define CMD_IEEREAD 8 // int. eep.
|
#define CMD_IEEREAD 8 // int. eep.
|
||||||
#define CMD_EXEC 9 // execute from addr.
|
#define CMD_EXEC 9 // execute from addr.
|
||||||
@ -198,7 +197,7 @@ static uchar reportBuffer[24];
|
|||||||
wdt_enable(WDTO_15MS); // faster reboot
|
wdt_enable(WDTO_15MS); // faster reboot
|
||||||
while (1); // Wait 'til the watchdog resets our system
|
while (1); // Wait 'til the watchdog resets our system
|
||||||
}
|
}
|
||||||
else if(rq->bRequest == CMD_SERIAL) { // CURRENTLY NOT WORKING!
|
else if(rq->bRequest == CMD_SERIAL) {
|
||||||
uint8_t x;
|
uint8_t x;
|
||||||
for (x=0; x < MEM_SERIAL_LENGTH; x++) {
|
for (x=0; x < MEM_SERIAL_LENGTH; x++) {
|
||||||
reportBuffer[x] = eeprom_read_byte(x+MEM_SERIAL_OFFSET);
|
reportBuffer[x] = eeprom_read_byte(x+MEM_SERIAL_OFFSET);
|
||||||
|
Loading…
Reference in New Issue
Block a user