TI's CC3100. A test demo with very little testing done!
Fork of cc3100_Test_Demo2 by
Diff: main.cpp
- Revision:
- 8:bb9cccbe84d7
- Parent:
- 7:0687d16b9781
- Child:
- 9:b8da46b97970
diff -r 0687d16b9781 -r bb9cccbe84d7 main.cpp --- a/main.cpp Thu Sep 03 13:43:50 2015 +0000 +++ b/main.cpp Sat Jul 22 05:04:14 2017 +0000 @@ -72,11 +72,12 @@ #elif (THIS_BOARD == ST_MBED_NUCLEOF103) cc3100 _cc3100(PA_9, PC_7, PB_6, SPI(PA_7, PA_6, PA_5));//nucleoF103 irq, nHib, cs, mosi, miso, sck Serial pc(SERIAL_TX, SERIAL_RX); -#elif (THIS_BOARD == Seeed_Arch_Max) -cc3100 _cc3100(PD_12, PD_13, PD_11, SPI(PB_5, PB_4, PB_3));//Seeed_Arch_Max irq, nHib, cs, mosi, miso, sck +#elif (THIS_BOARD == K64F) +cc3100 _cc3100(PTC4, PTC3, PTD0, SPI(PTD2, PTD3, PTD1));//Seeed_Arch_Max irq, nHib, cs, mosi, miso, sck Serial pc(USBTX, USBRX); #else + #endif #define APPLICATION_VERSION "1.2.0" @@ -84,6 +85,7 @@ /* * GLOBAL VARIABLES -- Start */ + //ap 1 STATION 0 int32_t demo = 0; /* @@ -115,6 +117,7 @@ int32_t retVal = -1; retVal = _cc3100.initializeAppVariables(); + ASSERT_ON_ERROR(retVal); displayBanner();