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 |