Index: apps/main_menu.c =================================================================== RCS file: /cvsroot/rockbox/apps/main_menu.c,v retrieving revision 1.55 diff -u -b -r1.55 main_menu.c --- apps/main_menu.c 31 Aug 2002 23:07:11 -0000 1.55 +++ apps/main_menu.c 4 Sep 2002 23:20:31 -0000 @@ -34,6 +34,8 @@ #include "power.h" #include "powermgmt.h" #include "sound_menu.h" +#include "ata.h" +#include "mpeg.h" #ifdef HAVE_LCD_BITMAP #include "bmp.h" @@ -196,6 +198,89 @@ return MENU_OK; } +Menu disk_bench(void) +{ + int i; + int count = 80; /* 10 MB */ + long start; + long stop; + char buf[32]; + + mpeg_stop(); + lcd_clear_display(); + lcd_puts(0,0,"Disk speed"); + lcd_update(); + + ata_read_sectors(0, 1, mp3buf); + start = current_tick; + + for (i=0; i