Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
105:a930035b6556
Parent:
86:bf7b0d4c3232
Child:
109:a5b8264ffbbc
--- a/configs.cpp	Wed Feb 25 18:44:11 2015 +0000
+++ b/configs.cpp	Tue Mar 10 18:10:57 2015 +0000
@@ -18,7 +18,8 @@
 
 Serial  Uart3(p9,p10);  // default baudrate = 9600; Sem paridade, 8bits, 1 stop-bit 
 
-void start_cpld( void ) {                        //CPLD Start
+void start_cpld( void ) {
+    //CPLD Start
     static uint16_t reset = 10000;
     ENABLE_F_REG = 1;                                
     ENABLE_F_TX = 1;
@@ -31,15 +32,26 @@
 
 ///< Configure LPC4088
 void config_lpc( void ){
-    Uart3.attach(&SerialRecvInterrupt, Uart3.RxIrq);       // UART3_IRQ configuration 
-    Uart3.format(8,SerialBase::Forced1,1);                 // UART3 mode configuration
+    // UART3_IRQ configuration 
+    Uart3.attach(&SerialRecvInterrupt, Uart3.RxIrq);
+    
+    // UART3 mode configuration
+    Uart3.format(8,SerialBase::Forced1,1);
+    
     Uart3.baud(2000000);                                
-    NVIC_SetPriority(UART3_IRQn,1);    
-    pc.baud(115200);                                        // USART to PC USB USART
-    NextData.rise(&get2);                                 // Extern Pin Interrupt
-    FrameSync.rise(&RXFrameSync);                         // FrameSync for RX - Interrupt
+    
+    NVIC_SetPriority(UART3_IRQn,1);
+    
+    // USART to PC USB USART
+    pc.baud(115200);
+    
+    // Extern Pin Interrupt
+    NextData.rise(&get2);
+    
+    // FrameSync for RX - Interrupt
+    FrameSync.rise(&RXFrameSync);                         
+    
     __enable_irq();
-    //ticker.attach(&timer,0.01);                         // Timer para Debug    
 }
 
 static uint8_t itoh[16];