/branches/V0.68d Code Redesign killagreg/main.c |
---|
61,6 → 61,7 |
#if defined (__AVR_ATmega644P__) |
#include "uart1.h" |
#endif |
#include "led.h" |
#include "menu.h" |
#include "ubx.h" |
#include "fc.h" |
105,12 → 106,7 |
ROT_ON; |
GRN_OFF; |
// set PC2 & PC3 as output (ctrl J16 & J17) |
DDRC |= (1<<DDC2)|(1<<DDC3); |
J16_OFF; |
J17_OFF; |
// disable watchdog |
// disable watchdog |
MCUSR &=~(1<<WDRF); |
WDTCSR |= (1<<WDCE)|(1<<WDE); |
WDTCSR = 0; |
125,6 → 121,7 |
ROT_OFF; |
// initalize modules |
LED_Init(); |
TIMER0_Init(); |
TIMER2_Init(); |
USART0_Init(); |