Initial, untested support for C100. Also increase the firmware size limit to 10MB to make it work withe the Cowon D2 and a little cleanup.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15331 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2007-10-27 07:53:42 +00:00
parent 18c9aba4b4
commit 28c5ba86d5

View file

@ -35,7 +35,7 @@
#define VERSION "0.1"
#define MAX_FIRMWARESIZE (2*1024*1024) /* Arbitrary limit (for safety) */
#define MAX_FIRMWARESIZE (10*1024*1024) /* Arbitrary limit (for safety) */
struct device_t
{
@ -48,10 +48,11 @@ struct device_t
static struct device_t devices[] =
{
{"logikdax", "Logik DAX 1GB DAB/MP3 player", 0xb021, 0x20000000, 0x52e97410 },
{"c100", "Sansa C100 series", 0xb021, 0x20000000, 0x62e97010 },
{"cowond2", "Cowon D2", 0xb011, 0x20000000, 0xa2e92010 },
{"iaudio6", "iAudio 6", 0xb021, 0x20000000, 0x62e97010 },
{"iaudio7", "iAudio 7", 0xb021, 0x20000000, 0x62e97010 },
{"cowond2", "Cowon D2", 0xb011, 0x20000000, 0xa2e92010 }
{"logikdax", "Logik DAX 1GB DAB/MP3 player", 0xb021, 0x20000000, 0x52e97410 }
};
#define NUM_DEVICES ((sizeof(devices) / sizeof(struct device_t)))
@ -259,12 +260,14 @@ int main(int argc, char* argv[])
if (argc != 4)
{
print_usage();
print_devices();
return 1;
}
if (strcmp(argv[1],"-d"))
{
print_usage();
print_devices();
return 2;
}