From 31de28714fe7f58eadfdf418837545a80c67d9f8 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 20 Jun 2018 08:45:49 +0200 Subject: [PATCH] ROM addressing --- ROM.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 ROM.h diff --git a/ROM.h b/ROM.h new file mode 100644 index 0000000..551e512 --- /dev/null +++ b/ROM.h @@ -0,0 +1,30 @@ +#ifndef ROM_H + #define ROM_H + + #define CHECKSUMMED_SIZE 0x0B + + #define PRODUCT_RNODE 0x03 + #define MODEL_A4 0xA4 + #define MODEL_A9 0xA9 + + #define ADDR_PRODUCT 0x00 + #define ADDR_MODEL 0x01 + #define ADDR_HW_REV 0x02 + #define ADDR_SERIAL 0x03 + #define ADDR_MADE 0x07 + #define ADDR_CHKSUM 0x0B + #define ADDR_SIGNATURE 0x1B + #define ADDR_INFO_LOCK 0x9B + + #define ADDR_CONF_SF 0x9C + #define ADDR_CONF_CR 0x9D + #define ADDR_CONF_TXP 0x9E + #define ADDR_CONF_BW 0x9F + #define ADDR_CONF_FREQ 0xA3 + #define ADDR_CONF_OK 0xA7 + + #define INFO_LOCK_BYTE 0x73 + #define CONF_OK_BYTE 0x73 + + #define EEPROM_RESERVED 200 +#endif \ No newline at end of file