176,7 → 176,7 |
LED_RED_ON; |
sprintf(ErrorMSG,"FC spi rx error "); |
ErrorCode = 8; |
StopNavigation = 1; |
StopNavigation = 1; |
} |
else if(FC.RC_Quality < 100) |
{ |
194,7 → 194,7 |
} |
|
// the handler will be cyclic called by the timer 1 ISR |
// used is for critical timing parts that normaly would handled |
// used is for critical timing parts that normaly would handled |
// within the main loop that could block longer at logging activities |
void EXTIT3_IRQHandler(void) |
{ |
202,7 → 202,7 |
|
VIC_ITCmd(EXTIT3_ITLine,DISABLE); // disable irq |
VIC_SWITCmd(EXTIT3_ITLine,DISABLE); // clear pending bit |
I2C1_UpdateCompass(); // update compass communication |
I2C1_UpdateCompass(); // update compass communication |
Analog_Update(); // get new ADC values |
VIC_ITCmd(EXTIT3_ITLine, ENABLE); // enable irq |
|
274,8 → 274,8 |
|
GPS_Init(); |
// initialize fat16 partition on sd card (needs Timer 1) |
|
// ---------- Prepare the isr driven |
|
// ---------- Prepare the isr driven |
// set to absolute lowest priority |
VIC_Config(EXTIT3_ITLine, VIC_IRQ, PRIORITY_SW); |
// enable interrupts |