Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
113:db67ae00550e
Parent:
109:a5b8264ffbbc
Child:
114:472502b31a12
--- a/configs.cpp	Mon Apr 13 12:16:21 2015 +0000
+++ b/configs.cpp	Thu Apr 16 12:57:13 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,28 @@
 
 ///< 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 
+    
+    // iniciando o pin de controle do arduino
     hw_extern_wdt = 0;
 }