mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-16 10:39:49 +00:00
CC3220 blinky
Ignore all the mess, this is just the beginning... PUBLISHED_FROM=41ab3c5af0b1d07204619dd4d8dc2e84b6a54f32
This commit is contained in:
1 parent
7632a5e4af
commit
6517af3dea
1 file changed
+15
-5
+15
-5
@@ -46,9 +46,10 @@
|
||||
#define CS_P_WINDOWS 2
|
||||
#define CS_P_ESP32 15
|
||||
#define CS_P_ESP8266 3
|
||||
#define CS_P_CC3200 4
|
||||
#define CS_P_MSP432 5
|
||||
#define CS_P_CC3100 6
|
||||
#define CS_P_CC3200 4
|
||||
#define CS_P_CC3220 17
|
||||
#define CS_P_MSP432 5
|
||||
#define CS_P_TM4C129 14
|
||||
#define CS_P_MBED 7
|
||||
#define CS_P_WINCE 8
|
||||
@@ -58,7 +59,7 @@
|
||||
#define CS_P_NRF52 10
|
||||
#define CS_P_PIC32 11
|
||||
#define CS_P_STM32 16
|
||||
/* Next id: 17 */
|
||||
/* Next id: 18 */
|
||||
|
||||
/* If not specified explicitly, we guess platform by defines. */
|
||||
#ifndef CS_PLATFORM
|
||||
@@ -111,8 +112,9 @@
|
||||
/* Amalgamated: #include "common/platforms/platform_windows.h" */
|
||||
/* Amalgamated: #include "common/platforms/platform_esp32.h" */
|
||||
/* Amalgamated: #include "common/platforms/platform_esp8266.h" */
|
||||
/* Amalgamated: #include "common/platforms/platform_cc3200.h" */
|
||||
/* Amalgamated: #include "common/platforms/platform_cc3100.h" */
|
||||
/* Amalgamated: #include "common/platforms/platform_cc3200.h" */
|
||||
/* Amalgamated: #include "common/platforms/platform_cc3220.h" */
|
||||
/* Amalgamated: #include "common/platforms/platform_mbed.h" */
|
||||
/* Amalgamated: #include "common/platforms/platform_nrf51.h" */
|
||||
/* Amalgamated: #include "common/platforms/platform_nrf52.h" */
|
||||
@@ -719,8 +721,10 @@ int stat(const char *pathname, struct stat *st);
|
||||
#define S_ISDIR(mode) __S_ISTYPE((mode), __S_IFDIR)
|
||||
#define S_ISREG(mode) __S_ISTYPE((mode), __S_IFREG)
|
||||
|
||||
/* As of 5.2.7, TI compiler does not support va_copy() yet. */
|
||||
/* 5.x series compilers don't have va_copy, 16.x do. */
|
||||
#if __TI_COMPILER_VERSION__ < 16000000
|
||||
#define va_copy(apc, ap) ((apc) = (ap))
|
||||
#endif
|
||||
|
||||
#endif /* __TI_COMPILER_VERSION__ */
|
||||
|
||||
@@ -1115,6 +1119,11 @@ int gettimeofday(struct timeval *tp, void *tzp);
|
||||
#undef fd_set
|
||||
#endif
|
||||
|
||||
#if CS_PLATFORM == CS_P_CC3220
|
||||
#include <ti/drivers/net/wifi/porting/user.h>
|
||||
#include <ti/drivers/net/wifi/simplelink.h>
|
||||
#include <ti/drivers/net/wifi/netapp.h>
|
||||
#else
|
||||
/* We want to disable SL_INC_STD_BSD_API_NAMING, so we include user.h ourselves
|
||||
* and undef it. */
|
||||
#define PROVISIONING_API_H_
|
||||
@@ -1124,6 +1133,7 @@ int gettimeofday(struct timeval *tp, void *tzp);
|
||||
|
||||
#include <simplelink/include/simplelink.h>
|
||||
#include <simplelink/include/netapp.h>
|
||||
#endif /* CS_PLATFORM == CS_P_CC3220 */
|
||||
|
||||
/* Now define only the subset of the BSD API that we use.
|
||||
* Notably, close(), read() and write() are not defined. */
|
||||
|
||||
Reference in new issue
Block a user