![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork
Fork of LG by
Diff: uart_m.c
- Revision:
- 193:a0fe8bfc97e4
- Parent:
- 188:4c523cc373cc
- Child:
- 202:c03b7b128e11
- Child:
- 205:775d54fdf646
--- a/uart_m.c Thu Sep 01 08:23:30 2016 +0000 +++ b/uart_m.c Thu Sep 15 11:09:00 2016 +0000 @@ -451,7 +451,7 @@ { //if (OutBufCon1Count == 0) if (Time_UART == 0) - {//LoopOn + { if (ConOutPnt1 != ConOutCur1) if (LPC_UART1->LSR & 0x20) { @@ -461,16 +461,14 @@ } if (!(LPC_UART1->LSR & 0x40)) Gyro.PinReg |= PinRegBitTXE; else Gyro.PinReg &= ~PinRegBitTXE; } - else if (OutBufCon1Count == 1) + else if (OutBufCon1Count == 0) { + Gyro.PinReg |= PinRegBitTXE; } - else if (OutBufCon1Count == 2) - { - Gyro.PinReg |= PinRegBitTXE; - } + if (LPC_UART1->LSR & 0x01) - {LoopOn + {//LoopOn ConInCur1++; ConInCur1 = ConInCur1 & 0x3ff; InCon1[ConInCur1] = (LPC_UART1->RBR);