fork

Dependencies:   mbed

Fork of LG by igor Apu

Revision:
92:c892f0311aa7
Parent:
91:a2bb81eaa183
Child:
93:b3803774f110
--- a/uart_m.c	Thu Mar 24 14:46:58 2016 +0000
+++ b/uart_m.c	Fri Mar 25 11:11:46 2016 +0000
@@ -227,10 +227,10 @@
 {
 	uint16_t usFdiv;
 
-//	usFdiv = ((FPCLK  / 16) / Speed) +1;          
-	usFdiv = ((FPCLK  / 4) / Speed) + 1 ;          
+    usFdiv = ((FPCLK  / 16) / Speed) +1;          
+    //usFdiv = ((FPCLK  / 4) / Speed) + 1 ;          
 
-	if (Num == 0)
+	if (Num == 0) 
 	{
 		LPC_PINCON->PINSEL0 |= (1 << 4);             /* Pin P0.2 used as TXD0 (Com0) */
 		LPC_PINCON->PINSEL0 |= (1 << 6);             /* Pin P0.3 used as RXD0 (Com0) */
@@ -612,11 +612,11 @@
 	while (N != 0) 
 	{
 		N--;
-		ConOutPnt1++;
-		ConOutPnt1 = ConOutPnt1 & 0x3ff; 
-		OutCon1[ConOutPnt1] = (*s++);
+		ConOutPnt++;
+		ConOutPnt = ConOutPnt & 0x3ff; 
+		OutCon[ConOutPnt] = (*s++);
 	}
-	OutBufCon1Count = 10;
+	OutBufConCount = 10;
 }