forked from len0rd/rockbox
Settings are now saved in RTC RAM on Recorder (Heikki Hannikainen).
Introduced debug menu (Heikki Hannikainen). Cleaned up settings API. Added scroll_speed init. Moved dbg_ports() and dbg_rtc() from firmware/debug.c to apps/debug_menu.c Made panic buffer static. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1347 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5e2898f3d4
commit
6b25f79af0
10 changed files with 312 additions and 240 deletions
13
apps/main.c
13
apps/main.c
|
|
@ -41,6 +41,7 @@
|
|||
#include "thread.h"
|
||||
#include "settings.h"
|
||||
#include "backlight.h"
|
||||
#include "debug_menu.h"
|
||||
|
||||
#include "version.h"
|
||||
|
||||
|
|
@ -63,7 +64,7 @@ void init(void)
|
|||
init_threads();
|
||||
lcd_init();
|
||||
show_logo();
|
||||
reset_settings(&global_settings);
|
||||
settings_reset();
|
||||
sleep(HZ/2);
|
||||
}
|
||||
|
||||
|
|
@ -81,7 +82,7 @@ void init(void)
|
|||
system_init();
|
||||
kernel_init();
|
||||
|
||||
reset_settings(&global_settings);
|
||||
settings_reset();
|
||||
|
||||
dmalloc_initialize();
|
||||
bmalloc_add_pool(poolstart, poolend-poolstart);
|
||||
|
|
@ -114,12 +115,12 @@ void init(void)
|
|||
lcd_puts(0, 1, str);
|
||||
lcd_puts(0, 3, "Press ON to debug");
|
||||
lcd_update();
|
||||
while(button_get(true) != BUTTON_ON) {};
|
||||
while(button_get(true) != BUTTON_ON);
|
||||
dbg_ports();
|
||||
#endif
|
||||
panicf("ata: %d", rc);
|
||||
}
|
||||
|
||||
|
||||
pinfo = disk_init();
|
||||
if (!pinfo)
|
||||
panicf("disk: NULL");
|
||||
|
|
@ -128,6 +129,10 @@ void init(void)
|
|||
if(rc)
|
||||
panicf("mount: %d",rc);
|
||||
|
||||
settings_load();
|
||||
global_settings.total_boots++;
|
||||
settings_save();
|
||||
|
||||
mpeg_init( global_settings.volume,
|
||||
global_settings.bass,
|
||||
global_settings.treble );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue