Initial commit.
[kugel-rb.git] / bootloader / application.c
blob3d94938eb730c08f8d4f66aca70c0361bb079287
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2010 Thomas Martitz
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 /* Include Standard files */
23 #include <system.h>
24 #include <inttypes.h>
25 #include "config.h"
26 #include "lcd.h"
27 #include "font.h"
28 #include "version.h"
29 #include "sysfont.h"
30 #include "backlight.h"
31 #include "button-target.h"
32 #include "common.h"
33 #include "storage.h"
34 #include "disk.h"
35 #include "panic.h"
36 #include "power.h"
39 int main(void)
41 int delay = 1<<20;
43 lcd_init();
44 lcd_setfont(FONT_SYSFIXED);
46 int touch_data;
47 if(button_read_device(&touch_data) & BUTTON_MENU)
48 verbose = true;
50 printf("Rockbox boot loader");
51 printf("Version " RBVERSION);
53 while (delay-- > 0); /* avoid warning */