![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: UART3Interrupt.cpp
- Revision:
- 106:a34fcf9f0e02
- Parent:
- 105:a930035b6556
- Child:
- 109:a5b8264ffbbc
--- a/UART3Interrupt.cpp Tue Mar 10 18:10:57 2015 +0000 +++ b/UART3Interrupt.cpp Fri Mar 13 19:40:56 2015 +0000 @@ -30,72 +30,4 @@ void RXFrameSync (void) { RX_c = 0; status = __WAITING__; -} - - - - - - - - - - - - - - -/* -void initRX (void) { - -RXHeadPtr = IntBuff; // Initial state -RXHeadPtr = RXTailPtr; - -} - -void SerialRecvInterrupt (void) // UART3 Serial Interrupt Handler -{ - static uint8_t data = 0; - while ( LPC_UART3->LSR &= (0<<1) ) {} - // *(RXBuffer+idx) = LPC_UART3->RBR; Receive data from UART3 RX - - data = LPC_UART3->RBR; // Receive data from UART3 RX - - RXHeadPtr = &data; - - RXHeadPtr++; - move++; - - if ( RXHeadPtr == (IntBuff+899) ) - { - RXHeadPtr = IntBuff; - } - -} - -void RcvRX( void ) { - - static uint16_t p = 0; - static uint8_t data = 0; - - if ( move ) { - - data = *RXTailPtr; - - RXBuffer[p] = data; - RXTailPtr++; - move--; - p++; - } - - if ( RXTailPtr == (IntBuff+899) ) { - RXTailPtr = IntBuff; - } - - if ( p == 300 ) { - processRX = 1; - p = 0; - } - -} -*/ \ No newline at end of file +} \ No newline at end of file