Subversion Repositories NaviCtrl

Rev

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

Rev 154 Rev 155
Line 190... Line 190...
190
// within the main loop that could block longer at logging activities
190
// within the main loop that could block longer at logging activities
191
void EXTIT3_IRQHandler(void)
191
void EXTIT3_IRQHandler(void)
192
{
192
{
193
        VIC_ITCmd(EXTIT3_ITLine,DISABLE); // disable irq
193
        VIC_ITCmd(EXTIT3_ITLine,DISABLE); // disable irq
Line 194... Line 194...
194
 
194
 
195
        I2C1_UpdateCompass();   // update compass communication
-
 
196
        UART0_ProcessRxData();  // process request
-
 
197
        UART1_ProcessRxData();  // process request
-
 
198
        USB_ProcessRxData();    // process request
-
 
199
 
-
 
200
        SPI0_UpdateBuffer();    // handle new SPI Data  
195
        I2C1_UpdateCompass();   // update compass communication 
Line 201... Line 196...
201
        Analog_Update();                // get new ADC values
196
        Analog_Update();                // get new ADC values
202
 
197
 
203
        VIC_SWITCmd(EXTIT3_ITLine,DISABLE); // clear pending bit
198
        VIC_SWITCmd(EXTIT3_ITLine,DISABLE); // clear pending bit
Line 275... Line 270...
275
        // enanble interrupts
270
        // enanble interrupts
276
    VIC_ITCmd(EXTIT3_ITLine, ENABLE);
271
    VIC_ITCmd(EXTIT3_ITLine, ENABLE);
Line 277... Line 272...
277
 
272
 
278
        for (;;) // the endless main loop
273
        for (;;) // the endless main loop
-
 
274
        {
-
 
275
                UART0_ProcessRxData();  // process request
-
 
276
                UART1_ProcessRxData();  // process request
279
        {
277
                USB_ProcessRxData();    // process request
280
                UART0_TransmitTxData(); // send answer
278
                UART0_TransmitTxData(); // send answer
281
                UART1_TransmitTxData(); // send answer
279
                UART1_TransmitTxData(); // send answer
Line -... Line 280...
-
 
280
                USB_TransmitTxData();   // send answer
-
 
281
 
282
                USB_TransmitTxData();   // send answer
282
                SPI0_UpdateBuffer();    // handle new SPI Data
283
 
283
 
284
                // ---------------- Error Check Timing ----------------------------
284
                // ---------------- Error Check Timing ----------------------------
285
                if(CheckDelay(TimerCheckError))
285
                if(CheckDelay(TimerCheckError))
286
                {
286
                {