Rev 2055 | Rev 2092 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2055 | Rev 2088 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | 31 | ||
32 | // disable interrupts global |
32 | // disable interrupts global |
Line 33... | Line 33... | ||
33 | cli(); |
33 | cli(); |
34 | 34 | ||
35 | // analyze hardware environment |
35 | // analyze hardware environment |
Line 36... | Line 36... | ||
36 | CPUType = getCPUType(); |
36 | setCPUType(); |
37 | boardRelease = getBoardRelease(); |
37 | setBoardRelease(); |
38 | 38 | ||
39 | // disable watchdog |
39 | // disable watchdog |
Line 48... | Line 48... | ||
48 | // initalize modules |
48 | // initalize modules |
49 | output_init(); |
49 | output_init(); |
50 | timer0_init(); |
50 | timer0_init(); |
51 | timer2_init(); |
51 | timer2_init(); |
52 | usart0_init(); |
52 | usart0_init(); |
53 | if (CPUType == ATMEGA644P);// usart1_Init(); |
53 | //if (CPUType == ATMEGA644P);// usart1_Init(); |
54 | RC_Init(); |
54 | RC_Init(); |
55 | analog_init(); |
55 | analog_init(); |
56 | I2C_init(); |
56 | I2C_init(); |
57 | #ifdef USE_NAVICTRL |
57 | #ifdef USE_NAVICTRL |
58 | SPI_MasterInit(); |
58 | SPI_MasterInit(); |