Rev 750 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 750 | Rev 752 | ||
---|---|---|---|
Line 119... | Line 119... | ||
119 | 119 | ||
120 | // initalize modules |
120 | // initalize modules |
121 | TIMER0_Init(); |
121 | TIMER0_Init(); |
122 | TIMER2_Init(); |
122 | TIMER2_Init(); |
- | 123 | USART0_Init(); |
|
123 | USART0_Init(); |
124 | #if defined (__AVR_ATmega644p__) |
- | 125 | if (BoardRelease != 10) USART1_Init(); |
|
124 | if (BoardRelease != 10) USART1_Init(); |
126 | #endif |
125 | RC_Init(); |
127 | RC_Init(); |
126 | ADC_Init(); |
128 | ADC_Init(); |
127 | I2C_Init(); |
129 | I2C_Init(); |
128 | MM3_Init(); |
130 | MM3_Init(); |
Line 234... | Line 236... | ||
234 | if(UBat < ParamSet.LowVoltageWarning) |
236 | if(UBat < ParamSet.LowVoltageWarning) |
235 | { |
237 | { |
236 | if(BeepModulation == 0xFFFF) |
238 | if(BeepModulation == 0xFFFF) |
237 | { |
239 | { |
238 | BeepTime = 6000; // 0.6 seconds |
240 | BeepTime = 6000; // 0.6 seconds |
239 | BeepModulation = 0x0300; |
- | |
240 | } |
241 | } |
241 | } |
242 | } |
242 | //SPI_StartTransmitPacket();//# |
243 | //SPI_StartTransmitPacket();//# |
243 | timer = SetDelay(100); |
244 | timer = SetDelay(100); |
244 | } |
245 | } |