Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 761 → Rev 762

/C-OSD/trunk/main.c
55,6 → 55,7
/* ##########################################################################
* global definitions and global vars
* ##########################################################################*/
#if !(ALLCHARSDEBUG|(WRITECHARS != -1))
 
volatile NaviData_t naviData;
volatile DebugOut_t debugData;
83,8 → 84,8
// Flags
uint8_t COSD_FLAGS_MODES = 0, COSD_FLAGS_CONFIG = 0, COSD_FLAGS_RUNTIME = 0, COSD_DISPLAYMODE = 0;
 
#if !(ALLCHARSDEBUG|(WRITECHARS != -1))
 
 
// stats for after flight
int16_t max_Altimeter = 0;
uint8_t min_UBat = 255;
193,7 → 194,7
}
}
}
#endif // ends !(ALLCHARSDEBUG|(WRITECHARS != -1))#endif // ends !(ALLCHARSDEBUG|(WRITECHARS != -1))
#endif // ends !(ALLCHARSDEBUG|(WRITECHARS != -1))
 
/* ##########################################################################
* MAIN
319,8 → 320,8
 
// enable interrupts
sei();
#endif
 
 
//write_ascii_string(2, 7, " CaScAdE ");
//write_ascii_string(2, 8, "is TESTING his open source");
//write_ascii_string(2, 9, " EPi OSD Firmware");
328,18 → 329,9
// we are ready
LED3_ON
 
#if ALLCHARSDEBUG | (WRITECHARS != -1)
clear();
write_all_chars();
LED1_ON
LED2_ON
LED3_ON
LED4_ON
#else
 
// clear serial screen
//usart1_puts("\x1B[2J\x1B[H");
//usart1_puts("hello world!123\r\n");
// clear serial screen
//usart1_puts("\x1B[2J\x1B[H");
 
while (1) {
// in case SPI is ready and there is nothing to send right now
427,6 → 419,19
usart1_DisableTXD();
}
}
 
#else // character flashing...
clear();
write_all_chars();
LED1_ON
LED2_ON
LED3_ON
LED4_ON
while(1) {
 
};
#endif
 
 
return 0;
}