123

Dependencies:   mbed

Fork of LG by igor Apu

Revision:
11:af609f6dee46
Parent:
10:8d2edc51f3c9
Child:
12:74bd0ecf7f83
--- a/main.c	Mon Feb 01 08:48:47 2016 +0000
+++ b/main.c	Mon Feb 01 16:40:49 2016 +0000
@@ -73,8 +73,22 @@
 }
 
 long LED_TEMP=0;
+
+
+
 int main (void)
 {
+    SystemInit();  				// ������������� �������ввававва
+	SystemCoreClockUpdate();  	// ������ ��������� ������� ��� UART.  
+
+	while(1){Concol (); Led_Blink();LightUpON;LightUpOFF;} 
+
+}
+
+
+
+int main22 (void)
+{
     K_DAC=65535.0/(65535.0+(deltaDAC+deltaDAC/2));
     K_DAC=0.8;
 
@@ -90,14 +104,24 @@
     Spi.DAC_A=0x7fff;
     Spi.DAC_B = 0x7fff;
     //�������������
+
     SystemInit();  // ������������� �������ввававва
     Led_init();
+    
     ///*
     //���������������� ������� �������
     LPC_PINCON->PINSEL0 &= ~(3<<8);		//e. P0.4 is GPIO pin (������ ( 00 ) � 9:8 ��� PISEL0    ����� P0.4 ��� GPIO)
     LPC_PINCON->PINMODE0 |= (3<<8);		//e. P0.4 is GPIO pin (������ ( 11 ) � 9:8 ��� PINMODE0  "��� ��������� �������������� ���������")
     LPC_GPIO0->FIODIR   |= (1<<4);		//e. P0.4 is output   (������ ( 1 ) �  5  ��� FIODIR    ����� P0.4 ��� �����)
     LightUpON		//e. P0.4 is output   (������ ( 1 ) �  5  ��� CLR       ������������� �� P0.4 ������ ������� �������)
+ 
+ 	SystemCoreClockUpdate();  // ������ ��������� ������� ��� UART.  
+
+while(1){Concol (); Led_Blink();LightUpON;LightUpOFF;} 
+
+
+
+ 
     /*
     LPC_PINCON->PINSEL0 &= ~(3<<10);		//e. P0.4 is GPIO pin (������ ( 00 ) � 9:8 ��� PISEL0    ����� P0.4 ��� GPIO)
     LPC_PINCON->PINMODE0 |= (3<<10);		//e. P0.4 is GPIO pin (������ ( 11 ) � 9:8 ��� PINMODE0  "��� ��������� �������������� ���������")
@@ -209,6 +233,10 @@
     OutBufConCount = 0;
     WriteCon("\n\r ...WriteCon1.... ");
 
+
+
+
+
     do { //�������� ����.
         if (OutBufConCount)  OutBufConCount--;
         Concol ();