Add file offsets in d868uv address map.
This commit is contained in:
parent
b97f79ec8f
commit
79e50fc551
1152
d868uv-map.h
1152
d868uv-map.h
File diff suppressed because it is too large
Load Diff
4
d868uv.c
4
d868uv.c
@ -51,9 +51,9 @@
|
|||||||
#define OFFSET_ZONELISTS 0x03e8c0 // Channel lists of zones
|
#define OFFSET_ZONELISTS 0x03e8c0 // Channel lists of zones
|
||||||
#define OFFSET_SCANLISTS 0x05dcc0 // Scanlists
|
#define OFFSET_SCANLISTS 0x05dcc0 // Scanlists
|
||||||
#define OFFSET_MESSAGES 0x069f40 // Messages
|
#define OFFSET_MESSAGES 0x069f40 // Messages
|
||||||
#define OFFSET_CHAN_MAP 0x070a40 // Bitmap of valid channels
|
|
||||||
#define OFFSET_ZONE_MAP 0x070940 // Bitmap of valid zones
|
#define OFFSET_ZONE_MAP 0x070940 // Bitmap of valid zones
|
||||||
#define OFFSET_SCANL_MAP 0x070980 // Bitmap of valid scanlists
|
#define OFFSET_SCANL_MAP 0x070980 // Bitmap of valid scanlists
|
||||||
|
#define OFFSET_CHAN_MAP 0x070a40 // Bitmap of valid channels
|
||||||
#define OFFSET_SETTINGS 0x071600 // General settings
|
#define OFFSET_SETTINGS 0x071600 // General settings
|
||||||
#define OFFSET_ZONENAMES 0x071dc0 // Names of zones
|
#define OFFSET_ZONENAMES 0x071dc0 // Names of zones
|
||||||
#define OFFSET_RADIOID 0x073d00 // Table of radio IDs
|
#define OFFSET_RADIOID 0x073d00 // Table of radio IDs
|
||||||
@ -423,9 +423,11 @@ static void d868uv_download(radio_device_t *radio)
|
|||||||
unsigned file_offset = 0;
|
unsigned file_offset = 0;
|
||||||
unsigned last_printed = 0;
|
unsigned last_printed = 0;
|
||||||
|
|
||||||
|
//printf("Address Offset\n");
|
||||||
for (f=region_map; f->length; f++) {
|
for (f=region_map; f->length; f++) {
|
||||||
unsigned addr = f->address;
|
unsigned addr = f->address;
|
||||||
unsigned nbytes = f->length;
|
unsigned nbytes = f->length;
|
||||||
|
//printf("%08x %06x\n", addr, file_offset);
|
||||||
|
|
||||||
while (nbytes > 0) {
|
while (nbytes > 0) {
|
||||||
unsigned n = (nbytes > 32*1024) ? 32*1024 : nbytes;
|
unsigned n = (nbytes > 32*1024) ? 32*1024 : nbytes;
|
||||||
|
Loading…
Reference in New Issue
Block a user