Subversion Repositories NaviCtrl

Rev

Rev 228 | Rev 231 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 228 Rev 229
Line 132... Line 132...
132
                LED_RED_ON;
132
                LED_RED_ON;
133
                sprintf(ErrorMSG,"no FC communication ");
133
                sprintf(ErrorMSG,"no FC communication ");
134
                ErrorCode = 3;
134
                ErrorCode = 3;
135
                StopNavigation = 1;
135
                StopNavigation = 1;
136
        }
136
        }
137
        else if((CheckDelay(I2C1_Timeout)) || (I2C_Heading.Heading == -2))
137
        else if(CheckDelay(I2C1_Timeout))
138
        {
138
        {
139
                LED_RED_ON;
139
                LED_RED_ON;
140
                sprintf(ErrorMSG,"no MK3Mag communication ");
140
                sprintf(ErrorMSG,"no MK3Mag communication ");
141
                //Reset I2CBus
141
                //Reset I2CBus
142
                I2C1_Deinit();
142
                I2C1_Deinit();
Line 280... Line 280...
280
        // ---------- Prepare the isr driven
280
        // ---------- Prepare the isr driven
281
        // set to absolute lowest priority
281
        // set to absolute lowest priority
282
    VIC_Config(EXTIT3_ITLine, VIC_IRQ, PRIORITY_SW);
282
    VIC_Config(EXTIT3_ITLine, VIC_IRQ, PRIORITY_SW);
283
        // enable interrupts
283
        // enable interrupts
284
    VIC_ITCmd(EXTIT3_ITLine, ENABLE);
284
    VIC_ITCmd(EXTIT3_ITLine, ENABLE);
285
    I2C1_Timeout = SetDelay(1000);
-
 
286
        for (;;) // the endless main loop
285
        for (;;) // the endless main loop
287
        {
286
        {
288
                UART0_ProcessRxData();  // process request
287
                UART0_ProcessRxData();  // process request
289
                UART1_ProcessRxData();  // process request
288
                UART1_ProcessRxData();  // process request
290
                USB_ProcessRxData();    // process request
289
                USB_ProcessRxData();    // process request