![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork
Fork of LG by
Diff: uart_m.c
- Revision:
- 47:d902ef6f7564
- Parent:
- 38:716472a4492e
- Child:
- 91:a2bb81eaa183
--- a/uart_m.c Wed Feb 10 03:02:35 2016 +0000 +++ b/uart_m.c Wed Feb 10 14:06:57 2016 +0000 @@ -17,9 +17,9 @@ *********************************************************************************************************/ -#include "LPC17xx.h" /* LPC17xx definitions */ + /* LPC17xx definitions */ #include "uart_m.h" -//#include "global.h" +#include "Global.h" //555 //#define FPCLK (100000000) //� pll @@ -447,7 +447,20 @@ ConOutCur1 = ConOutCur1 & 0x3ff; LPC_UART1->THR = OutCon1[ConOutCur1]; } + + if (!(LPC_UART1->LSR & 0x40)) Gyro.PinReg |= PinRegBitTXE; else Gyro.PinReg &= ~PinRegBitTXE; } + else if (OutBufCon1Count == 1) + { + Gyro.PinReg |= PinRegBitTXE; + + } + else if (OutBufCon1Count == 2) + { + Gyro.PinReg |= PinRegBitTXE; + + } + if (LPC_UART1->LSR & 0x01) { ConInCur1++; @@ -455,7 +468,8 @@ InCon1[ConInCur1] = (LPC_UART1->RBR); } - //if (!(LPC_UART1->LSR & 0x40)) SetDeUART1 (); else ClrDeUART1() ; //���������� 485 + + } void Concol1Fast (void ) @@ -592,6 +606,7 @@ ConOutPnt1 = ConOutPnt1 & 0x3ff; OutCon1[ConOutPnt1] = (*s++); } + OutBufCon1Count = 10; }