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"
50 #include "wps-display.h"
53 char appsversion
[]=APPSVERSION
;
74 mpeg_init( global_settings
.volume
,
76 global_settings
.treble
,
77 global_settings
.balance
,
78 global_settings
.loudness
,
79 global_settings
.bass_boost
,
81 global_settings
.channel_config
);
82 while (button_get(false) != 0)
83 ; /* Empty the keyboard buffer */
88 /* defined in linker script */
89 extern int poolstart
[];
95 struct partinfo
* pinfo
;
131 #ifdef HAVE_LCD_BITMAP
134 snprintf(str
, 31, "ATA error: %d", rc
);
136 lcd_puts(0, 3, "Press ON to debug");
138 while(button_get(true) != BUTTON_ON
);
141 panicf("ata: %d", rc
);
146 panicf("disk: NULL");
148 for ( i
=0; i
<4; i
++ ) {
149 if (!fat_mount(pinfo
[i
].start
))
153 DEBUGF("No partition found, trying to mount sector 0.\n");
157 lcd_puts(0,0,"No FAT32");
158 lcd_puts(0,1,"partition!");
168 mpeg_init( global_settings
.volume
,
169 global_settings
.bass
,
170 global_settings
.treble
,
171 global_settings
.balance
,
172 global_settings
.loudness
,
173 global_settings
.bass_boost
,
175 global_settings
.channel_config
);
178 usb_start_monitoring();
188 led(true); sleep(HZ
/10);
189 led(false); sleep(HZ
/10);