Poerting the Xbee library to use teh wifi functionality of the LPC4088.
Dependents: XBee_WiFi_EA_LPC4088
Fork of XBee by
Diff: XBeeWiFi.cpp
- Revision:
- 6:6f84e2840408
- Parent:
- 5:547cfff7adf7
- Child:
- 8:042c457e3282
diff -r 547cfff7adf7 -r 6f84e2840408 XBeeWiFi.cpp --- a/XBeeWiFi.cpp Tue Mar 13 09:11:35 2012 +0000 +++ b/XBeeWiFi.cpp Wed Dec 18 02:24:33 2013 +0000 @@ -8,6 +8,9 @@ * @brief XBee Wi-Fi library for mbed */ +#include "XBee_conf.h" +#ifdef ENABLE_XBEE_WIFI + //#define DEBUG #include "dbg.h" @@ -18,7 +21,6 @@ #define REVERSE_ENDIAN(x) (uint16_t)(((uint16_t)x >> 8) | ((uint16_t)x << 8)) -#ifdef USE_WIFICLASS XBeeWiFi::XBeeWiFi (PinName p_tx, PinName p_rx, PinName p_cts, PinName p_rts) : XBee(p_tx, p_rx, p_cts, p_rts) { } @@ -455,8 +457,6 @@ } #endif -#endif - IPv4TransmitRequest::IPv4TransmitRequest() : PayloadRequest(IPv4_TRANSMIT_REQUEST, DEFAULT_FRAME_ID, NULL, 0) { } @@ -593,3 +593,6 @@ uint16_t IPV4RxFrame::getDataLength() { return getPacketLength() - getDataOffset() - 1; } + +#endif +