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"
15 theseven 32
#include "usb/usb.h"
2 theseven 33
 
32 theseven 34
static const char welcomestring[] INITCONST_ATTR = "emBIOS v" VERSION " r" VERSION_SVN "\n\n";
15 theseven 35
 
2 theseven 36
void init() INITCODE_ATTR;
37
void init()
38
{
14 theseven 39
    scheduler_init();
40
    console_init();
15 theseven 41
    lcd_init();
14 theseven 42
    lcdconsole_init();
15 theseven 43
    interrupt_init();
29 theseven 44
    cputs(1, welcomestring);
15 theseven 45
    i2c_init();
29 theseven 46
    pmu_init();
15 theseven 47
    usb_init();
2 theseven 48
}