テストモード追加、LED有効化 left -> SerialRX, Data Recieve Complete , Serial Tx , Light Tx

Dependencies:   XBee mbed NetServicesMin

Revision:
0:42adca80439c
Child:
1:36eb173eb52b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/leds.cpp	Thu Mar 22 12:40:48 2012 +0000
@@ -0,0 +1,47 @@
+#include "mbed.h"
+#include "leds.h"
+
+Timeout led_ether;
+Timeout led_xbee;
+Timeout led_device;
+
+DigitalOut ledXb(LED1);
+DigitalOut ledDev(LED2);
+DigitalOut ledTcpCon(LED3);
+DigitalOut ledEt(LED4);
+
+void offEther(void){
+    ledEt=0;
+}
+void offXBee(void){
+    ledXb=0;
+}
+void offDevice(void){
+    ledDev=0;
+}
+
+void ledEther(void)
+{
+    ledEt=1;
+    led_ether.attach(&offEther,kLedOnTime);
+}
+void ledXBee(void)
+{
+    ledXb=1;
+    led_xbee.attach(&offXBee,kLedOnTime);
+}
+void ledDevice(void)
+{
+    ledDev=1;
+    led_device.attach(&offDevice,kLedOnTime);
+}
+void onLedDevice(void)
+{
+    ledDev=1;
+}
+
+void ledTcpConnect(bool isConnect)
+{
+    if(isConnect)   ledTcpCon=1;
+    else            ledTcpCon=0;
+}
\ No newline at end of file