Subversion Repositories freemyipod

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 theseven 1
//
2
//
3
//    Copyright 2010 TheSeven
4
//
5
//
6
//    This file is part of emBIOS.
7
//
8
//    emBIOS is free software: you can redistribute it and/or
9
//    modify it under the terms of the GNU General Public License as
10
//    published by the Free Software Foundation, either version 2 of the
11
//    License, or (at your option) any later version.
12
//
13
//    emBIOS is distributed in the hope that it will be useful,
14
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
//    See the GNU General Public License for more details.
17
//
18
//    You should have received a copy of the GNU General Public License along
19
//    with emBIOS.  If not, see <http://www.gnu.org/licenses/>.
20
//
21
//
22
 
23
 
24
#include "global.h"
14 theseven 25
#include "thread.h"
26
#include "console.h"
15 theseven 27
#include "lcd.h"
2 theseven 28
#include "lcdconsole.h"
15 theseven 29
#include "interrupt.h"
30
#include "i2c.h"
29 theseven 31
#include "pmu.h"
58 theseven 32
#include "storage.h"
33
#include "disk.h"
15 theseven 34
#include "usb/usb.h"
2 theseven 35
 
32 theseven 36
static const char welcomestring[] INITCONST_ATTR = "emBIOS v" VERSION " r" VERSION_SVN "\n\n";
15 theseven 37
 
2 theseven 38
void init() INITCODE_ATTR;
39
void init()
40
{
14 theseven 41
    scheduler_init();
42
    console_init();
15 theseven 43
    lcd_init();
14 theseven 44
    lcdconsole_init();
15 theseven 45
    interrupt_init();
29 theseven 46
    cputs(1, welcomestring);
15 theseven 47
    i2c_init();
54 theseven 48
    power_init();
15 theseven 49
    usb_init();
58 theseven 50
    storage_init();
51
    disk_init_subsystem();
52
    disk_init();
53
    disk_mount_all();
2 theseven 54
}