mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-26 20:38:25 +00:00
Add nRF port for Mongoose
Example is not yet added PUBLISHED_FROM=2732386091a0d4cd8d4c6e64dc16467780ec72a5
This commit is contained in:
1 parent
98ab0950c9
commit
85d6292b8f
2 files changed
+76
-15
No files matched your search
+32
@@ -51,6 +51,7 @@
|
||||
#define CS_P_MBED 7
|
||||
#define CS_P_WINCE 8
|
||||
#define CS_P_NXP_KINETIS 9
|
||||
#define CS_P_NRF52 10
|
||||
|
||||
/* If not specified explicitly, we guess platform by defines. */
|
||||
#ifndef CS_PLATFORM
|
||||
@@ -88,6 +89,7 @@
|
||||
/* Amalgamated: #include "common/platforms/platform_cc3200.h" */
|
||||
/* Amalgamated: #include "common/platforms/platform_cc3100.h" */
|
||||
/* Amalgamated: #include "common/platforms/platform_mbed.h" */
|
||||
/* Amalgamated: #include "common/platforms/platform_nrf52.h" */
|
||||
/* Amalgamated: #include "common/platforms/platform_wince.h" */
|
||||
/* Amalgamated: #include "common/platforms/platform_nxp_kinetis.h" */
|
||||
|
||||
@@ -766,6 +768,36 @@ int _stat(const char *pathname, struct stat *st);
|
||||
#endif /* CS_PLATFORM == CS_P_MBED */
|
||||
#endif /* CS_COMMON_PLATFORMS_PLATFORM_MBED_H_ */
|
||||
#ifdef MG_MODULE_LINES
|
||||
#line 1 "common/platforms/platform_nrf52.h"
|
||||
#endif
|
||||
/*
|
||||
* Copyright (c) 2014-2016 Cesanta Software Limited
|
||||
* All rights reserved
|
||||
*/
|
||||
#ifndef CS_COMMON_PLATFORMS_PLATFORM_NRF52_H_
|
||||
#define CS_COMMON_PLATFORMS_PLATFORM_NRF52_H_
|
||||
#if CS_PLATFORM == CS_P_NRF52
|
||||
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#define MG_NET_IF MG_NET_IF_LWIP_LOW_LEVEL
|
||||
#define LWIP_TIMEVAL_PRIVATE 0
|
||||
#define LWIP_PROVIDE_ERRNO 1
|
||||
#define MG_LWIP 1
|
||||
#define MG_ENABLE_IPV6 1
|
||||
|
||||
#define INT64_FMT PRId64
|
||||
#define SIZE_T_FMT "u"
|
||||
|
||||
#endif /* CS_PLATFORM == CS_P_NRF52 */
|
||||
#endif /* CS_COMMON_PLATFORMS_PLATFORM_NRF52_H_ */
|
||||
#ifdef MG_MODULE_LINES
|
||||
#line 1 "common/platforms/simplelink/cs_simplelink.h"
|
||||
#endif
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user