Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
109:a5b8264ffbbc
Parent:
105:a930035b6556
Child:
113:db67ae00550e
diff -r 18a3702650f3 -r a5b8264ffbbc configs.cpp
--- a/configs.cpp	Wed Mar 18 13:33:54 2015 +0000
+++ b/configs.cpp	Tue Apr 07 14:27:44 2015 +0000
@@ -18,8 +18,7 @@
 
 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;
@@ -32,26 +31,16 @@
 
 ///< Configure LPC4088
 void config_lpc( void ){
-    // UART3_IRQ configuration 
-    Uart3.attach(&SerialRecvInterrupt, Uart3.RxIrq);
-    
-    // UART3 mode configuration
-    Uart3.format(8,SerialBase::Forced1,1);
-    
+    Uart3.attach(&SerialRecvInterrupt, Uart3.RxIrq);       // UART3_IRQ configuration 
+    Uart3.format(8,SerialBase::Forced1,1);                 // UART3 mode configuration
     Uart3.baud(2000000);                                
-    
-    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);                         
-    
+    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
     __enable_irq();
+    //ticker.attach(&timer,0.01);                         // Timer para Debug 
+    hw_extern_wdt = 0;
 }
 
 static uint8_t itoh[16];