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) |
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) crc16 <<= 4; /* shift the CRC Register left 4 bits */ crc16 ^= crc16_lookup[t]; /* do the table lookup and XOR the result */ } - + return crc16; } @@ -1255,6 +1255,14 @@ static bool view_runtime(void) return false; } +#ifdef HAVE_MMC +static bool dbg_mmc_info(void) +{ + splash(HZ, true, "To be implemented."); + + return false; +} +#else /* Disk-based jukebox */ static bool dbg_disk_info(void) { char buf[128]; @@ -1424,6 +1432,7 @@ static bool dbg_disk_info(void) return false; } +#endif bool dbg_save_roms(void) { @@ -1539,7 +1548,11 @@ bool debug_menu(void) #endif { "View HW info", dbg_hw_info }, { "View partitions", dbg_partitions }, +#ifdef HAVE_MMC + { "View MMC info", dbg_mmc_info }, +#else { "View disk info", dbg_disk_info }, +#endif #ifdef HAVE_LCD_BITMAP { "View mpeg thread", dbg_mpeg_thread }, #ifdef PM_DEBUG |