Subversion Repositories freemyipod

Rev

Rev 14 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14 Rev 15
Line 22... Line 22...
22
 
22
 
23
 
23
 
24
#include "global.h"
24
#include "global.h"
25
#include "thread.h"
25
#include "thread.h"
26
#include "console.h"
26
#include "console.h"
-
 
27
#include "lcd.h"
27
#include "lcdconsole.h"
28
#include "lcdconsole.h"
-
 
29
#include "interrupt.h"
-
 
30
#include "i2c.h"
-
 
31
#include "usb/usb.h"
-
 
32
 
-
 
33
static const char welcomestring[] INITCONST_ATTR = "emBIOS v" VERSION "\n\nInitializing USB...";
-
 
34
static const char donestring[] INITCONST_ATTR =  " done\n";
28
 
35
 
29
void init() INITCODE_ATTR;
36
void init() INITCODE_ATTR;
30
void init()
37
void init()
31
{
38
{
32
    scheduler_init();
39
    scheduler_init();
33
    console_init();
40
    console_init();
-
 
41
    lcd_init();
34
    lcdconsole_init();
42
    lcdconsole_init();
-
 
43
    interrupt_init();
-
 
44
    i2c_init();
35
    lcdconsole_puts("emBIOS v" VERSION "\n\n", 0, -1);
45
    cputs(1, welcomestring);
36
    lcdconsole_update();
46
    usb_init();
-
 
47
    cputs(1, donestring);
37
}
48
}
38
49