voltando a versao de n aberturas e fechamentos de sockets data 19/09

Dependencies:   EthernetInterface NTPClient mbed-rtos mbed EALib

Fork of header_main_publish by VZTECH

Revision:
17:67a6b557eda5
Parent:
16:b45b5b7363d7
Child:
18:01a93677e40c
--- a/configs.cpp	Thu Sep 18 13:59:58 2014 +0000
+++ b/configs.cpp	Fri Sep 19 16:40:17 2014 +0000
@@ -8,11 +8,17 @@
 //                             Pins/Modules Config
 //***************************************************************************** 
 
+QSPIFileSystem qspifs("qspi");  // file system
+
+Watchdog wdt;
+
 DigitalOut led1(LED1);
 DigitalOut led2(LED2);
 DigitalOut led3(LED3);
 DigitalOut led4(LED4);
 
+DigitalOut hack_led( p24 );
+
 DigitalOut DataReady(p11);                  //IO 27        
 
 DigitalOut data0(p30);                      //LSB
@@ -41,13 +47,13 @@
 
 void start_cpld( void ) {                        //CPLD Start
 
-    static uint16_t reset = 10000;
+    static uint16_t reset = 0;//10000;
     ENABLE_F_REG = 1;                                
     ENABLE_F_TX = 1;
     ENABLE_F_RX = 1;
     DataReady = 0;
     RST = 1;
-    while(reset--){}
+    while( reset++ < 10000 ){}
     RST = 0;        
 }