|
Rockbox mail archiveSubject: Re: Memory/Settings Creation QuestionRe: Memory/Settings Creation Question
From: Mike Holden <rockbox_at_mikeholden.uklinux.net>
Date: Sat, 3 May 2003 23:37:19 +0100 (BST) Björn Stenberg said: > Dave Jones wrote: >> I can't tell from the settings.c file if there is room for them in the >> Config block saved to Ram. I would guess from my rudimentary >> knowledge that this space is full. > > Yes. However there is space in the bigger block saved to disk. > > Look at the top of settings.c and you'll see a description of the > 512-byte config block. Offset 0x0-0x2A are taken, as is 0xAE-0x1FF. I > recommend using the remaining 7 bits of 0xAE. Do the principles stated here still stand? It looks like currently the first 2 bits of 0xAE are used, so I can take up to 6 bits from bit 3 upwards to bit 8, and then any bytes from 0xAD downwards all the way to 0x00? I'm looking to store the last used radio frequency, so need to store a value in the range 8000 to 11000, which can scale to 0-3000, and currently in increments of 5 (frequency increases by 0.05 Mhz), so could be scaled to 0-600, so long as we are settled on these, but these could still be up in the air, pending discussions on here. I can start off taking 2 bytes, giving plenty of range, and scale these later to use less space in the config block. Maybe a bit more info in settings.c wouldn't go amiss, to explain the usage and allocation rules? -- Mike HoldenReceived on 2003-05-04 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |