1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2002 by Björn Stenberg
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
33 #include "powermgmt.h"
40 #include "main_menu.h"
43 #include "backlight.h"
45 #include "debug_menu.h"
53 char appsversion
[]=APPSVERSION
;
80 /* defined in linker script */
81 extern int poolstart
[];
87 struct partinfo
* pinfo
;
122 #ifdef HAVE_LCD_BITMAP
125 snprintf(str
, 31, "ATA error: %d", rc
);
127 lcd_puts(0, 3, "Press ON to debug");
129 while(button_get(true) != BUTTON_ON
);
132 panicf("ata: %d", rc
);
137 panicf("disk: NULL");
139 for ( i
=0; i
<4; i
++ ) {
140 if (!fat_mount(pinfo
[i
].start
))
144 DEBUGF("No partition found, trying to mount sector 0.\n");
147 panicf("No FAT32 partition!");
152 mpeg_init( global_settings
.volume
,
153 global_settings
.bass
,
154 global_settings
.treble
,
155 global_settings
.balance
,
156 global_settings
.loudness
,
157 global_settings
.bass_boost
,
158 global_settings
.avc
);
161 usb_start_monitoring();
163 #ifdef LOADABLE_FONTS
174 led(true); sleep(HZ
/10);
175 led(false); sleep(HZ
/10);