change mongoose_custom for Keil

This commit is contained in:
Sergio R. Caprile 2024-01-16 14:17:20 -03:00
parent 0d2ae10bd9
commit 677fea7bfa
17 changed files with 448 additions and 770 deletions

View File

@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture
// <0=> Bare metal
// <1=> FreeRTOS
// <2=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS
// <i> FreeRTOS uses direct FreeRTOS calls
// <i> CMSIS-RTOS1 supports only Keil RTX through API v1
// <i> CMSIS-RTOS2 supports Keil RTX5 and FreeRTOS through API v2
// <o MG_ARCH> Build environment
// <MG_ARCH_ARMCC=> Keil MDK
// <MG_ARCH_FREERTOS=> FreeRTOS
// <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <MG_ARCH_NEWLIB=> ARM GCC + Newlib
#define MG_ARCH MG_ARCH_ARMCC
#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
// <o> Networking stack
// <0=> Built-in
// <1=> lwIP
// <2=> FreeRTOS-Plus-TCP
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library
// <i> The built-in stack can run on bare metal or over any RTOS
// <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
#define MG_CMSISPACK_NET 0
// <q> Enable STM32Hxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32H 0
// <q> Enable IMXRT Ethernet driver
#define MG_ENABLE_DRIVER_IMXRT 0
// <q> Enable W5500 Ethernet driver
#define MG_ENABLE_DRIVER_W5500 0
// <q> Enable TI TM4C Ethernet driver
#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>
// <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()
// <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
// <q> Enable custom mg_millis()
#define MG_ENABLE_CUSTOM_MILLIS 1
// </c>
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
// <q> Enable custom mg_random()
#define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1
// </h>
// <<< 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
#define MG_ENABLE_DRIVER_STM32F 1

View File

@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture
// <0=> Bare metal
// <1=> FreeRTOS
// <2=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS
// <i> "FreeRTOS" uses direct FreeRTOS calls
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
// <o MG_ARCH> Build environment
// <MG_ARCH_ARMCC=> Keil MDK
// <MG_ARCH_FREERTOS=> FreeRTOS
// <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <MG_ARCH_NEWLIB=> ARM GCC + Newlib
#define MG_ARCH MG_ARCH_FREERTOS
#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
// <o> Networking stack
// <0=> Built-in
// <1=> lwIP
// <2=> FreeRTOS-Plus-TCP
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library
// <i> The built-in stack can run on bare metal or over any RTOS
// <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
#define MG_CMSISPACK_NET 0
// <q> Enable STM32Hxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32H 0
// <q> Enable IMXRT Ethernet driver
#define MG_ENABLE_DRIVER_IMXRT 0
// <q> Enable W5500 Ethernet driver
#define MG_ENABLE_DRIVER_W5500 0
// <q> Enable TI TM4C Ethernet driver
#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>
// <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()
// <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
// </c>
// <q> Enable custom mg_millis()
#define MG_ENABLE_CUSTOM_MILLIS 0
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
// <q> Enable custom mg_random()
#define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1
// </h>
// <<< 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
#define MG_ENABLE_DRIVER_STM32F 1

View File

@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture
// <0=> Bare metal
// <1=> FreeRTOS
// <2=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS
// <i> FreeRTOS uses direct FreeRTOS calls
// <i> CMSIS-RTOS1 supports only Keil RTX through API v1
// <i> CMSIS-RTOS2 supports Keil RTX5 and FreeRTOS through API v2
// <o MG_ARCH> Build environment
// <MG_ARCH_ARMCC=> Keil MDK
// <MG_ARCH_FREERTOS=> FreeRTOS
// <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <MG_ARCH_NEWLIB=> ARM GCC + Newlib
#define MG_ARCH MG_ARCH_ARMCC
#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
// <o> Networking stack
// <0=> Built-in
// <1=> lwIP
// <2=> FreeRTOS-Plus-TCP
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library
// <i> The built-in stack can run on bare metal or over any RTOS
// <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
#define MG_CMSISPACK_NET 0
// <q> Enable STM32Hxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32H 0
// <q> Enable IMXRT Ethernet driver
#define MG_ENABLE_DRIVER_IMXRT 0
// <q> Enable W5500 Ethernet driver
#define MG_ENABLE_DRIVER_W5500 0
// <q> Enable TI TM4C Ethernet driver
#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>
// <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()
// <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
// <q> Enable custom mg_millis()
#define MG_ENABLE_CUSTOM_MILLIS 1
// </c>
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
// <q> Enable custom mg_random()
#define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1
// </h>
// <<< 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
#define MG_ENABLE_DRIVER_STM32F 1

