mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-21 11:30:01 +00:00
rename MG_ENABLE_FILE to MG_ENABLE_POSIX_FS
This commit is contained in:
1 parent
00ea3830a7
commit
4d3fba57d4
18 files changed
+554
-554
No files matched your search
@@ -4,7 +4,7 @@
|
||||
#define MG_ENABLE_TCPIP 1 // Enable built-in network stack
|
||||
#define MG_ENABLE_DRIVER_IMXRT 1 // Enable RTxx driver
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 1 // Let user implement mg_millis()
|
||||
#define MG_ENABLE_FILE 0 // Disable POSIX filesystem
|
||||
#define MG_ENABLE_POSIX_FS 0 // Disable POSIX filesystem
|
||||
#define MG_ENABLE_PACKED_FS 1 // Enable packed filesystem
|
||||
|
||||
#define HTTP_URL "http://0.0.0.0"
|
||||
|
||||
@@ -26,7 +26,7 @@ pico_enable_stdio_uart(firmware 1) # to the UART
|
||||
# Mongoose build flags
|
||||
add_definitions(-DMG_ENABLE_TCPIP=1)
|
||||
add_definitions(-DMG_ENABLE_PACKED_FS=1)
|
||||
add_definitions(-DMG_ENABLE_FILE=0)
|
||||
add_definitions(-DMG_ENABLE_POSIX_FS=0)
|
||||
add_definitions(-DDISABLE_ROUTING=1)
|
||||
|
||||
# Example build options
|
||||
|
||||
@@ -23,6 +23,6 @@ pico_enable_stdio_uart(firmware 1) # to the UART
|
||||
|
||||
# Mongoose build flags
|
||||
add_definitions(-DMG_ENABLE_TCPIP=1)
|
||||
add_definitions(-DMG_ENABLE_FILE=0)
|
||||
add_definitions(-DMG_ENABLE_POSIX_FS=0)
|
||||
|
||||
# Example build options
|
||||
@@ -21,7 +21,7 @@ add_definitions(-DMG_ENABLE_TCPIP=1)
|
||||
add_definitions(-DMG_ENABLE_PACKED_FS=1)
|
||||
add_definitions(-DMG_ENABLE_MBEDTLS=0) # TODO(cpq): enable
|
||||
add_definitions(-DMG_ENABLE_CUSTOM_RANDOM=1)
|
||||
add_definitions(-DMG_ENABLE_FILE=0)
|
||||
add_definitions(-DMG_ENABLE_POSIX_FS=0)
|
||||
|
||||
# Example build options
|
||||
add_definitions(-DHTTP_URL="http://0.0.0.0/")
|
||||
|
||||
@@ -1,32 +1,32 @@
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 1
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_STMPACK_ARCH
|
||||
#define MG_STMPACK_NET 0
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_CMSISPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_CMSISPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_CMSISPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_CMSISPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_FILE 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 1
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_STMPACK_ARCH
|
||||
#define MG_STMPACK_NET 0
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_CMSISPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_CMSISPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_CMSISPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_CMSISPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_POSIX_FS 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
@@ -1,32 +1,32 @@
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 0
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
|
||||
#define MG_STMPACK_NET 0
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_STMPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_STMPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_STMPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_STMPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_FILE 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 0
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
|
||||
#define MG_STMPACK_NET 0
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_STMPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_STMPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_STMPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_STMPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_POSIX_FS 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
@@ -1,32 +1,32 @@
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 0
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_ARCH_FREERTOS
|
||||
#define MG_STMPACK_NET 1
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_STMPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_STMPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_STMPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_STMPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_FILE 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 0
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_ARCH_FREERTOS
|
||||
#define MG_STMPACK_NET 1
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_STMPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_STMPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_STMPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_STMPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_POSIX_FS 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
@@ -1,32 +1,32 @@
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 1
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_STMPACK_ARCH
|
||||
#define MG_STMPACK_NET 0
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_CMSISPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_CMSISPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_CMSISPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_CMSISPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_FILE 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 1
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_STMPACK_ARCH
|
||||
#define MG_STMPACK_NET 0
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_CMSISPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_CMSISPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_CMSISPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_CMSISPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_POSIX_FS 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
@@ -1,32 +1,32 @@
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 0
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
|
||||
#define MG_STMPACK_NET 0
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_STMPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_STMPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_STMPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_STMPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_FILE 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 0
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
|
||||
#define MG_STMPACK_NET 0
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_STMPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_STMPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_STMPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_STMPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_POSIX_FS 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
@@ -1,32 +1,32 @@
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 0
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_ARCH_FREERTOS
|
||||
#define MG_STMPACK_NET 1
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_STMPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_STMPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_STMPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_STMPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_FILE 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 0
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_ARCH_FREERTOS
|
||||
#define MG_STMPACK_NET 1
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_STMPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_STMPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_STMPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_STMPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_POSIX_FS 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
@@ -1,32 +1,32 @@
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 1
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_STMPACK_ARCH
|
||||
#define MG_STMPACK_NET 0
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_CMSISPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_CMSISPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_CMSISPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_CMSISPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_FILE 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 1
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_STMPACK_ARCH
|
||||
#define MG_STMPACK_NET 0
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_CMSISPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_CMSISPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_CMSISPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_CMSISPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_POSIX_FS 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
@@ -1,32 +1,32 @@
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 0
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
|
||||
#define MG_STMPACK_NET 0
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_STMPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_STMPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_STMPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_STMPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_FILE 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
|
||||
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
|
||||
#if defined(MG_ARCH)
|
||||
#define MG_STMPACK_ARCH MG_ARCH
|
||||
#undef MG_ARCH
|
||||
#elif defined(__GNUC__)
|
||||
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
|
||||
#endif
|
||||
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 0
|
||||
#define MG_ENABLE_MBEDTLS 0
|
||||
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
|
||||
#define MG_STMPACK_NET 0
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
|
||||
// Translate to Mongoose macros
|
||||
#if MG_STMPACK_NET == 0
|
||||
#define MG_ENABLE_TCPIP 1
|
||||
#elif MG_STMPACK_NET == 1
|
||||
#define MG_ENABLE_LWIP 1
|
||||
#elif MG_STMPACK_NET == 2
|
||||
#define MG_ENABLE_FREERTOS_TCP 1
|
||||
#elif MG_STMPACK_NET == 3
|
||||
#define MG_ENABLE_RL 1
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#define MG_ENABLE_POSIX_FS 0
|
||||
#endif
|
||||
|
||||
// See https://mongoose.ws/documentation/#build-options
|
||||
@@ -9,7 +9,7 @@
|
||||
#define MG_ENABLE_CUSTOM_MILLIS 1
|
||||
#define MG_ENABLE_CUSTOM_RANDOM 1
|
||||
#define MG_ENABLE_PACKED_FS 1
|
||||
#define MG_ENABLE_FILE 0
|
||||
#define MG_ENABLE_POSIX_FS 0
|
||||
#define MG_ENABLE_DRIVER_STM32F 1
|
||||
#define MG_ENABLE_LINES 1
|
||||
#define MG_IO_SIZE 256
|
||||
Reference in new issue
Block a user