Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 1429 → Rev 1430

/beta/Code Redesign killagreg/main.c
78,7 → 78,7
#endif
#include "twimaster.h"
#include "eeprom.h"
#include "libfcinit.h"
//#include "libfcinit.h"
 
uint8_t BoardRelease = 10;
uint8_t CPUType = ATMEGA644;
208,7 → 208,7
#endif
 
if(CPUType == ATMEGA644P) USART1_Init();
InitFC(); // libfcinit
//InitFC(); // libfcinit
 
// enable interrupts global
sei();
338,14 → 338,14
// begin of main loop
while (1)
{
 
/*
if(CheckDelay(pollingtimer))
{
pollingtimer = SetDelay(100);
Polling(); // libfcinit
}
*/
 
 
if(UpdateMotor && ADReady) // control interval
{
UpdateMotor = 0; // reset Flag, is enabled every 2 ms by ISR of timer0
/beta/Code Redesign killagreg/uart0.c
718,6 → 718,7
if(DisplayLine > 3)// new format
{
Menu_Update(DisplayKeys);
DisplayKeys = 0;
SendOutData('H', FC_ADDRESS, 1, (uint8_t *)DisplayBuff, sizeof(DisplayBuff));
}
else // old format