Rev 731 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 731 | Rev 732 | ||
---|---|---|---|
Line 87... | Line 87... | ||
87 | cli(); |
87 | cli(); |
Line 88... | Line 88... | ||
88 | 88 | ||
89 | // get board release |
89 | // get board release |
90 | DDRB = 0x00; |
90 | DDRB = 0x00; |
91 | PORTB = 0x00; |
91 | PORTB = 0x00; |
92 | for(timer = 0; timer < 1000; timer++); // make delay |
92 | for(timer = 0; timer < 1000; timer++); // make some delay |
93 | if(PINB & 0x01) BoardRelease = 11; |
93 | if(PINB & 0x01) BoardRelease = 11; |
Line 94... | Line 94... | ||
94 | else BoardRelease = 10; |
94 | else BoardRelease = 10; |
95 | 95 | ||
96 | // Set LED Ports as output |
96 | // set LED ports as output |
97 | DDRB |= (1<<DDB1)|(1<<DDB0); |
97 | DDRB |= (1<<DDB1)|(1<<DDB0); |
Line -... | Line 98... | ||
- | 98 | ROT_ON; |
|
98 | ROT_ON; |
99 | GRN_OFF; |
99 | GRN_OFF; |
100 | |
100 | 101 | // diable watchdog |
|
Line 101... | Line 102... | ||
101 | MCUSR &=~(1<<WDRF); |
102 | MCUSR &=~(1<<WDRF); |
Line 113... | Line 114... | ||
113 | 114 | ||
114 | // initalize modules |
115 | // initalize modules |
115 | TIMER0_Init(); |
116 | TIMER0_Init(); |
116 | TIMER2_Init(); |
117 | TIMER2_Init(); |
117 | USART0_Init(); |
118 | USART0_Init(); |
118 | if (BoardRelease == 11) USART1_Init(); |
119 | if (BoardRelease != 10) USART1_Init(); |
119 | RC_Init(); |
120 | RC_Init(); |
120 | ADC_Init(); |
121 | ADC_Init(); |
121 | I2C_Init(); |
122 | I2C_Init(); |
122 | MM3_Init(); |
123 | MM3_Init(); |