diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-09-28 06:23:57 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-09-28 06:23:57 +0000 |
commit | 90cbd3b06dae57464e0562edfa48106d19dd98db (patch) | |
tree | 725985248587d5a7e91cf1c2ecb363b021e847fb /apps | |
parent | a82fd17d82b79f0ebbd18af4d4162ffa7313d539 (diff) | |
download | rockbox-90cbd3b06dae57464e0562edfa48106d19dd98db.tar.gz rockbox-90cbd3b06dae57464e0562edfa48106d19dd98db.zip |
First working MMC driver (very preliminary, and read-only), and some adaptions of the debug menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5123 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/debug_menu.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index f23e1b8990..26052d0b32 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -229,7 +229,7 @@ unsigned short crc_16(const unsigned char* buf, unsigned len) | |||
229 | crc16 <<= 4; /* shift the CRC Register left 4 bits */ | 229 | crc16 <<= 4; /* shift the CRC Register left 4 bits */ |
230 | crc16 ^= crc16_lookup[t]; /* do the table lookup and XOR the result */ | 230 | crc16 ^= crc16_lookup[t]; /* do the table lookup and XOR the result */ |
231 | } | 231 | } |
232 | 232 | ||
233 | return crc16; | 233 | return crc16; |
234 | } | 234 | } |
235 | 235 | ||
@@ -1255,6 +1255,14 @@ static bool view_runtime(void) | |||
1255 | return false; | 1255 | return false; |
1256 | } | 1256 | } |
1257 | 1257 | ||
1258 | #ifdef HAVE_MMC | ||
1259 | static bool dbg_mmc_info(void) | ||
1260 | { | ||
1261 | splash(HZ, true, "To be implemented."); | ||
1262 | |||
1263 | return false; | ||
1264 | } | ||
1265 | #else /* Disk-based jukebox */ | ||
1258 | static bool dbg_disk_info(void) | 1266 | static bool dbg_disk_info(void) |
1259 | { | 1267 | { |
1260 | char buf[128]; | 1268 | char buf[128]; |
@@ -1424,6 +1432,7 @@ static bool dbg_disk_info(void) | |||
1424 | 1432 | ||
1425 | return false; | 1433 | return false; |
1426 | } | 1434 | } |
1435 | #endif | ||
1427 | 1436 | ||
1428 | bool dbg_save_roms(void) | 1437 | bool dbg_save_roms(void) |
1429 | { | 1438 | { |
@@ -1539,7 +1548,11 @@ bool debug_menu(void) | |||
1539 | #endif | 1548 | #endif |
1540 | { "View HW info", dbg_hw_info }, | 1549 | { "View HW info", dbg_hw_info }, |
1541 | { "View partitions", dbg_partitions }, | 1550 | { "View partitions", dbg_partitions }, |
1551 | #ifdef HAVE_MMC | ||
1552 | { "View MMC info", dbg_mmc_info }, | ||
1553 | #else | ||
1542 | { "View disk info", dbg_disk_info }, | 1554 | { "View disk info", dbg_disk_info }, |
1555 | #endif | ||
1543 | #ifdef HAVE_LCD_BITMAP | 1556 | #ifdef HAVE_LCD_BITMAP |
1544 | { "View mpeg thread", dbg_mpeg_thread }, | 1557 | { "View mpeg thread", dbg_mpeg_thread }, |
1545 | #ifdef PM_DEBUG | 1558 | #ifdef PM_DEBUG |