mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
Bring up main task, start MG loop and load config
PUBLISHED_FROM=7c81ec28457cda3a503e4ab01fc8593e474df4b8
This commit is contained in:
1 parent
72f1d444d3
commit
2fa988fc7b
1 file changed
+43
+43
@@ -457,6 +457,49 @@ typedef struct stat cs_stat_t;
|
|||||||
#endif /* CS_PLATFORM == CS_P_UNIX */
|
#endif /* CS_PLATFORM == CS_P_UNIX */
|
||||||
#endif /* CS_COMMON_PLATFORMS_PLATFORM_UNIX_H_ */
|
#endif /* CS_COMMON_PLATFORMS_PLATFORM_UNIX_H_ */
|
||||||
#ifdef MG_MODULE_LINES
|
#ifdef MG_MODULE_LINES
|
||||||
|
#line 1 "common/platforms/platform_esp32.h"
|
||||||
|
#endif
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2014-2016 Cesanta Software Limited
|
||||||
|
* All rights reserved
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef CS_COMMON_PLATFORMS_PLATFORM_ESP32_H_
|
||||||
|
#define CS_COMMON_PLATFORMS_PLATFORM_ESP32_H_
|
||||||
|
#if CS_PLATFORM == CS_P_ESP32
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
#include <machine/endian.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
#define SIZE_T_FMT "u"
|
||||||
|
typedef struct stat cs_stat_t;
|
||||||
|
#define DIRSEP '/'
|
||||||
|
#define to64(x) strtoll(x, NULL, 10)
|
||||||
|
#define INT64_FMT PRId64
|
||||||
|
#define INT64_X_FMT PRIx64
|
||||||
|
#define __cdecl
|
||||||
|
#define _FILE_OFFSET_BITS 32
|
||||||
|
|
||||||
|
#define MG_LWIP 1
|
||||||
|
|
||||||
|
#ifndef MG_NET_IF
|
||||||
|
#define MG_NET_IF MG_NET_IF_SOCKET
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CS_ENABLE_STDIO
|
||||||
|
#define CS_ENABLE_STDIO 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* CS_PLATFORM == CS_P_ESP32 */
|
||||||
|
#endif /* CS_COMMON_PLATFORMS_PLATFORM_ESP32_H_ */
|
||||||
|
#ifdef MG_MODULE_LINES
|
||||||
#line 1 "common/platforms/platform_esp8266.h"
|
#line 1 "common/platforms/platform_esp8266.h"
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in new issue
Block a user