View File

@ -1,78 +1,55 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture
// <0=> Bare metal
// <1=> FreeRTOS
// <2=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS
// <i> "FreeRTOS" uses direct FreeRTOS calls
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
// <o MG_ARCH> Build environment
// <MG_ARCH_ARMCC=> Keil MDK
// <MG_ARCH_FREERTOS=> FreeRTOS
// <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <MG_ARCH_NEWLIB=> ARM GCC + Newlib
#define MG_ARCH MG_ARCH_FREERTOS
#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
// <o> Networking stack
// <0=> Built-in
// <1=> lwIP
// <2=> FreeRTOS-Plus-TCP
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library
// <i> The built-in stack can run on bare metal or over any RTOS
// <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
#define MG_CMSISPACK_NET 1
// <q> Enable STM32Hxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32H 0
// <q> Enable IMXRT Ethernet driver
#define MG_ENABLE_DRIVER_IMXRT 0
// <q> Enable W5500 Ethernet driver
#define MG_ENABLE_DRIVER_W5500 0
// <q> Enable TI TM4C Ethernet driver
#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>
// <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()
// <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
// </c>
// <q> Enable custom mg_millis()
#define MG_ENABLE_CUSTOM_MILLIS 0
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
// <q> Enable custom mg_random()
#define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1
// </h>
// <<< 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
#define MG_ENABLE_LWIP 1

View File

@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture
// <0=> Bare metal
// <1=> FreeRTOS
// <2=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS
// <i> "FreeRTOS" uses direct FreeRTOS calls
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
// <o MG_ARCH> Build environment
// <MG_ARCH_ARMCC=> Keil MDK
// <MG_ARCH_FREERTOS=> FreeRTOS
// <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <MG_ARCH_NEWLIB=> ARM GCC + Newlib
#define MG_ARCH MG_ARCH_FREERTOS
#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
// <o> Networking stack
// <0=> Built-in
// <1=> lwIP
// <2=> FreeRTOS-Plus-TCP
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library
// <i> The built-in stack can run on bare metal or over any RTOS
// <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
#define MG_CMSISPACK_NET 2
// <q> Enable STM32Hxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32H 0
// <q> Enable IMXRT Ethernet driver
#define MG_ENABLE_DRIVER_IMXRT 0
// <q> Enable W5500 Ethernet driver
#define MG_ENABLE_DRIVER_W5500 0
// <q> Enable TI TM4C Ethernet driver
#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>
// <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()
// <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
// </c>
// <q> Enable custom mg_millis()
#define MG_ENABLE_CUSTOM_MILLIS 0
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
// <q> Enable custom mg_random()
#define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1
// </h>
// <<< 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
#define MG_ENABLE_FREERTOS_TCP 1

View File

@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture
// <0=> Bare metal
// <1=> FreeRTOS
// <2=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS
// <i> "FreeRTOS" uses direct FreeRTOS calls
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
// <o MG_ARCH> Build environment
// <MG_ARCH_ARMCC=> Keil MDK
// <MG_ARCH_FREERTOS=> FreeRTOS
// <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <MG_ARCH_NEWLIB=> ARM GCC + Newlib
#define MG_ARCH MG_ARCH_FREERTOS
#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
// <o> Networking stack
// <0=> Built-in
// <1=> lwIP
// <2=> FreeRTOS-Plus-TCP
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library
// <i> The built-in stack can run on bare metal or over any RTOS
// <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
#define MG_CMSISPACK_NET 0
// <q> Enable STM32Hxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32H 0
// <q> Enable IMXRT Ethernet driver
#define MG_ENABLE_DRIVER_IMXRT 0
// <q> Enable W5500 Ethernet driver
#define MG_ENABLE_DRIVER_W5500 0
// <q> Enable TI TM4C Ethernet driver
#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>
// <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()
// <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
// </c>
// <q> Enable custom mg_millis()
#define MG_ENABLE_CUSTOM_MILLIS 0
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
// <q> Enable custom mg_random()
#define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1
// </h>
// <<< 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
#define MG_ENABLE_DRIVER_STM32F 1

