Subversion Repositories NaviCtrl

Rev

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

Rev 360 Rev 378
Line 287... Line 287...
287
                                c = UART_ReceiveData(UART0); // get byte from rx fifo
287
                                c = UART_ReceiveData(UART0); // get byte from rx fifo
288
                                switch(UART0_Muxer)
288
                                switch(UART0_Muxer)
289
                                {
289
                                {
290
                                        case UART0_MKGPS:
290
                                        case UART0_MKGPS:
291
                                                UBX_RxParser(c); // if connected to GPS forward byte to ubx parser
291
                                                UBX_RxParser(c); // if connected to GPS forward byte to ubx parser
292
                                                MKProtocol_CollectSerialFrame(&UART0_rx_buffer, c);     // ckeck for MK-Frames also
292
//      MKProtocol_CollectSerialFrame(&UART0_rx_buffer, c);     // ckeck for MK-Frames also
293
                                                break;
293
                                                break;
294
                                        case UART0_MK3MAG:
294
                                        case UART0_MK3MAG:
295
                                                // ignore any byte send from MK3MAG
295
                                                // ignore any byte send from MK3MAG
296
                                                break;
296
                                                break;
297
                                        case UART0_UNDEF:
297
                                        case UART0_UNDEF:
Line 300... Line 300...
300
                                                break;
300
                                                break;
301
                                } // eof switch(UART0_Muxer)
301
                                } // eof switch(UART0_Muxer)
302
                        } // eof while
302
                        } // eof while
303
                }  // eof UART0 is not the DebugUART
303
                }  // eof UART0 is not the DebugUART
304
        } // eof receive irq or receive timeout irq
304
        } // eof receive irq or receive timeout irq
-
 
305
 
-
 
306
        VIC1->VAR = 0xFF; // write any value to VIC0 Vector address register
305
}
307
}
Line 306... Line 308...
306
 
308
 
307
/**************************************************************/
309
/**************************************************************/
308
/* Process incomming data from debug uart                     */
310
/* Process incomming data from debug uart                     */
Line 364... Line 366...
364
/**************************************************************/
366
/**************************************************************/
365
void UART0_Transmit(void)
367
void UART0_Transmit(void)
366
{
368
{
367
        u8 tmp_tx;
369
        u8 tmp_tx;
Line 368... Line -...
368
 
-
 
369
        IENABLE;
-
 
370
 
370
 
371
        if(DebugUART == UART0) return; // no data output if debug uart is rederected to UART0
371
        if(DebugUART == UART0) return; // no data output if debug uart is rederected to UART0
372
        // if something has to be send and the txd fifo is not full
372
        // if something has to be send and the txd fifo is not full
373
        if((UART0_tx_buffer.Locked == TRUE) && (UART_GetFlagStatus(UART0, UART_FLAG_TxFIFOFull) == RESET))
373
        if((UART0_tx_buffer.Locked == TRUE) && (UART_GetFlagStatus(UART0, UART_FLAG_TxFIFOFull) == RESET))
374
        {
374
        {
Line 379... Line 379...
379
                {
379
                {
380
                        Buffer_Clear(&UART0_tx_buffer);
380
                        Buffer_Clear(&UART0_tx_buffer);
381
                }
381
                }
382
        }
382
        }
Line 383... Line -...
383
 
-
 
384
        IDISABLE;
383
 
Line 385... Line 384...
385
}
384
}
386
 
385