David Fletcher
/
cc3100_test
TI's CC3100 host driver and demo. Experimental and a work in progress.
Diff: main.cpp
- Revision:
- 1:da33a9116bda
- Parent:
- 0:bbe98578d4c0
- Child:
- 2:a3e52cf86086
--- a/main.cpp Mon Nov 17 19:38:34 2014 +0000 +++ b/main.cpp Tue Nov 18 15:45:17 2014 +0000 @@ -46,19 +46,21 @@ * doc\examples\getting_started_with_wlan_ap.pdf */ +#include "mbed.h" #include "cc3100_simplelink.h" #include "cc3100_sl_common.h" -# -#include "mbed.h" +#include "BoardInit.h" + +#if (THIS_BOARD == MBED_BOARD_LPC1768) +Serial pc(USBTX, USBRX);//lpc1768 +#elif (THIS_BOARD == ST_MBED_NUCLEOF411) +Serial pc(SERIAL_TX, SERIAL_RX);//nucleoF411 +#else + +#endif //using namespace mbed_cc3100; -//cc3100_spi spi_con(p9, p10, p8, SPI(p5, p6, p7)); -Serial pc(SERIAL_TX, SERIAL_RX);//nucleoF411 -//Serial pc(USBTX, USBRX);//lpc1768 - -//namespace mbed_cc3100 { - #define APPLICATION_VERSION "1.1.0" #define SL_STOP_TIMEOUT 0xFF