View File

@ -1,78 +1,55 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture
// <0=> Bare metal
// <1=> FreeRTOS
// <2=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS
// <i> "FreeRTOS" uses direct FreeRTOS calls
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
// <o MG_ARCH> Build environment
// <MG_ARCH_ARMCC=> Keil MDK
// <MG_ARCH_FREERTOS=> FreeRTOS
// <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <MG_ARCH_NEWLIB=> ARM GCC + Newlib
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#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
// <o> Networking stack
// <0=> Built-in
// <1=> lwIP
// <2=> FreeRTOS-Plus-TCP
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library
// <i> The built-in stack can run on bare metal or over any RTOS
// <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
#define MG_CMSISPACK_NET 1
// <q> Enable STM32Hxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32H 0
// <q> Enable IMXRT Ethernet driver
#define MG_ENABLE_DRIVER_IMXRT 0
// <q> Enable W5500 Ethernet driver
#define MG_ENABLE_DRIVER_W5500 0
// <q> Enable TI TM4C Ethernet driver
#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>
// <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()
// <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
// </c>
// <q> Enable custom mg_millis()
#define MG_ENABLE_CUSTOM_MILLIS 0
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
// <q> Enable custom mg_random()
#define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1
// </h>
// <<< 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
#define MG_ENABLE_LWIP 1

View File

@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture
// <0=> Bare metal
// <1=> FreeRTOS
// <2=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS
// <i> "FreeRTOS" uses direct FreeRTOS calls
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
// <o MG_ARCH> Build environment
// <MG_ARCH_ARMCC=> Keil MDK
// <MG_ARCH_FREERTOS=> FreeRTOS
// <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <MG_ARCH_NEWLIB=> ARM GCC + Newlib
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#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
// <o> Networking stack
// <0=> Built-in
// <1=> lwIP
// <2=> FreeRTOS-Plus-TCP
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library
// <i> The built-in stack can run on bare metal or over any RTOS
// <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
#define MG_CMSISPACK_NET 0
// <q> Enable STM32Hxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32H 0
// <q> Enable IMXRT Ethernet driver
#define MG_ENABLE_DRIVER_IMXRT 0
// <q> Enable W5500 Ethernet driver
#define MG_ENABLE_DRIVER_W5500 0
// <q> Enable TI TM4C Ethernet driver
#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>
// <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()
// <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
// </c>
// <q> Enable custom mg_millis()
#define MG_ENABLE_CUSTOM_MILLIS 0
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
// <q> Enable custom mg_random()
#define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1
// </h>
// <<< 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
#define MG_ENABLE_DRIVER_STM32F 1

View File

@ -1,78 +1,54 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture
// <0=> Bare metal
// <1=> FreeRTOS
// <2=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS
// <i> "FreeRTOS" uses direct FreeRTOS calls
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
// <o MG_ARCH> Build environment
// <MG_ARCH_ARMCC=> Keil MDK
// <MG_ARCH_FREERTOS=> FreeRTOS
// <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <MG_ARCH_NEWLIB=> ARM GCC + Newlib
#define MG_ARCH MG_ARCH_CMSIS_RTOS1
#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
// <o> Networking stack
// <0=> Built-in
// <1=> lwIP
// <2=> FreeRTOS-Plus-TCP
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library
// <i> The built-in stack can run on bare metal or over any RTOS
// <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
#define MG_CMSISPACK_NET 3
// <q> Enable STM32Hxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32H 0
// <q> Enable IMXRT Ethernet driver
#define MG_ENABLE_DRIVER_IMXRT 0
// <q> Enable W5500 Ethernet driver
#define MG_ENABLE_DRIVER_W5500 0
// <q> Enable TI TM4C Ethernet driver
#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>
// <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()
// <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
// </c>
// <q> Enable custom mg_millis()
#define MG_ENABLE_CUSTOM_MILLIS 0
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
// <q> Enable custom mg_random()
#define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1
// </h>
// <<< 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
#define MG_ENABLE_RL 1

View File

