aboutsummaryrefslogtreecommitdiff
path: root/firmwares/wifishield/wifiHD/src/main.c
diff options
context:
space:
mode:
authorMimmo La Fauci <mlafauci@metodo2.it>2013-03-10 22:55:21 +0100
committerMimmo La Fauci <mlafauci@metodo2.it>2013-03-10 22:55:21 +0100
commit8c5d809280904562aee082e2eab4ceb9f8523d9d (patch)
treed69ee3969dae33cf29f44832d66d7c112d4e418a /firmwares/wifishield/wifiHD/src/main.c
parentfb1abe737ed23c57a3208d603933dd68138ad022 (diff)
Updates to WiFi shield firmware.
Diffstat (limited to 'firmwares/wifishield/wifiHD/src/main.c')
-rw-r--r--firmwares/wifishield/wifiHD/src/main.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/firmwares/wifishield/wifiHD/src/main.c b/firmwares/wifishield/wifiHD/src/main.c
index 8961e35..297e015 100644
--- a/firmwares/wifishield/wifiHD/src/main.c
+++ b/firmwares/wifishield/wifiHD/src/main.c
@@ -39,7 +39,7 @@
#include <lwip_setup.h>
/* FIRMWARE version */
-const char* fwVersion = "1.0.0";
+const char* fwVersion = "1.1.0";
#if BOARD == ARDUINO
#if !defined(DATAFLASH)
@@ -89,14 +89,7 @@ bool scanNetCompleted = false;
static bool initSpiComplete = false;
// variable used as enable flag for debug prints
-#ifdef _DEBUG_
-uint16_t enableDebug = DEFAULT_INFO_FLAG | INFO_WARN_FLAG;// | INFO_SPI_FLAG;
-uint16_t verboseDebug = 0;
-#else
-uint16_t enableDebug = DEFAULT_INFO_FLAG;
-uint16_t verboseDebug = 0;
-#endif
-
+DEFINE_DEBUG_VARIABLES();
/**
*
@@ -287,6 +280,7 @@ void initShell()
console_add_cmd("setkey", cmd_setkey, NULL);
console_add_cmd("status", cmd_status, NULL);
console_add_cmd("debug", cmd_debug, NULL);
+ console_add_cmd("dumpBuf", cmd_dumpBuf, NULL);
#ifdef ADD_CMDS
console_add_cmd("powersave", cmd_power, NULL);
@@ -307,8 +301,11 @@ void initShell()
#ifdef _DNS_CMD_
console_add_cmd("getHost", cmd_gethostbyname, NULL);
console_add_cmd("setDNS", cmd_setDnsServer, NULL);
- console_add_cmd("startTcpSrv", cmd_startTcpSrv, NULL);
#endif
+ console_add_cmd("startSrv", cmd_startSrv, NULL);
+ console_add_cmd("startCli", cmd_startCli, NULL);
+ console_add_cmd("sendUdp", cmd_sendUdpData, NULL);
+
}
/**
@@ -359,7 +356,9 @@ void startup_init(void)
// if DEBUG enabled use DEB_PIN_GPIO for debug purposes
DEB_PIN_ENA();
+ DEB_PIN_ENA(2);
DEB_PIN_UP();
+ DEB_PIN_UP(2);
}
/**