Merge pull request #2572 from cesanta/armccnodet

change mongoose_custom for Keil
This commit is contained in:
Sergio R. Caprile authored and GitHub committed 2024-01-16 16:59:23 -03:00
commit 6e44bab3d5
17 files changed
+448 -770

No files matched your search

@@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>> // <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture // <o MG_ARCH> Build environment
// <0=> Bare metal // <MG_ARCH_ARMCC=> Keil MDK
// <1=> FreeRTOS // <MG_ARCH_FREERTOS=> FreeRTOS
// <2=> CMSIS-RTOS v1 // <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2 // <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS // <MG_ARCH_NEWLIB=> ARM GCC + Newlib
// <i> FreeRTOS uses direct FreeRTOS calls #define MG_ARCH MG_ARCH_ARMCC
// <i> CMSIS-RTOS1 supports only Keil RTX through API v1
// <i> CMSIS-RTOS2 supports Keil RTX5 and FreeRTOS through API v2
#define MG_CMSISPACK_ARCH 0 // <q> Enable builtin TCP/IP stack
#define MG_ENABLE_TCPIP 1
// <h> Network Drivers for builtin TCP/IP stack
// <q> Enable STM23Fxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32F 1
// <h> Networking support // <q> Enable STM32Hxx Ethernet driver
// <o> Networking stack #define MG_ENABLE_DRIVER_STM32H 0
// <0=> Built-in
// <1=> lwIP // <q> Enable IMXRT Ethernet driver
// <2=> FreeRTOS-Plus-TCP #define MG_ENABLE_DRIVER_IMXRT 0
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library // <q> Enable W5500 Ethernet driver
// <i> The built-in stack can run on bare metal or over any RTOS #define MG_ENABLE_DRIVER_W5500 0
// <i> "lwIP" requires using an RTOS and BSD socket mode
// <i> "MDK" requires using CMSIS-RTOS1 (RTX + RL) or CMSIS-RTOS2 (MDK Plus or Pro), and BSD socket mode // <q> Enable TI TM4C Ethernet driver
#define MG_CMSISPACK_NET 0 #define MG_ENABLE_DRIVER_TM4C 0
// <q> Use Mbed-TLS
// <i> Mongoose will use Mbed-TLS calls for TLS-related functionality
#define MG_ENABLE_MBEDTLS 0
// </h> // </h>
// <o MG_TLS> TLS support
// <MG_TLS_NONE=> None
// <MG_TLS_BUILTIN=> Built-in TLS 1.3 stack
// <MG_TLS_MBED=> MbedTLS
#define MG_TLS MG_TLS_NONE
// <c1> Enable custom mg_millis() // <q> Enable custom mg_millis()
// <i> Use a user-provided function to get uptime in milliseconds, otherwise Mongoose will default to using time(). Except for bare metal, Mongoose will use the time base for the configured architecture
#define MG_ENABLE_CUSTOM_MILLIS 1 #define MG_ENABLE_CUSTOM_MILLIS 1
// </c>
// <q> Enable custom mg_random()
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
#define MG_ENABLE_CUSTOM_RANDOM 1 #define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem // <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1 #define MG_ENABLE_PACKED_FS 1
// </h>
// <<< end of configuration section >>> // <<< end of configuration section >>>
// Translate to Mongoose macros
#if MG_CMSISPACK_ARCH == 1
#undef MG_ARCH
#define MG_ARCH MG_ARCH_FREERTOS
#elif MG_CMSISPACK_ARCH == 2
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS1
#elif MG_CMSISPACK_ARCH == 3
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#endif
#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
// Add your customization below this comment // Add your customization below this comment
#define MG_ENABLE_DRIVER_STM32F 1
@@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>> // <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture // <o MG_ARCH> Build environment
// <0=> Bare metal // <MG_ARCH_ARMCC=> Keil MDK
// <1=> FreeRTOS // <MG_ARCH_FREERTOS=> FreeRTOS
// <2=> CMSIS-RTOS v1 // <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2 // <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS // <MG_ARCH_NEWLIB=> ARM GCC + Newlib
// <i> "FreeRTOS" uses direct FreeRTOS calls #define MG_ARCH MG_ARCH_FREERTOS
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
#define MG_CMSISPACK_ARCH 1 // <q> Enable builtin TCP/IP stack
#define MG_ENABLE_TCPIP 1
// <h> Network Drivers for builtin TCP/IP stack
// <q> Enable STM23Fxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32F 1
// <h> Networking support // <q> Enable STM32Hxx Ethernet driver
// <o> Networking stack #define MG_ENABLE_DRIVER_STM32H 0
// <0=> Built-in
// <1=> lwIP // <q> Enable IMXRT Ethernet driver
// <2=> FreeRTOS-Plus-TCP #define MG_ENABLE_DRIVER_IMXRT 0
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library // <q> Enable W5500 Ethernet driver
// <i> The built-in stack can run on bare metal or over any RTOS #define MG_ENABLE_DRIVER_W5500 0
// <i> "lwIP" requires using an RTOS and BSD socket mode
// <i> "MDK" requires using CMSIS-RTOS1 (RTX + RL) or CMSIS-RTOS2 (MDK Plus or Pro), and BSD socket mode // <q> Enable TI TM4C Ethernet driver
#define MG_CMSISPACK_NET 0 #define MG_ENABLE_DRIVER_TM4C 0
// <q> Use Mbed-TLS
// <i> Mongoose will use Mbed-TLS calls for TLS-related functionality
#define MG_ENABLE_MBEDTLS 0
// </h> // </h>
// <o MG_TLS> TLS support
// <MG_TLS_NONE=> None
// <MG_TLS_BUILTIN=> Built-in TLS 1.3 stack
// <MG_TLS_MBED=> MbedTLS
#define MG_TLS MG_TLS_NONE
// <c1> Enable custom mg_millis() // <q> Enable custom mg_millis()
// <i> Use a user-provided function to get uptime in milliseconds, otherwise Mongoose will default to using time(). Except for bare metal, Mongoose will use the time base for the configured architecture #define MG_ENABLE_CUSTOM_MILLIS 0
//#define MG_ENABLE_CUSTOM_MILLIS 1
// </c>
// <q> Enable custom mg_random()
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
#define MG_ENABLE_CUSTOM_RANDOM 1 #define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem // <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1 #define MG_ENABLE_PACKED_FS 1
// </h>
// <<< end of configuration section >>> // <<< end of configuration section >>>
// Translate to Mongoose macros
#if MG_CMSISPACK_ARCH == 1
#undef MG_ARCH
#define MG_ARCH MG_ARCH_FREERTOS
#elif MG_CMSISPACK_ARCH == 2
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS1
#elif MG_CMSISPACK_ARCH == 3
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#endif
#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
// Add your customization below this comment // Add your customization below this comment
#define MG_ENABLE_DRIVER_STM32F 1
@@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>> // <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture // <o MG_ARCH> Build environment
// <0=> Bare metal // <MG_ARCH_ARMCC=> Keil MDK
// <1=> FreeRTOS // <MG_ARCH_FREERTOS=> FreeRTOS
// <2=> CMSIS-RTOS v1 // <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2 // <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS // <MG_ARCH_NEWLIB=> ARM GCC + Newlib
// <i> FreeRTOS uses direct FreeRTOS calls #define MG_ARCH MG_ARCH_ARMCC
// <i> CMSIS-RTOS1 supports only Keil RTX through API v1
// <i> CMSIS-RTOS2 supports Keil RTX5 and FreeRTOS through API v2
#define MG_CMSISPACK_ARCH 0 // <q> Enable builtin TCP/IP stack
#define MG_ENABLE_TCPIP 1
// <h> Network Drivers for builtin TCP/IP stack
// <q> Enable STM23Fxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32F 1
// <h> Networking support // <q> Enable STM32Hxx Ethernet driver
// <o> Networking stack #define MG_ENABLE_DRIVER_STM32H 0
// <0=> Built-in
// <1=> lwIP // <q> Enable IMXRT Ethernet driver
// <2=> FreeRTOS-Plus-TCP #define MG_ENABLE_DRIVER_IMXRT 0
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library // <q> Enable W5500 Ethernet driver
// <i> The built-in stack can run on bare metal or over any RTOS #define MG_ENABLE_DRIVER_W5500 0
// <i> "lwIP" requires using an RTOS and BSD socket mode
// <i> "MDK" requires using CMSIS-RTOS1 (RTX + RL) or CMSIS-RTOS2 (MDK Plus or Pro), and BSD socket mode // <q> Enable TI TM4C Ethernet driver
#define MG_CMSISPACK_NET 0 #define MG_ENABLE_DRIVER_TM4C 0
// <q> Use Mbed-TLS
// <i> Mongoose will use Mbed-TLS calls for TLS-related functionality
#define MG_ENABLE_MBEDTLS 0
// </h> // </h>
// <o MG_TLS> TLS support
// <MG_TLS_NONE=> None
// <MG_TLS_BUILTIN=> Built-in TLS 1.3 stack
// <MG_TLS_MBED=> MbedTLS
#define MG_TLS MG_TLS_NONE
// <c1> Enable custom mg_millis() // <q> Enable custom mg_millis()
// <i> Use a user-provided function to get uptime in milliseconds, otherwise Mongoose will default to using time(). Except for bare metal, Mongoose will use the time base for the configured architecture
#define MG_ENABLE_CUSTOM_MILLIS 1 #define MG_ENABLE_CUSTOM_MILLIS 1
// </c>
// <q> Enable custom mg_random()
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
#define MG_ENABLE_CUSTOM_RANDOM 1 #define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem // <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1 #define MG_ENABLE_PACKED_FS 1
// </h>
// <<< end of configuration section >>> // <<< end of configuration section >>>
// Translate to Mongoose macros
#if MG_CMSISPACK_ARCH == 1
#undef MG_ARCH
#define MG_ARCH MG_ARCH_FREERTOS
#elif MG_CMSISPACK_ARCH == 2
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS1
#elif MG_CMSISPACK_ARCH == 3
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#endif
#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
// Add your customization below this comment // Add your customization below this comment
#define MG_ENABLE_DRIVER_STM32F 1
@@ -1,78 +1,55 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>> // <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture // <o MG_ARCH> Build environment
// <0=> Bare metal // <MG_ARCH_ARMCC=> Keil MDK
// <1=> FreeRTOS // <MG_ARCH_FREERTOS=> FreeRTOS
// <2=> CMSIS-RTOS v1 // <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2 // <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS // <MG_ARCH_NEWLIB=> ARM GCC + Newlib
// <i> "FreeRTOS" uses direct FreeRTOS calls #define MG_ARCH MG_ARCH_FREERTOS
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
#define MG_CMSISPACK_ARCH 1 // <q> Enable builtin TCP/IP stack
#define MG_ENABLE_TCPIP 0
// <h> Network Drivers for builtin TCP/IP stack
// <q> Enable STM23Fxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32F 0
// <h> Networking support // <q> Enable STM32Hxx Ethernet driver
// <o> Networking stack #define MG_ENABLE_DRIVER_STM32H 0
// <0=> Built-in
// <1=> lwIP // <q> Enable IMXRT Ethernet driver
// <2=> FreeRTOS-Plus-TCP #define MG_ENABLE_DRIVER_IMXRT 0
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library // <q> Enable W5500 Ethernet driver
// <i> The built-in stack can run on bare metal or over any RTOS #define MG_ENABLE_DRIVER_W5500 0
// <i> "lwIP" requires using an RTOS and BSD socket mode
// <i> "MDK" requires using CMSIS-RTOS1 (RTX + RL) or CMSIS-RTOS2 (MDK Plus or Pro), and BSD socket mode // <q> Enable TI TM4C Ethernet driver
#define MG_CMSISPACK_NET 1 #define MG_ENABLE_DRIVER_TM4C 0
// <q> Use Mbed-TLS
// <i> Mongoose will use Mbed-TLS calls for TLS-related functionality
#define MG_ENABLE_MBEDTLS 0
// </h> // </h>
// <o MG_TLS> TLS support
// <MG_TLS_NONE=> None
// <MG_TLS_BUILTIN=> Built-in TLS 1.3 stack
// <MG_TLS_MBED=> MbedTLS
#define MG_TLS MG_TLS_NONE
// <c1> Enable custom mg_millis() // <q> Enable custom mg_millis()
// <i> Use a user-provided function to get uptime in milliseconds, otherwise Mongoose will default to using time(). Except for bare metal, Mongoose will use the time base for the configured architecture #define MG_ENABLE_CUSTOM_MILLIS 0
//#define MG_ENABLE_CUSTOM_MILLIS 1
// </c>
// <q> Enable custom mg_random()
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
#define MG_ENABLE_CUSTOM_RANDOM 1 #define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem // <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1 #define MG_ENABLE_PACKED_FS 1
// </h>
// <<< end of configuration section >>> // <<< end of configuration section >>>
// Translate to Mongoose macros
#if MG_CMSISPACK_ARCH == 1
#undef MG_ARCH
#define MG_ARCH MG_ARCH_FREERTOS
#elif MG_CMSISPACK_ARCH == 2
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS1
#elif MG_CMSISPACK_ARCH == 3
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#endif
#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
// Add your customization below this comment // Add your customization below this comment
#define MG_ENABLE_LWIP 1
@@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>> // <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture // <o MG_ARCH> Build environment
// <0=> Bare metal // <MG_ARCH_ARMCC=> Keil MDK
// <1=> FreeRTOS // <MG_ARCH_FREERTOS=> FreeRTOS
// <2=> CMSIS-RTOS v1 // <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2 // <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS // <MG_ARCH_NEWLIB=> ARM GCC + Newlib
// <i> "FreeRTOS" uses direct FreeRTOS calls #define MG_ARCH MG_ARCH_FREERTOS
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
#define MG_CMSISPACK_ARCH 1 // <q> Enable builtin TCP/IP stack
#define MG_ENABLE_TCPIP 0
// <h> Network Drivers for builtin TCP/IP stack
// <q> Enable STM23Fxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32F 0
// <h> Networking support // <q> Enable STM32Hxx Ethernet driver
// <o> Networking stack #define MG_ENABLE_DRIVER_STM32H 0
// <0=> Built-in
// <1=> lwIP // <q> Enable IMXRT Ethernet driver
// <2=> FreeRTOS-Plus-TCP #define MG_ENABLE_DRIVER_IMXRT 0
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library // <q> Enable W5500 Ethernet driver
// <i> The built-in stack can run on bare metal or over any RTOS #define MG_ENABLE_DRIVER_W5500 0
// <i> "lwIP" requires using an RTOS and BSD socket mode
// <i> "MDK" requires using CMSIS-RTOS1 (RTX + RL) or CMSIS-RTOS2 (MDK Plus or Pro), and BSD socket mode // <q> Enable TI TM4C Ethernet driver
#define MG_CMSISPACK_NET 2 #define MG_ENABLE_DRIVER_TM4C 0
// <q> Use Mbed-TLS
// <i> Mongoose will use Mbed-TLS calls for TLS-related functionality
#define MG_ENABLE_MBEDTLS 0
// </h> // </h>
// <o MG_TLS> TLS support
// <MG_TLS_NONE=> None
// <MG_TLS_BUILTIN=> Built-in TLS 1.3 stack
// <MG_TLS_MBED=> MbedTLS
#define MG_TLS MG_TLS_NONE
// <c1> Enable custom mg_millis() // <q> Enable custom mg_millis()
// <i> Use a user-provided function to get uptime in milliseconds, otherwise Mongoose will default to using time(). Except for bare metal, Mongoose will use the time base for the configured architecture #define MG_ENABLE_CUSTOM_MILLIS 0
//#define MG_ENABLE_CUSTOM_MILLIS 1
// </c>
// <q> Enable custom mg_random()
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
#define MG_ENABLE_CUSTOM_RANDOM 1 #define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem // <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1 #define MG_ENABLE_PACKED_FS 1
// </h>
// <<< end of configuration section >>> // <<< end of configuration section >>>
// Translate to Mongoose macros
#if MG_CMSISPACK_ARCH == 1
#undef MG_ARCH
#define MG_ARCH MG_ARCH_FREERTOS
#elif MG_CMSISPACK_ARCH == 2
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS1
#elif MG_CMSISPACK_ARCH == 3
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#endif
#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
// Add your customization below this comment // Add your customization below this comment
#define MG_ENABLE_FREERTOS_TCP 1
@@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>> // <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture // <o MG_ARCH> Build environment
// <0=> Bare metal // <MG_ARCH_ARMCC=> Keil MDK
// <1=> FreeRTOS // <MG_ARCH_FREERTOS=> FreeRTOS
// <2=> CMSIS-RTOS v1 // <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2 // <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS // <MG_ARCH_NEWLIB=> ARM GCC + Newlib
// <i> "FreeRTOS" uses direct FreeRTOS calls #define MG_ARCH MG_ARCH_FREERTOS
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
#define MG_CMSISPACK_ARCH 1 // <q> Enable builtin TCP/IP stack
#define MG_ENABLE_TCPIP 1
// <h> Network Drivers for builtin TCP/IP stack
// <q> Enable STM23Fxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32F 1
// <h> Networking support // <q> Enable STM32Hxx Ethernet driver
// <o> Networking stack #define MG_ENABLE_DRIVER_STM32H 0
// <0=> Built-in
// <1=> lwIP // <q> Enable IMXRT Ethernet driver
// <2=> FreeRTOS-Plus-TCP #define MG_ENABLE_DRIVER_IMXRT 0
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library // <q> Enable W5500 Ethernet driver
// <i> The built-in stack can run on bare metal or over any RTOS #define MG_ENABLE_DRIVER_W5500 0
// <i> "lwIP" requires using an RTOS and BSD socket mode
// <i> "MDK" requires using CMSIS-RTOS1 (RTX + RL) or CMSIS-RTOS2 (MDK Plus or Pro), and BSD socket mode // <q> Enable TI TM4C Ethernet driver
#define MG_CMSISPACK_NET 0 #define MG_ENABLE_DRIVER_TM4C 0
// <q> Use Mbed-TLS
// <i> Mongoose will use Mbed-TLS calls for TLS-related functionality
#define MG_ENABLE_MBEDTLS 0
// </h> // </h>
// <o MG_TLS> TLS support
// <MG_TLS_NONE=> None
// <MG_TLS_BUILTIN=> Built-in TLS 1.3 stack
// <MG_TLS_MBED=> MbedTLS
#define MG_TLS MG_TLS_NONE
// <c1> Enable custom mg_millis() // <q> Enable custom mg_millis()
// <i> Use a user-provided function to get uptime in milliseconds, otherwise Mongoose will default to using time(). Except for bare metal, Mongoose will use the time base for the configured architecture #define MG_ENABLE_CUSTOM_MILLIS 0
//#define MG_ENABLE_CUSTOM_MILLIS 1
// </c>
// <q> Enable custom mg_random()
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
#define MG_ENABLE_CUSTOM_RANDOM 1 #define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem // <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1 #define MG_ENABLE_PACKED_FS 1
// </h>
// <<< end of configuration section >>> // <<< end of configuration section >>>
// Translate to Mongoose macros
#if MG_CMSISPACK_ARCH == 1
#undef MG_ARCH
#define MG_ARCH MG_ARCH_FREERTOS
#elif MG_CMSISPACK_ARCH == 2
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS1
#elif MG_CMSISPACK_ARCH == 3
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#endif
#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
// Add your customization below this comment // Add your customization below this comment
#define MG_ENABLE_DRIVER_STM32F 1
@@ -1,78 +1,55 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>> // <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture // <o MG_ARCH> Build environment
// <0=> Bare metal // <MG_ARCH_ARMCC=> Keil MDK
// <1=> FreeRTOS // <MG_ARCH_FREERTOS=> FreeRTOS
// <2=> CMSIS-RTOS v1 // <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2 // <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS // <MG_ARCH_NEWLIB=> ARM GCC + Newlib
// <i> "FreeRTOS" uses direct FreeRTOS calls #define MG_ARCH MG_ARCH_CMSIS_RTOS2
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
#define MG_CMSISPACK_ARCH 3 // <q> Enable builtin TCP/IP stack
#define MG_ENABLE_TCPIP 0
// <h> Network Drivers for builtin TCP/IP stack
// <q> Enable STM23Fxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32F 0
// <h> Networking support // <q> Enable STM32Hxx Ethernet driver
// <o> Networking stack #define MG_ENABLE_DRIVER_STM32H 0
// <0=> Built-in
// <1=> lwIP // <q> Enable IMXRT Ethernet driver
// <2=> FreeRTOS-Plus-TCP #define MG_ENABLE_DRIVER_IMXRT 0
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library // <q> Enable W5500 Ethernet driver
// <i> The built-in stack can run on bare metal or over any RTOS #define MG_ENABLE_DRIVER_W5500 0
// <i> "lwIP" requires using an RTOS and BSD socket mode
// <i> "MDK" requires using CMSIS-RTOS1 (RTX + RL) or CMSIS-RTOS2 (MDK Plus or Pro), and BSD socket mode // <q> Enable TI TM4C Ethernet driver
#define MG_CMSISPACK_NET 1 #define MG_ENABLE_DRIVER_TM4C 0
// <q> Use Mbed-TLS
// <i> Mongoose will use Mbed-TLS calls for TLS-related functionality
#define MG_ENABLE_MBEDTLS 0
// </h> // </h>
// <o MG_TLS> TLS support
// <MG_TLS_NONE=> None
// <MG_TLS_BUILTIN=> Built-in TLS 1.3 stack
// <MG_TLS_MBED=> MbedTLS
#define MG_TLS MG_TLS_NONE
// <c1> Enable custom mg_millis() // <q> Enable custom mg_millis()
// <i> Use a user-provided function to get uptime in milliseconds, otherwise Mongoose will default to using time(). Except for bare metal, Mongoose will use the time base for the configured architecture #define MG_ENABLE_CUSTOM_MILLIS 0
//#define MG_ENABLE_CUSTOM_MILLIS 1
// </c>
// <q> Enable custom mg_random()
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
#define MG_ENABLE_CUSTOM_RANDOM 1 #define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem // <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1 #define MG_ENABLE_PACKED_FS 1
// </h>
// <<< end of configuration section >>> // <<< end of configuration section >>>
// Translate to Mongoose macros
#if MG_CMSISPACK_ARCH == 1
#undef MG_ARCH
#define MG_ARCH MG_ARCH_FREERTOS
#elif MG_CMSISPACK_ARCH == 2
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS1
#elif MG_CMSISPACK_ARCH == 3
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#endif
#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
// Add your customization below this comment // Add your customization below this comment
#define MG_ENABLE_LWIP 1
@@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>> // <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture // <o MG_ARCH> Build environment
// <0=> Bare metal // <MG_ARCH_ARMCC=> Keil MDK
// <1=> FreeRTOS // <MG_ARCH_FREERTOS=> FreeRTOS
// <2=> CMSIS-RTOS v1 // <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2 // <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS // <MG_ARCH_NEWLIB=> ARM GCC + Newlib
// <i> "FreeRTOS" uses direct FreeRTOS calls #define MG_ARCH MG_ARCH_CMSIS_RTOS2
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
#define MG_CMSISPACK_ARCH 3 // <q> Enable builtin TCP/IP stack
#define MG_ENABLE_TCPIP 1
// <h> Network Drivers for builtin TCP/IP stack
// <q> Enable STM23Fxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32F 1
// <h> Networking support // <q> Enable STM32Hxx Ethernet driver
// <o> Networking stack #define MG_ENABLE_DRIVER_STM32H 0
// <0=> Built-in
// <1=> lwIP // <q> Enable IMXRT Ethernet driver
// <2=> FreeRTOS-Plus-TCP #define MG_ENABLE_DRIVER_IMXRT 0
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library // <q> Enable W5500 Ethernet driver
// <i> The built-in stack can run on bare metal or over any RTOS #define MG_ENABLE_DRIVER_W5500 0
// <i> "lwIP" requires using an RTOS and BSD socket mode
// <i> "MDK" requires using CMSIS-RTOS1 (RTX + RL) or CMSIS-RTOS2 (MDK Plus or Pro), and BSD socket mode // <q> Enable TI TM4C Ethernet driver
#define MG_CMSISPACK_NET 0 #define MG_ENABLE_DRIVER_TM4C 0
// <q> Use Mbed-TLS
// <i> Mongoose will use Mbed-TLS calls for TLS-related functionality
#define MG_ENABLE_MBEDTLS 0
// </h> // </h>
// <o MG_TLS> TLS support
// <MG_TLS_NONE=> None
// <MG_TLS_BUILTIN=> Built-in TLS 1.3 stack
// <MG_TLS_MBED=> MbedTLS
#define MG_TLS MG_TLS_NONE
// <c1> Enable custom mg_millis() // <q> Enable custom mg_millis()
// <i> Use a user-provided function to get uptime in milliseconds, otherwise Mongoose will default to using time(). Except for bare metal, Mongoose will use the time base for the configured architecture #define MG_ENABLE_CUSTOM_MILLIS 0
//#define MG_ENABLE_CUSTOM_MILLIS 1
// </c>
// <q> Enable custom mg_random()
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
#define MG_ENABLE_CUSTOM_RANDOM 1 #define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem // <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1 #define MG_ENABLE_PACKED_FS 1
// </h>
// <<< end of configuration section >>> // <<< end of configuration section >>>
// Translate to Mongoose macros
#if MG_CMSISPACK_ARCH == 1
#undef MG_ARCH
#define MG_ARCH MG_ARCH_FREERTOS
#elif MG_CMSISPACK_ARCH == 2
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS1
#elif MG_CMSISPACK_ARCH == 3
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#endif
#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
// Add your customization below this comment // Add your customization below this comment
#define MG_ENABLE_DRIVER_STM32F 1
@@ -1,78 +1,54 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>> // <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture // <o MG_ARCH> Build environment
// <0=> Bare metal // <MG_ARCH_ARMCC=> Keil MDK
// <1=> FreeRTOS // <MG_ARCH_FREERTOS=> FreeRTOS
// <2=> CMSIS-RTOS v1 // <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2 // <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS // <MG_ARCH_NEWLIB=> ARM GCC + Newlib
// <i> "FreeRTOS" uses direct FreeRTOS calls #define MG_ARCH MG_ARCH_CMSIS_RTOS1
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
#define MG_CMSISPACK_ARCH 2 // <q> Enable builtin TCP/IP stack
#define MG_ENABLE_TCPIP 0
// <h> Network Drivers for builtin TCP/IP stack
// <q> Enable STM23Fxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32F 0
// <h> Networking support // <q> Enable STM32Hxx Ethernet driver
// <o> Networking stack #define MG_ENABLE_DRIVER_STM32H 0
// <0=> Built-in
// <1=> lwIP // <q> Enable IMXRT Ethernet driver
// <2=> FreeRTOS-Plus-TCP #define MG_ENABLE_DRIVER_IMXRT 0
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library // <q> Enable W5500 Ethernet driver
// <i> The built-in stack can run on bare metal or over any RTOS #define MG_ENABLE_DRIVER_W5500 0
// <i> "lwIP" requires using an RTOS and BSD socket mode
// <i> "MDK" requires using CMSIS-RTOS1 (RTX + RL) or CMSIS-RTOS2 (MDK Plus or Pro), and BSD socket mode // <q> Enable TI TM4C Ethernet driver
#define MG_CMSISPACK_NET 3 #define MG_ENABLE_DRIVER_TM4C 0
// <q> Use Mbed-TLS
// <i> Mongoose will use Mbed-TLS calls for TLS-related functionality
#define MG_ENABLE_MBEDTLS 0
// </h> // </h>
// <o MG_TLS> TLS support
// <MG_TLS_NONE=> None
// <MG_TLS_BUILTIN=> Built-in TLS 1.3 stack
// <MG_TLS_MBED=> MbedTLS
#define MG_TLS MG_TLS_NONE
// <c1> Enable custom mg_millis() // <q> Enable custom mg_millis()
// <i> Use a user-provided function to get uptime in milliseconds, otherwise Mongoose will default to using time(). Except for bare metal, Mongoose will use the time base for the configured architecture #define MG_ENABLE_CUSTOM_MILLIS 0
//#define MG_ENABLE_CUSTOM_MILLIS 1
// </c>
// <q> Enable custom mg_random()
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
#define MG_ENABLE_CUSTOM_RANDOM 1 #define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem // <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1 #define MG_ENABLE_PACKED_FS 1
// </h>
// <<< end of configuration section >>> // <<< end of configuration section >>>
// Translate to Mongoose macros
#if MG_CMSISPACK_ARCH == 1
#undef MG_ARCH
#define MG_ARCH MG_ARCH_FREERTOS
#elif MG_CMSISPACK_ARCH == 2
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS1
#elif MG_CMSISPACK_ARCH == 3
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#endif
#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
// Add your customization below this comment // Add your customization below this comment
#define MG_ENABLE_RL 1
@@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>> // <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture // <o MG_ARCH> Build environment
// <0=> Bare metal // <MG_ARCH_ARMCC=> Keil MDK
// <1=> FreeRTOS // <MG_ARCH_FREERTOS=> FreeRTOS
// <2=> CMSIS-RTOS v1 // <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2 // <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS // <MG_ARCH_NEWLIB=> ARM GCC + Newlib
// <i> FreeRTOS uses direct FreeRTOS calls #define MG_ARCH MG_ARCH_CMSIS_RTOS1
// <i> CMSIS-RTOS1 supports only Keil RTX through API v1
// <i> CMSIS-RTOS2 supports Keil RTX5 and FreeRTOS through API v2
#define MG_CMSISPACK_ARCH 2 // <q> Enable builtin TCP/IP stack
#define MG_ENABLE_TCPIP 1
// <h> Network Drivers for builtin TCP/IP stack
// <q> Enable STM23Fxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32F 1
// <h> Networking support // <q> Enable STM32Hxx Ethernet driver
// <o> Networking stack #define MG_ENABLE_DRIVER_STM32H 0
// <0=> Built-in
// <1=> lwIP // <q> Enable IMXRT Ethernet driver
// <2=> FreeRTOS-Plus-TCP #define MG_ENABLE_DRIVER_IMXRT 0
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library // <q> Enable W5500 Ethernet driver
// <i> The built-in stack can run on bare metal or over any RTOS #define MG_ENABLE_DRIVER_W5500 0
// <i> "lwIP" requires using an RTOS and BSD socket mode
// <i> "MDK" requires using CMSIS-RTOS1 (RTX + RL) or CMSIS-RTOS2 (MDK Plus or Pro), and BSD socket mode // <q> Enable TI TM4C Ethernet driver
#define MG_CMSISPACK_NET 0 #define MG_ENABLE_DRIVER_TM4C 0
// <q> Use Mbed-TLS
// <i> Mongoose will use Mbed-TLS calls for TLS-related functionality
#define MG_ENABLE_MBEDTLS 0
// </h> // </h>
// <o MG_TLS> TLS support
// <MG_TLS_NONE=> None
// <MG_TLS_BUILTIN=> Built-in TLS 1.3 stack
// <MG_TLS_MBED=> MbedTLS
#define MG_TLS MG_TLS_NONE
// <c1> Enable custom mg_millis() // <q> Enable custom mg_millis()
// <i> Use a user-provided function to get uptime in milliseconds, otherwise Mongoose will default to using time(). Except for bare metal, Mongoose will use the time base for the configured architecture #define MG_ENABLE_CUSTOM_MILLIS 0
//#define MG_ENABLE_CUSTOM_MILLIS 1
// </c>
// <q> Enable custom mg_random()
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
#define MG_ENABLE_CUSTOM_RANDOM 1 #define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem // <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1 #define MG_ENABLE_PACKED_FS 1
// </h>
// <<< end of configuration section >>> // <<< end of configuration section >>>
// Translate to Mongoose macros
#if MG_CMSISPACK_ARCH == 1
#undef MG_ARCH
#define MG_ARCH MG_ARCH_FREERTOS
#elif MG_CMSISPACK_ARCH == 2
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS1
#elif MG_CMSISPACK_ARCH == 3
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#endif
#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
// Add your customization below this comment // Add your customization below this comment
#define MG_ENABLE_DRIVER_STM32F 1
@@ -1,78 +1,54 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>> // <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture // <o MG_ARCH> Build environment
// <0=> Bare metal // <MG_ARCH_ARMCC=> Keil MDK
// <1=> FreeRTOS // <MG_ARCH_FREERTOS=> FreeRTOS
// <2=> CMSIS-RTOS v1 // <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2 // <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS // <MG_ARCH_NEWLIB=> ARM GCC + Newlib
// <i> "FreeRTOS" uses direct FreeRTOS calls #define MG_ARCH MG_ARCH_CMSIS_RTOS2
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
#define MG_CMSISPACK_ARCH 3 // <q> Enable builtin TCP/IP stack
#define MG_ENABLE_TCPIP 0
// <h> Network Drivers for builtin TCP/IP stack
// <q> Enable STM23Fxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32F 0
// <h> Networking support // <q> Enable STM32Hxx Ethernet driver
// <o> Networking stack #define MG_ENABLE_DRIVER_STM32H 0
// <0=> Built-in
// <1=> lwIP // <q> Enable IMXRT Ethernet driver
// <2=> FreeRTOS-Plus-TCP #define MG_ENABLE_DRIVER_IMXRT 0
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library // <q> Enable W5500 Ethernet driver
// <i> The built-in stack can run on bare metal or over any RTOS #define MG_ENABLE_DRIVER_W5500 0
// <i> "lwIP" requires using an RTOS and BSD socket mode
// <i> "MDK" requires using CMSIS-RTOS1 (RTX + RL) or CMSIS-RTOS2 (MDK Plus or Pro), and BSD socket mode // <q> Enable TI TM4C Ethernet driver
#define MG_CMSISPACK_NET 1 #define MG_ENABLE_DRIVER_TM4C 0
// <q> Use Mbed-TLS
// <i> Mongoose will use Mbed-TLS calls for TLS-related functionality
#define MG_ENABLE_MBEDTLS 0
// </h> // </h>
// <o MG_TLS> TLS support
// <MG_TLS_NONE=> None
// <MG_TLS_BUILTIN=> Built-in TLS 1.3 stack
// <MG_TLS_MBED=> MbedTLS
#define MG_TLS MG_TLS_NONE
// <c1> Enable custom mg_millis() // <q> Enable custom mg_millis()
// <i> Use a user-provided function to get uptime in milliseconds, otherwise Mongoose will default to using time(). Except for bare metal, Mongoose will use the time base for the configured architecture #define MG_ENABLE_CUSTOM_MILLIS 0
//#define MG_ENABLE_CUSTOM_MILLIS 1
// </c>
// <q> Enable custom mg_random()
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
#define MG_ENABLE_CUSTOM_RANDOM 1 #define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem // <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1 #define MG_ENABLE_PACKED_FS 1
// </h>
// <<< end of configuration section >>> // <<< end of configuration section >>>
// Translate to Mongoose macros
#if MG_CMSISPACK_ARCH == 1
#undef MG_ARCH
#define MG_ARCH MG_ARCH_FREERTOS
#elif MG_CMSISPACK_ARCH == 2
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS1
#elif MG_CMSISPACK_ARCH == 3
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#endif
#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
// Add your customization below this comment // Add your customization below this comment
#define MG_ENABLE_LWIP 1
@@ -1,78 +1,54 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>> // <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture // <o MG_ARCH> Build environment
// <0=> Bare metal // <MG_ARCH_ARMCC=> Keil MDK
// <1=> FreeRTOS // <MG_ARCH_FREERTOS=> FreeRTOS
// <2=> CMSIS-RTOS v1 // <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2 // <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS // <MG_ARCH_NEWLIB=> ARM GCC + Newlib
// <i> "FreeRTOS" uses direct FreeRTOS calls #define MG_ARCH MG_ARCH_CMSIS_RTOS2
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
#define MG_CMSISPACK_ARCH 3 // <q> Enable builtin TCP/IP stack
#define MG_ENABLE_TCPIP 0
// <h> Network Drivers for builtin TCP/IP stack
// <q> Enable STM23Fxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32F 0
// <h> Networking support // <q> Enable STM32Hxx Ethernet driver
// <o> Networking stack #define MG_ENABLE_DRIVER_STM32H 0
// <0=> Built-in
// <1=> lwIP // <q> Enable IMXRT Ethernet driver
// <2=> FreeRTOS-Plus-TCP #define MG_ENABLE_DRIVER_IMXRT 0
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library // <q> Enable W5500 Ethernet driver
// <i> The built-in stack can run on bare metal or over any RTOS #define MG_ENABLE_DRIVER_W5500 0
// <i> "lwIP" requires using an RTOS and BSD socket mode
// <i> "MDK" requires using CMSIS-RTOS1 (RTX + RL) or CMSIS-RTOS2 (MDK Plus or Pro), and BSD socket mode // <q> Enable TI TM4C Ethernet driver
#define MG_CMSISPACK_NET 3 #define MG_ENABLE_DRIVER_TM4C 0
// <q> Use Mbed-TLS
// <i> Mongoose will use Mbed-TLS calls for TLS-related functionality
#define MG_ENABLE_MBEDTLS 0
// </h> // </h>
// <o MG_TLS> TLS support
// <MG_TLS_NONE=> None
// <MG_TLS_BUILTIN=> Built-in TLS 1.3 stack
// <MG_TLS_MBED=> MbedTLS
#define MG_TLS MG_TLS_NONE
// <c1> Enable custom mg_millis() // <q> Enable custom mg_millis()
// <i> Use a user-provided function to get uptime in milliseconds, otherwise Mongoose will default to using time(). Except for bare metal, Mongoose will use the time base for the configured architecture #define MG_ENABLE_CUSTOM_MILLIS 0
//#define MG_ENABLE_CUSTOM_MILLIS 1
// </c>
// <q> Enable custom mg_random()
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
#define MG_ENABLE_CUSTOM_RANDOM 1 #define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem // <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1 #define MG_ENABLE_PACKED_FS 1
// </h>
// <<< end of configuration section >>> // <<< end of configuration section >>>
// Translate to Mongoose macros
#if MG_CMSISPACK_ARCH == 1
#undef MG_ARCH
#define MG_ARCH MG_ARCH_FREERTOS
#elif MG_CMSISPACK_ARCH == 2
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS1
#elif MG_CMSISPACK_ARCH == 3
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#endif
#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
// Add your customization below this comment // Add your customization below this comment
#define MG_ENABLE_RL 1
@@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>> // <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture // <o MG_ARCH> Build environment
// <0=> Bare metal // <MG_ARCH_ARMCC=> Keil MDK
// <1=> FreeRTOS // <MG_ARCH_FREERTOS=> FreeRTOS
// <2=> CMSIS-RTOS v1 // <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2 // <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS // <MG_ARCH_NEWLIB=> ARM GCC + Newlib
// <i> FreeRTOS uses direct FreeRTOS calls #define MG_ARCH MG_ARCH_CMSIS_RTOS2
// <i> CMSIS-RTOS1 supports only Keil RTX through API v1
// <i> CMSIS-RTOS2 supports Keil RTX5 and FreeRTOS through API v2
#define MG_CMSISPACK_ARCH 3 // <q> Enable builtin TCP/IP stack
#define MG_ENABLE_TCPIP 1
// <h> Network Drivers for builtin TCP/IP stack
// <q> Enable STM23Fxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32F 1
// <h> Networking support // <q> Enable STM32Hxx Ethernet driver
// <o> Networking stack #define MG_ENABLE_DRIVER_STM32H 0
// <0=> Built-in
// <1=> lwIP // <q> Enable IMXRT Ethernet driver
// <2=> FreeRTOS-Plus-TCP #define MG_ENABLE_DRIVER_IMXRT 0
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library // <q> Enable W5500 Ethernet driver
// <i> The built-in stack can run on bare metal or over any RTOS #define MG_ENABLE_DRIVER_W5500 0
// <i> "lwIP" requires using an RTOS and BSD socket mode
// <i> "MDK" requires using CMSIS-RTOS1 (RTX + RL) or CMSIS-RTOS2 (MDK Plus or Pro), and BSD socket mode // <q> Enable TI TM4C Ethernet driver
#define MG_CMSISPACK_NET 0 #define MG_ENABLE_DRIVER_TM4C 0
// <q> Use Mbed-TLS
// <i> Mongoose will use Mbed-TLS calls for TLS-related functionality
#define MG_ENABLE_MBEDTLS 0
// </h> // </h>
// <o MG_TLS> TLS support
// <MG_TLS_NONE=> None
// <MG_TLS_BUILTIN=> Built-in TLS 1.3 stack
// <MG_TLS_MBED=> MbedTLS
#define MG_TLS MG_TLS_NONE
// <c1> Enable custom mg_millis() // <q> Enable custom mg_millis()
// <i> Use a user-provided function to get uptime in milliseconds, otherwise Mongoose will default to using time(). Except for bare metal, Mongoose will use the time base for the configured architecture #define MG_ENABLE_CUSTOM_MILLIS 0
//#define MG_ENABLE_CUSTOM_MILLIS 1
// </c>
// <q> Enable custom mg_random()
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
#define MG_ENABLE_CUSTOM_RANDOM 1 #define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem // <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1 #define MG_ENABLE_PACKED_FS 1
// </h>
// <<< end of configuration section >>> // <<< end of configuration section >>>
// Translate to Mongoose macros
#if MG_CMSISPACK_ARCH == 1
#undef MG_ARCH
#define MG_ARCH MG_ARCH_FREERTOS
#elif MG_CMSISPACK_ARCH == 2
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS1
#elif MG_CMSISPACK_ARCH == 3
#undef MG_ARCH
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#endif
#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
// Add your customization below this comment // Add your customization below this comment
#define MG_ENABLE_DRIVER_STM32F 1
+3 -5
View File
@@ -61,16 +61,12 @@ extern "C" {
#define MG_ARCH MG_ARCH_AZURERTOS #define MG_ARCH MG_ARCH_AZURERTOS
#elif defined(PICO_TARGET_NAME) #elif defined(PICO_TARGET_NAME)
#define MG_ARCH MG_ARCH_RP2040 #define MG_ARCH MG_ARCH_RP2040
#elif defined(__ARMCC_VERSION)
#define MG_ARCH MG_ARCH_ARMCC
#elif defined(__RTTHREAD__) #elif defined(__RTTHREAD__)
#define MG_ARCH MG_ARCH_RTTHREAD #define MG_ARCH MG_ARCH_RTTHREAD
#endif #endif
#endif // !defined(MG_ARCH) #endif // !defined(MG_ARCH)
// if the user did not specify an MG_ARCH, or specified a custom one, OR #if !defined(MG_ARCH) || (MG_ARCH == MG_ARCH_CUSTOM)
// we guessed a known IDE, pull the customized config (Configuration Wizard)
#if !defined(MG_ARCH) || (MG_ARCH == MG_ARCH_CUSTOM) || MG_ARCH == MG_ARCH_ARMCC
#include "mongoose_custom.h" // keep this include #include "mongoose_custom.h" // keep this include
#endif #endif
@@ -188,6 +184,7 @@ extern "C" {
#if defined(__ARMCC_VERSION) #if defined(__ARMCC_VERSION)
#define mode_t size_t #define mode_t size_t
#include <time.h> #include <time.h>
#include <alloca.h>
#else #else
#include <sys/stat.h> #include <sys/stat.h>
#endif #endif
@@ -293,6 +290,7 @@ int mkdir(const char *, mode_t);
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <alloca.h>
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#if MG_ARCH == MG_ARCH_CMSIS_RTOS1 #if MG_ARCH == MG_ARCH_CMSIS_RTOS1
+1 -5
View File
@@ -34,16 +34,12 @@
#define MG_ARCH MG_ARCH_AZURERTOS #define MG_ARCH MG_ARCH_AZURERTOS
#elif defined(PICO_TARGET_NAME) #elif defined(PICO_TARGET_NAME)
#define MG_ARCH MG_ARCH_RP2040 #define MG_ARCH MG_ARCH_RP2040
#elif defined(__ARMCC_VERSION)
#define MG_ARCH MG_ARCH_ARMCC
#elif defined(__RTTHREAD__) #elif defined(__RTTHREAD__)
#define MG_ARCH MG_ARCH_RTTHREAD #define MG_ARCH MG_ARCH_RTTHREAD
#endif #endif
#endif // !defined(MG_ARCH) #endif // !defined(MG_ARCH)
// if the user did not specify an MG_ARCH, or specified a custom one, OR #if !defined(MG_ARCH) || (MG_ARCH == MG_ARCH_CUSTOM)
// we guessed a known IDE, pull the customized config (Configuration Wizard)
#if !defined(MG_ARCH) || (MG_ARCH == MG_ARCH_CUSTOM) || MG_ARCH == MG_ARCH_ARMCC
#include "mongoose_custom.h" // keep this include #include "mongoose_custom.h" // keep this include
#endif #endif
+1
View File
@@ -16,6 +16,7 @@
#if defined(__ARMCC_VERSION) #if defined(__ARMCC_VERSION)
#define mode_t size_t #define mode_t size_t
#include <time.h> #include <time.h>
#include <alloca.h>
#else #else
#include <sys/stat.h> #include <sys/stat.h>
#endif #endif
+1
View File
@@ -11,6 +11,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <alloca.h>
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#if MG_ARCH == MG_ARCH_CMSIS_RTOS1 #if MG_ARCH == MG_ARCH_CMSIS_RTOS1