@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture
// <0=> Bare metal
// <1=> FreeRTOS
// <2=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS
// <i> FreeRTOS uses direct FreeRTOS calls
// <i> CMSIS-RTOS1 supports only Keil RTX through API v1
// <i> CMSIS-RTOS2 supports Keil RTX5 and FreeRTOS through API v2
// <o MG_ARCH> Build environment
// <MG_ARCH_ARMCC=> Keil MDK
// <MG_ARCH_FREERTOS=> FreeRTOS
// <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <MG_ARCH_NEWLIB=> ARM GCC + Newlib
#define MG_ARCH MG_ARCH_CMSIS_RTOS1
#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
// <o> Networking stack
// <0=> Built-in
// <1=> lwIP
// <2=> FreeRTOS-Plus-TCP
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library
// <i> The built-in stack can run on bare metal or over any RTOS
// <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
#define MG_CMSISPACK_NET 0
// <q> Enable STM32Hxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32H 0
// <q> Enable IMXRT Ethernet driver
#define MG_ENABLE_DRIVER_IMXRT 0
// <q> Enable W5500 Ethernet driver
#define MG_ENABLE_DRIVER_W5500 0
// <q> Enable TI TM4C Ethernet driver
#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>
// <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()
// <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
// </c>
// <q> Enable custom mg_millis()
#define MG_ENABLE_CUSTOM_MILLIS 0
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
// <q> Enable custom mg_random()
#define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1
// </h>
// <<< 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
#define MG_ENABLE_DRIVER_STM32F 1

View File

@ -1,78 +1,54 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture
// <0=> Bare metal
// <1=> FreeRTOS
// <2=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS
// <i> "FreeRTOS" uses direct FreeRTOS calls
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
// <o MG_ARCH> Build environment
// <MG_ARCH_ARMCC=> Keil MDK
// <MG_ARCH_FREERTOS=> FreeRTOS
// <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <MG_ARCH_NEWLIB=> ARM GCC + Newlib
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#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
// <o> Networking stack
// <0=> Built-in
// <1=> lwIP
// <2=> FreeRTOS-Plus-TCP
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library
// <i> The built-in stack can run on bare metal or over any RTOS
// <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
#define MG_CMSISPACK_NET 1
// <q> Enable STM32Hxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32H 0
// <q> Enable IMXRT Ethernet driver
#define MG_ENABLE_DRIVER_IMXRT 0
// <q> Enable W5500 Ethernet driver
#define MG_ENABLE_DRIVER_W5500 0
// <q> Enable TI TM4C Ethernet driver
#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>
// <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()
// <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
// </c>
// <q> Enable custom mg_millis()
#define MG_ENABLE_CUSTOM_MILLIS 0
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
// <q> Enable custom mg_random()
#define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1
// </h>
// <<< 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
#define MG_ENABLE_LWIP 1

View File

@ -1,78 +1,54 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture
// <0=> Bare metal
// <1=> FreeRTOS
// <2=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS
// <i> "FreeRTOS" uses direct FreeRTOS calls
// <i> "CMSIS-RTOS v1" supports only Keil RTX through API v1
// <i> "CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2
// <o MG_ARCH> Build environment
// <MG_ARCH_ARMCC=> Keil MDK
// <MG_ARCH_FREERTOS=> FreeRTOS
// <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <MG_ARCH_NEWLIB=> ARM GCC + Newlib
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#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
// <o> Networking stack
// <0=> Built-in
// <1=> lwIP
// <2=> FreeRTOS-Plus-TCP
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library
// <i> The built-in stack can run on bare metal or over any RTOS
// <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
#define MG_CMSISPACK_NET 3
// <q> Enable STM32Hxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32H 0
// <q> Enable IMXRT Ethernet driver
#define MG_ENABLE_DRIVER_IMXRT 0
// <q> Enable W5500 Ethernet driver
#define MG_ENABLE_DRIVER_W5500 0
// <q> Enable TI TM4C Ethernet driver
#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>
// <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()
// <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
// </c>
// <q> Enable custom mg_millis()
#define MG_ENABLE_CUSTOM_MILLIS 0
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
// <q> Enable custom mg_random()
#define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1
// </h>
// <<< 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
#define MG_ENABLE_RL 1

View File

@ -1,78 +1,53 @@
// See https://mongoose.ws/documentation/#build-options
#pragma once
// <<< Use Configuration Wizard in Context Menu >>>
// <o> System Architecture
// <0=> Bare metal
// <1=> FreeRTOS
// <2=> CMSIS-RTOS v1
// <3=> CMSIS-RTOS v2
// <i> Select either bare metal operation or a supported RTOS
// <i> FreeRTOS uses direct FreeRTOS calls
// <i> CMSIS-RTOS1 supports only Keil RTX through API v1
// <i> CMSIS-RTOS2 supports Keil RTX5 and FreeRTOS through API v2
// <o MG_ARCH> Build environment
// <MG_ARCH_ARMCC=> Keil MDK
// <MG_ARCH_FREERTOS=> FreeRTOS
// <MG_ARCH_CMSIS_RTOS1=> CMSIS-RTOS v1
// <MG_ARCH_CMSIS_RTOS2=> CMSIS-RTOS v2
// <MG_ARCH_NEWLIB=> ARM GCC + Newlib
#define MG_ARCH MG_ARCH_CMSIS_RTOS2
#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
// <o> Networking stack
// <0=> Built-in
// <1=> lwIP
// <2=> FreeRTOS-Plus-TCP
// <3=> MDK (RL)
// <i> Select the networking stack to use with Mongoose Library
// <i> The built-in stack can run on bare metal or over any RTOS
// <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
#define MG_CMSISPACK_NET 0
// <q> Enable STM32Hxx Ethernet driver
#define MG_ENABLE_DRIVER_STM32H 0
// <q> Enable IMXRT Ethernet driver
#define MG_ENABLE_DRIVER_IMXRT 0
// <q> Enable W5500 Ethernet driver
#define MG_ENABLE_DRIVER_W5500 0
// <q> Enable TI TM4C Ethernet driver
#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>
// <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()
// <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
// </c>
// <q> Enable custom mg_millis()
#define MG_ENABLE_CUSTOM_MILLIS 0
// <c1> Enable custom mg_rand()
// <i> Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()
// <q> Enable custom mg_random()
#define MG_ENABLE_CUSTOM_RANDOM 1
// </c>
// <h> Filesystem support
// <q> Enable packed (embedded) filesystem
#define MG_ENABLE_PACKED_FS 1
// </h>
// <<< 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
#define MG_ENABLE_DRIVER_STM32F 1

View File

@ -61,16 +61,12 @@ extern "C" {
#define MG_ARCH MG_ARCH_AZURERTOS
#elif defined(PICO_TARGET_NAME)
#define MG_ARCH MG_ARCH_RP2040
#elif defined(__ARMCC_VERSION)
#define MG_ARCH MG_ARCH_ARMCC
#elif defined(__RTTHREAD__)
#define MG_ARCH MG_ARCH_RTTHREAD
#endif
#endif // !defined(MG_ARCH)
// if the user did not specify an MG_ARCH, or specified a custom one, OR
// 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
#if !defined(MG_ARCH) || (MG_ARCH == MG_ARCH_CUSTOM)
#include "mongoose_custom.h" // keep this include
#endif
@ -188,6 +184,7 @@ extern "C" {
#if defined(__ARMCC_VERSION)
#define mode_t size_t
#include <time.h>
#include <alloca.h>
#else
#include <sys/stat.h>
#endif
@ -293,6 +290,7 @@ int mkdir(const char *, mode_t);
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <alloca.h>
#include <string.h>
#include <time.h>
#if MG_ARCH == MG_ARCH_CMSIS_RTOS1

View File

@ -34,16 +34,12 @@
#define MG_ARCH MG_ARCH_AZURERTOS
#elif defined(PICO_TARGET_NAME)
#define MG_ARCH MG_ARCH_RP2040
#elif defined(__ARMCC_VERSION)
#define MG_ARCH MG_ARCH_ARMCC
#elif defined(__RTTHREAD__)
#define MG_ARCH MG_ARCH_RTTHREAD
#endif
#endif // !defined(MG_ARCH)
// if the user did not specify an MG_ARCH, or specified a custom one, OR
// 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
#if !defined(MG_ARCH) || (MG_ARCH == MG_ARCH_CUSTOM)
#include "mongoose_custom.h" // keep this include
#endif

View File

@ -16,6 +16,7 @@
#if defined(__ARMCC_VERSION)
#define mode_t size_t
#include <time.h>
#include <alloca.h>
#else
#include <sys/stat.h>
#endif

View File

@ -11,6 +11,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <alloca.h>
#include <string.h>
#include <time.h>
#if MG_ARCH == MG_ARCH_CMSIS_RTOS1