diff --git a/mongoose.h b/mongoose.h index d5664389..21045051 100644 --- a/mongoose.h +++ b/mongoose.h @@ -35,7 +35,7 @@ extern "C" { #define MG_ARCH_FREERTOS 5 // FreeRTOS #define MG_ARCH_THREADX 6 // Eclipse ThreadX (former MS Azure RTOS) #define MG_ARCH_ZEPHYR 7 // Zephyr RTOS -#define MG_ARCH_NEWLIB 8 // Bare metal ARM +#define MG_ARCH_ARMGCC 8 // Plain ARM GCC #define MG_ARCH_CMSIS_RTOS1 9 // CMSIS-RTOS API v1 (Keil RTX) #define MG_ARCH_TIRTOS 10 // Texas Semi TI-RTOS #define MG_ARCH_PICOSDK 11 // Raspberry Pi Pico-SDK (RP2040, RP2350) @@ -44,6 +44,8 @@ extern "C" { #define MG_ARCH_RTTHREAD 14 // RT-Thread RTOS #define MG_ARCH_ARMCGT 15 // Texas Semi ARM-CGT +#define MG_ARCH_NEWLIB MG_ARCH_ARMGCC // Alias, deprecate in 2025 + #if !defined(MG_ARCH) #if defined(__unix__) || defined(__APPLE__) #define MG_ARCH MG_ARCH_UNIX @@ -97,6 +99,29 @@ extern "C" { #endif +#if MG_ARCH == MG_ARCH_ARMGCC +#define _POSIX_TIMERS + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define MG_PATH_MAX 100 +#define MG_ENABLE_SOCKET 0 +#define MG_ENABLE_DIRLIST 0 + +#endif + + #if MG_ARCH == MG_ARCH_ESP32 #include @@ -206,29 +231,6 @@ static inline int mg_mkdir(const char *path, mode_t mode) { #endif // MG_ARCH == MG_ARCH_FREERTOS -#if MG_ARCH == MG_ARCH_NEWLIB -#define _POSIX_TIMERS - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#define MG_PATH_MAX 100 -#define MG_ENABLE_SOCKET 0 -#define MG_ENABLE_DIRLIST 0 - -#endif - - #if MG_ARCH == MG_ARCH_PICOSDK #if !defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIP #include @@ -622,8 +624,8 @@ typedef int socklen_t; #if MG_ARCH == MG_ARCH_ZEPHYR -#include #include +#include #include #include diff --git a/src/arch.h b/src/arch.h index 58375649..57a7c036 100644 --- a/src/arch.h +++ b/src/arch.h @@ -8,7 +8,7 @@ #define MG_ARCH_FREERTOS 5 // FreeRTOS #define MG_ARCH_THREADX 6 // Eclipse ThreadX (former MS Azure RTOS) #define MG_ARCH_ZEPHYR 7 // Zephyr RTOS -#define MG_ARCH_NEWLIB 8 // Bare metal ARM +#define MG_ARCH_ARMGCC 8 // Plain ARM GCC #define MG_ARCH_CMSIS_RTOS1 9 // CMSIS-RTOS API v1 (Keil RTX) #define MG_ARCH_TIRTOS 10 // Texas Semi TI-RTOS #define MG_ARCH_PICOSDK 11 // Raspberry Pi Pico-SDK (RP2040, RP2350) @@ -17,6 +17,8 @@ #define MG_ARCH_RTTHREAD 14 // RT-Thread RTOS #define MG_ARCH_ARMCGT 15 // Texas Semi ARM-CGT +#define MG_ARCH_NEWLIB MG_ARCH_ARMGCC // Alias, deprecate in 2025 + #if !defined(MG_ARCH) #if defined(__unix__) || defined(__APPLE__) #define MG_ARCH MG_ARCH_UNIX @@ -39,7 +41,7 @@ #include "arch_esp32.h" #include "arch_esp8266.h" #include "arch_freertos.h" -#include "arch_newlib.h" +#include "arch_armgcc.h" #include "arch_rtx.h" #include "arch_unix.h" #include "arch_win32.h" diff --git a/src/arch_newlib.h b/src/arch_armgcc.h similarity index 92% rename from src/arch_newlib.h rename to src/arch_armgcc.h index bb0281b9..f11c2967 100644 --- a/src/arch_newlib.h +++ b/src/arch_armgcc.h @@ -1,6 +1,6 @@ #pragma once -#if MG_ARCH == MG_ARCH_NEWLIB +#if MG_ARCH == MG_ARCH_ARMGCC #define _POSIX_TIMERS #include diff --git a/test/Makefile b/test/Makefile index cc4d04db..9f5f1e44 100644 --- a/test/Makefile +++ b/test/Makefile @@ -178,11 +178,11 @@ s390: CC = $(DOCKER) mdashnet/s390 cc s390: RUN = $(DOCKER) mdashnet/s390 s390: test -arm: DEFS += -DMG_ENABLE_POSIX_FS=0 -DMG_ENABLE_TCPIP=1 -DMG_ENABLE_TCPIP_DRIVER_INIT=0 -DMG_ARCH=MG_ARCH_NEWLIB -DNO_SLEEP_ABORT +arm: DEFS += -DMG_ENABLE_POSIX_FS=0 -DMG_ENABLE_TCPIP=1 -DMG_ENABLE_TCPIP_DRIVER_INIT=0 -DMG_ARCH=MG_ARCH_ARMGCC -DNO_SLEEP_ABORT arm: mongoose.h $(SRCS) $(DOCKER) mdashnet/armgcc arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb $(SRCS) $(OPTS) $(WARN) $(INCS) $(DEFS) $(TFLAGS) -o unit_test -nostartfiles --specs nosys.specs -e 0 -riscv: DEFS += -DMG_ENABLE_POSIX_FS=0 -DMG_ENABLE_TCPIP=1 -DMG_ENABLE_TCPIP_DRIVER_INIT=0 -DMG_ARCH=MG_ARCH_NEWLIB -DNO_SLEEP_ABORT +riscv: DEFS += -DMG_ENABLE_POSIX_FS=0 -DMG_ENABLE_TCPIP=1 -DMG_ENABLE_TCPIP_DRIVER_INIT=0 -DMG_ARCH=MG_ARCH_ARMGCC -DNO_SLEEP_ABORT riscv: mongoose.h $(SRCS) $(DOCKER) mdashnet/riscv riscv-none-elf-gcc -march=rv32imc -mabi=ilp32 $(SRCS) $(OPTS) $(WARN) $(INCS) $(DEFS) $(TFLAGS) -o unit_test diff --git a/test/mongoose_config_template.h b/test/mongoose_config_template.h index 9615378a..c6f3b1ea 100644 --- a/test/mongoose_config_template.h +++ b/test/mongoose_config_template.h @@ -1,7 +1,7 @@ #pragma once // Full list of options is at https://mongoose.ws/documentation/#build-options -#define MG_ARCH MG_ARCH_NEWLIB // Build env: ARM GCC + Newlib C library +#define MG_ARCH MG_ARCH_ARMGCC // Build env: ARM GCC + Newlib C library #define MG_TLS MG_TLS_BUILTIN // MG_TLS_NONE, MG_TLS_MBED, MG_TLS_OPENSSL, MG_TLS_CUSTOM #define MG_ENABLE_TCPIP 1 // Enable built-in TCP/IP stack diff --git a/test/tls_multirec/mongoose.h b/test/tls_multirec/mongoose.h index 996c51f1..571cae71 100644 --- a/test/tls_multirec/mongoose.h +++ b/test/tls_multirec/mongoose.h @@ -35,7 +35,7 @@ extern "C" { #define MG_ARCH_FREERTOS 5 // FreeRTOS #define MG_ARCH_AZURERTOS 6 // MS Azure RTOS #define MG_ARCH_ZEPHYR 7 // Zephyr RTOS -#define MG_ARCH_NEWLIB 8 // Bare metal ARM +#define MG_ARCH_ARMGCC 8 // Bare metal ARM #define MG_ARCH_CMSIS_RTOS1 9 // CMSIS-RTOS API v1 (Keil RTX) #define MG_ARCH_TIRTOS 10 // Texas Semi TI-RTOS #define MG_ARCH_PICOSDK 11 // Raspberry Pi Pico-SDK (RP2040, RP2350) @@ -220,7 +220,7 @@ static inline int mg_mkdir(const char *path, mode_t mode) { #endif // MG_ARCH == MG_ARCH_FREERTOS -#if MG_ARCH == MG_ARCH_NEWLIB +#if MG_ARCH == MG_ARCH_ARMGCC #define _POSIX_TIMERS #include diff --git a/tutorials/http/device-dashboard/microchip/same54-xpro/Makefile b/tutorials/http/device-dashboard/microchip/same54-xpro/Makefile index b880f143..5953b355 100644 --- a/tutorials/http/device-dashboard/microchip/same54-xpro/Makefile +++ b/tutorials/http/device-dashboard/microchip/same54-xpro/Makefile @@ -10,7 +10,7 @@ SOURCES = main.c syscalls.c startup.c # Mongoose-specific source code files and build options. See https://mongoose.ws/documentation/#build-options SOURCES += mongoose.c net.c packed_fs.c -CFLAGS += -DMG_ENABLE_TCPIP=1 -DMG_ARCH=MG_ARCH_NEWLIB -DMG_ENABLE_CUSTOM_MILLIS=1 -DMG_ENABLE_LINES=1 +CFLAGS += -DMG_ENABLE_TCPIP=1 -DMG_ARCH=MG_ARCH_ARMGCC -DMG_ENABLE_CUSTOM_MILLIS=1 -DMG_ENABLE_LINES=1 CFLAGS += -DMG_ENABLE_DRIVER_SAME54=1 -DMG_ENABLE_CUSTOM_RANDOM=1 -DMG_ENABLE_PACKED_FS=1 $(CFLAGS_EXTRA) # Example specific build options. See README.md diff --git a/tutorials/http/http-server/arduino/teensy41-http/mongoose_config.h b/tutorials/http/http-server/arduino/teensy41-http/mongoose_config.h index 51e8e577..ecadc810 100644 --- a/tutorials/http/http-server/arduino/teensy41-http/mongoose_config.h +++ b/tutorials/http/http-server/arduino/teensy41-http/mongoose_config.h @@ -1,6 +1,6 @@ #pragma once -#define MG_ARCH MG_ARCH_NEWLIB // Use ARM toolchain +#define MG_ARCH MG_ARCH_ARMGCC // Use ARM toolchain #define MG_ENABLE_TCPIP 1 // Enable built-in network stack #define MG_ENABLE_DRIVER_IMXRT10 1 // Enable RTxx driver #define MG_ENABLE_CUSTOM_MILLIS 1 // Let user implement mg_millis() diff --git a/tutorials/mqtt/mqtt-client/microchip/same54-xpro/Makefile b/tutorials/mqtt/mqtt-client/microchip/same54-xpro/Makefile index e900884c..2c5a2f1a 100644 --- a/tutorials/mqtt/mqtt-client/microchip/same54-xpro/Makefile +++ b/tutorials/mqtt/mqtt-client/microchip/same54-xpro/Makefile @@ -10,7 +10,7 @@ SOURCES = main.c syscalls.c startup.c # Mongoose-specific source code files and build options. See https://mongoose.ws/documentation/#build-options SOURCES += mongoose.c -CFLAGS += -DMG_ENABLE_TCPIP=1 -DMG_ARCH=MG_ARCH_NEWLIB -DMG_ENABLE_CUSTOM_MILLIS=1 -DMG_ENABLE_LINES=1 +CFLAGS += -DMG_ENABLE_TCPIP=1 -DMG_ARCH=MG_ARCH_ARMGCC -DMG_ENABLE_CUSTOM_MILLIS=1 -DMG_ENABLE_LINES=1 CFLAGS += -DMG_ENABLE_DRIVER_SAME54=1 -DMG_ENABLE_CUSTOM_RANDOM=1 -DMG_ENABLE_PACKED_FS=1 $(CFLAGS_EXTRA) # Example specific build options. See README.md diff --git a/tutorials/nxp/rt1060-evk-xpresso-baremetal-builtin/source/mongoose_config.h b/tutorials/nxp/rt1060-evk-xpresso-baremetal-builtin/source/mongoose_config.h index 405afbed..ab9c7fc9 100644 --- a/tutorials/nxp/rt1060-evk-xpresso-baremetal-builtin/source/mongoose_config.h +++ b/tutorials/nxp/rt1060-evk-xpresso-baremetal-builtin/source/mongoose_config.h @@ -1,7 +1,7 @@ #pragma once // See https://mongoose.ws/documentation/#build-options -#define MG_ARCH MG_ARCH_NEWLIB +#define MG_ARCH MG_ARCH_ARMGCC #define MG_ENABLE_TCPIP 1 #define MG_ENABLE_DRIVER_IMXRT10 1 #define MG_ENABLE_CUSTOM_MILLIS 1 diff --git a/tutorials/renesas/ek-ra6m4-make-baremetal-builtin/mongoose_config.h b/tutorials/renesas/ek-ra6m4-make-baremetal-builtin/mongoose_config.h index 8c3b6a5c..622f26da 100644 --- a/tutorials/renesas/ek-ra6m4-make-baremetal-builtin/mongoose_config.h +++ b/tutorials/renesas/ek-ra6m4-make-baremetal-builtin/mongoose_config.h @@ -1,7 +1,7 @@ #pragma once // See https://mongoose.ws/documentation/#build-options -#define MG_ARCH MG_ARCH_NEWLIB +#define MG_ARCH MG_ARCH_ARMGCC #define MG_ENABLE_TCPIP 1 #define MG_ENABLE_CUSTOM_MILLIS 1 diff --git a/tutorials/stm32/nucleo-f429zi-cube-freertos-lwip/Core/Inc/mongoose_config.h b/tutorials/stm32/nucleo-f429zi-cube-freertos-lwip/Core/Inc/mongoose_config.h index b6a9622d..05b64c78 100644 --- a/tutorials/stm32/nucleo-f429zi-cube-freertos-lwip/Core/Inc/mongoose_config.h +++ b/tutorials/stm32/nucleo-f429zi-cube-freertos-lwip/Core/Inc/mongoose_config.h @@ -4,7 +4,7 @@ #define MG_STMPACK_ARCH MG_ARCH #undef MG_ARCH #elif defined(__GNUC__) -#define MG_STMPACK_ARCH MG_ARCH_NEWLIB +#define MG_STMPACK_ARCH MG_ARCH_ARMGCC #endif #define MG_ENABLE_PACKED_FS 1 diff --git a/tutorials/stm32/nucleo-f429zi-keil-baremetal/mongoose_config.h b/tutorials/stm32/nucleo-f429zi-keil-baremetal/mongoose_config.h index 31a9cab8..4636f680 100644 --- a/tutorials/stm32/nucleo-f429zi-keil-baremetal/mongoose_config.h +++ b/tutorials/stm32/nucleo-f429zi-keil-baremetal/mongoose_config.h @@ -8,7 +8,7 @@ // FreeRTOS // CMSIS-RTOS v1 // CMSIS-RTOS v2 -// ARM GCC + Newlib +// ARM GCC + Newlib #define MG_ARCH MG_ARCH_ARMCC // Enable builtin TCP/IP stack diff --git a/tutorials/stm32/nucleo-f429zi-keil-freertos/mongoose_config.h b/tutorials/stm32/nucleo-f429zi-keil-freertos/mongoose_config.h index 390a6157..455e6d12 100644 --- a/tutorials/stm32/nucleo-f429zi-keil-freertos/mongoose_config.h +++ b/tutorials/stm32/nucleo-f429zi-keil-freertos/mongoose_config.h @@ -8,7 +8,7 @@ // FreeRTOS // CMSIS-RTOS v1 // CMSIS-RTOS v2 -// ARM GCC + Newlib +// ARM GCC + Newlib #define MG_ARCH MG_ARCH_FREERTOS // Enable builtin TCP/IP stack diff --git a/tutorials/stm32/nucleo-f429zi-make-baremetal-builtin-rndis/mongoose_config.h b/tutorials/stm32/nucleo-f429zi-make-baremetal-builtin-rndis/mongoose_config.h index 02c6900a..fdf143d8 100644 --- a/tutorials/stm32/nucleo-f429zi-make-baremetal-builtin-rndis/mongoose_config.h +++ b/tutorials/stm32/nucleo-f429zi-make-baremetal-builtin-rndis/mongoose_config.h @@ -1,7 +1,7 @@ #pragma once // See https://mongoose.ws/documentation/#build-options -#define MG_ARCH MG_ARCH_NEWLIB +#define MG_ARCH MG_ARCH_ARMGCC #define MG_ENABLE_TCPIP 1 #define MG_ENABLE_CUSTOM_MILLIS 1 diff --git a/tutorials/stm32/nucleo-f746zg-cube-freertos-lwip/Core/Inc/mongoose_config.h b/tutorials/stm32/nucleo-f746zg-cube-freertos-lwip/Core/Inc/mongoose_config.h index b6a9622d..05b64c78 100644 --- a/tutorials/stm32/nucleo-f746zg-cube-freertos-lwip/Core/Inc/mongoose_config.h +++ b/tutorials/stm32/nucleo-f746zg-cube-freertos-lwip/Core/Inc/mongoose_config.h @@ -4,7 +4,7 @@ #define MG_STMPACK_ARCH MG_ARCH #undef MG_ARCH #elif defined(__GNUC__) -#define MG_STMPACK_ARCH MG_ARCH_NEWLIB +#define MG_STMPACK_ARCH MG_ARCH_ARMGCC #endif #define MG_ENABLE_PACKED_FS 1 diff --git a/tutorials/stm32/nucleo-f746zg-keil-baremetal/mongoose_config.h b/tutorials/stm32/nucleo-f746zg-keil-baremetal/mongoose_config.h index 31a9cab8..4636f680 100644 --- a/tutorials/stm32/nucleo-f746zg-keil-baremetal/mongoose_config.h +++ b/tutorials/stm32/nucleo-f746zg-keil-baremetal/mongoose_config.h @@ -8,7 +8,7 @@ // FreeRTOS // CMSIS-RTOS v1 // CMSIS-RTOS v2 -// ARM GCC + Newlib +// ARM GCC + Newlib #define MG_ARCH MG_ARCH_ARMCC // Enable builtin TCP/IP stack diff --git a/tutorials/stm32/nucleo-f746zg-keil-freertos-lwip/mongoose_config.h b/tutorials/stm32/nucleo-f746zg-keil-freertos-lwip/mongoose_config.h index 18aca303..3d2170eb 100644 --- a/tutorials/stm32/nucleo-f746zg-keil-freertos-lwip/mongoose_config.h +++ b/tutorials/stm32/nucleo-f746zg-keil-freertos-lwip/mongoose_config.h @@ -8,7 +8,7 @@ // FreeRTOS // CMSIS-RTOS v1 // CMSIS-RTOS v2 -// ARM GCC + Newlib +// ARM GCC + Newlib #define MG_ARCH MG_ARCH_FREERTOS // Enable builtin TCP/IP stack diff --git a/tutorials/stm32/nucleo-f746zg-keil-freertos-tcp/mongoose_config.h b/tutorials/stm32/nucleo-f746zg-keil-freertos-tcp/mongoose_config.h index 2eba6594..3c81ad3b 100644 --- a/tutorials/stm32/nucleo-f746zg-keil-freertos-tcp/mongoose_config.h +++ b/tutorials/stm32/nucleo-f746zg-keil-freertos-tcp/mongoose_config.h @@ -8,7 +8,7 @@ // FreeRTOS // CMSIS-RTOS v1 // CMSIS-RTOS v2 -// ARM GCC + Newlib +// ARM GCC + Newlib #define MG_ARCH MG_ARCH_FREERTOS // Enable builtin TCP/IP stack diff --git a/tutorials/stm32/nucleo-f746zg-keil-freertos/mongoose_config.h b/tutorials/stm32/nucleo-f746zg-keil-freertos/mongoose_config.h index 390a6157..455e6d12 100644 --- a/tutorials/stm32/nucleo-f746zg-keil-freertos/mongoose_config.h +++ b/tutorials/stm32/nucleo-f746zg-keil-freertos/mongoose_config.h @@ -8,7 +8,7 @@ // FreeRTOS // CMSIS-RTOS v1 // CMSIS-RTOS v2 -// ARM GCC + Newlib +// ARM GCC + Newlib #define MG_ARCH MG_ARCH_FREERTOS // Enable builtin TCP/IP stack diff --git a/tutorials/stm32/nucleo-f746zg-keil-freertos_cmsis2-lwip/mongoose_config.h b/tutorials/stm32/nucleo-f746zg-keil-freertos_cmsis2-lwip/mongoose_config.h index b179d99a..93ac4feb 100644 --- a/tutorials/stm32/nucleo-f746zg-keil-freertos_cmsis2-lwip/mongoose_config.h +++ b/tutorials/stm32/nucleo-f746zg-keil-freertos_cmsis2-lwip/mongoose_config.h @@ -8,7 +8,7 @@ // FreeRTOS // CMSIS-RTOS v1 // CMSIS-RTOS v2 -// ARM GCC + Newlib +// ARM GCC + Newlib #define MG_ARCH MG_ARCH_CMSIS_RTOS2 // Enable builtin TCP/IP stack diff --git a/tutorials/stm32/nucleo-f746zg-keil-freertos_cmsis2/mongoose_config.h b/tutorials/stm32/nucleo-f746zg-keil-freertos_cmsis2/mongoose_config.h index 26fb7071..979972a6 100644 --- a/tutorials/stm32/nucleo-f746zg-keil-freertos_cmsis2/mongoose_config.h +++ b/tutorials/stm32/nucleo-f746zg-keil-freertos_cmsis2/mongoose_config.h @@ -8,7 +8,7 @@ // FreeRTOS // CMSIS-RTOS v1 // CMSIS-RTOS v2 -// ARM GCC + Newlib +// ARM GCC + Newlib #define MG_ARCH MG_ARCH_CMSIS_RTOS2 // Enable builtin TCP/IP stack diff --git a/tutorials/stm32/nucleo-f746zg-keil-rtx-mdk/mongoose_config.h b/tutorials/stm32/nucleo-f746zg-keil-rtx-mdk/mongoose_config.h index 964ab129..b9dc51b5 100644 --- a/tutorials/stm32/nucleo-f746zg-keil-rtx-mdk/mongoose_config.h +++ b/tutorials/stm32/nucleo-f746zg-keil-rtx-mdk/mongoose_config.h @@ -8,7 +8,7 @@ // FreeRTOS // CMSIS-RTOS v1 // CMSIS-RTOS v2 -// ARM GCC + Newlib +// ARM GCC + Newlib #define MG_ARCH MG_ARCH_CMSIS_RTOS1 // Enable builtin TCP/IP stack diff --git a/tutorials/stm32/nucleo-f746zg-keil-rtx/mongoose_config.h b/tutorials/stm32/nucleo-f746zg-keil-rtx/mongoose_config.h index e5a681c1..77dacb5d 100644 --- a/tutorials/stm32/nucleo-f746zg-keil-rtx/mongoose_config.h +++ b/tutorials/stm32/nucleo-f746zg-keil-rtx/mongoose_config.h @@ -8,7 +8,7 @@ // FreeRTOS // CMSIS-RTOS v1 // CMSIS-RTOS v2 -// ARM GCC + Newlib +// ARM GCC + Newlib #define MG_ARCH MG_ARCH_CMSIS_RTOS1 // Enable builtin TCP/IP stack diff --git a/tutorials/stm32/nucleo-f746zg-keil-rtx5-lwip/mongoose_config.h b/tutorials/stm32/nucleo-f746zg-keil-rtx5-lwip/mongoose_config.h index 46cde88f..37f65f98 100644 --- a/tutorials/stm32/nucleo-f746zg-keil-rtx5-lwip/mongoose_config.h +++ b/tutorials/stm32/nucleo-f746zg-keil-rtx5-lwip/mongoose_config.h @@ -8,7 +8,7 @@ // FreeRTOS // CMSIS-RTOS v1 // CMSIS-RTOS v2 -// ARM GCC + Newlib +// ARM GCC + Newlib #define MG_ARCH MG_ARCH_CMSIS_RTOS2 // Enable builtin TCP/IP stack diff --git a/tutorials/stm32/nucleo-f746zg-keil-rtx5-mdk/mongoose_config.h b/tutorials/stm32/nucleo-f746zg-keil-rtx5-mdk/mongoose_config.h index 34800f75..bb065b69 100644 --- a/tutorials/stm32/nucleo-f746zg-keil-rtx5-mdk/mongoose_config.h +++ b/tutorials/stm32/nucleo-f746zg-keil-rtx5-mdk/mongoose_config.h @@ -8,7 +8,7 @@ // FreeRTOS // CMSIS-RTOS v1 // CMSIS-RTOS v2 -// ARM GCC + Newlib +// ARM GCC + Newlib #define MG_ARCH MG_ARCH_CMSIS_RTOS2 // Enable builtin TCP/IP stack diff --git a/tutorials/stm32/nucleo-f746zg-keil-rtx5/mongoose_config.h b/tutorials/stm32/nucleo-f746zg-keil-rtx5/mongoose_config.h index 26fb7071..979972a6 100644 --- a/tutorials/stm32/nucleo-f746zg-keil-rtx5/mongoose_config.h +++ b/tutorials/stm32/nucleo-f746zg-keil-rtx5/mongoose_config.h @@ -8,7 +8,7 @@ // FreeRTOS // CMSIS-RTOS v1 // CMSIS-RTOS v2 -// ARM GCC + Newlib +// ARM GCC + Newlib #define MG_ARCH MG_ARCH_CMSIS_RTOS2 // Enable builtin TCP/IP stack diff --git a/tutorials/stm32/nucleo-f746zg-make-baremetal-builtin-cmsis_driver/mongoose_config.h b/tutorials/stm32/nucleo-f746zg-make-baremetal-builtin-cmsis_driver/mongoose_config.h index 1684688d..0968eb20 100644 --- a/tutorials/stm32/nucleo-f746zg-make-baremetal-builtin-cmsis_driver/mongoose_config.h +++ b/tutorials/stm32/nucleo-f746zg-make-baremetal-builtin-cmsis_driver/mongoose_config.h @@ -1,7 +1,7 @@ #pragma once // See https://mongoose.ws/documentation/#build-options -#define MG_ARCH MG_ARCH_NEWLIB +#define MG_ARCH MG_ARCH_ARMGCC #define MG_ENABLE_TCPIP 1 #define MG_ENABLE_CUSTOM_MILLIS 1 diff --git a/tutorials/stm32/nucleo-f746zg-make-baremetal-builtin-rndis/mongoose_config.h b/tutorials/stm32/nucleo-f746zg-make-baremetal-builtin-rndis/mongoose_config.h index 02c6900a..fdf143d8 100644 --- a/tutorials/stm32/nucleo-f746zg-make-baremetal-builtin-rndis/mongoose_config.h +++ b/tutorials/stm32/nucleo-f746zg-make-baremetal-builtin-rndis/mongoose_config.h @@ -1,7 +1,7 @@ #pragma once // See https://mongoose.ws/documentation/#build-options -#define MG_ARCH MG_ARCH_NEWLIB +#define MG_ARCH MG_ARCH_ARMGCC #define MG_ENABLE_TCPIP 1 #define MG_ENABLE_CUSTOM_MILLIS 1 diff --git a/tutorials/stm32/nucleo-g031-make-baremetal-builtin/mongoose_config.h b/tutorials/stm32/nucleo-g031-make-baremetal-builtin/mongoose_config.h index e84b0509..f57db404 100644 --- a/tutorials/stm32/nucleo-g031-make-baremetal-builtin/mongoose_config.h +++ b/tutorials/stm32/nucleo-g031-make-baremetal-builtin/mongoose_config.h @@ -1,7 +1,7 @@ #pragma once // See https://mongoose.ws/documentation/#build-options -#define MG_ARCH MG_ARCH_NEWLIB +#define MG_ARCH MG_ARCH_ARMGCC #define MG_ENABLE_TCPIP 1 #define MG_ENABLE_DRIVER_W5500 1 diff --git a/tutorials/stm32/portenta-h7-cube-baremetal-builtin/CM7/Core/Inc/mongoose_config.h b/tutorials/stm32/portenta-h7-cube-baremetal-builtin/CM7/Core/Inc/mongoose_config.h index a68ac4ca..d8bf1b87 100644 --- a/tutorials/stm32/portenta-h7-cube-baremetal-builtin/CM7/Core/Inc/mongoose_config.h +++ b/tutorials/stm32/portenta-h7-cube-baremetal-builtin/CM7/Core/Inc/mongoose_config.h @@ -1,7 +1,7 @@ #pragma once // See https://mongoose.ws/documentation/#build-options -#define MG_ARCH MG_ARCH_NEWLIB +#define MG_ARCH MG_ARCH_ARMGCC #define MG_TLS MG_TLS_BUILTIN #define MG_OTA MG_OTA_STM32H7_DUAL_CORE #define MG_IRAM __attribute__((section(".RamFunc"))) diff --git a/tutorials/stm32/portenta-h7-make-baremetal-builtin/mongoose_config.h b/tutorials/stm32/portenta-h7-make-baremetal-builtin/mongoose_config.h index 3eccc063..06e4766c 100644 --- a/tutorials/stm32/portenta-h7-make-baremetal-builtin/mongoose_config.h +++ b/tutorials/stm32/portenta-h7-make-baremetal-builtin/mongoose_config.h @@ -1,7 +1,7 @@ #pragma once // See https://mongoose.ws/documentation/#build-options -#define MG_ARCH MG_ARCH_NEWLIB +#define MG_ARCH MG_ARCH_ARMGCC #define MG_TLS MG_TLS_BUILTIN #define MG_OTA MG_OTA_STM32H7_DUAL_CORE diff --git a/tutorials/stm32/rm2-nucleo-f429zi-make-baremetal-builtin/mongoose_config.h b/tutorials/stm32/rm2-nucleo-f429zi-make-baremetal-builtin/mongoose_config.h index 41cc655d..69004d1b 100644 --- a/tutorials/stm32/rm2-nucleo-f429zi-make-baremetal-builtin/mongoose_config.h +++ b/tutorials/stm32/rm2-nucleo-f429zi-make-baremetal-builtin/mongoose_config.h @@ -1,7 +1,7 @@ #pragma once // See https://mongoose.ws/documentation/#build-options -#define MG_ARCH MG_ARCH_NEWLIB +#define MG_ARCH MG_ARCH_ARMGCC #define MG_ENABLE_TCPIP 1 #define MG_ENABLE_CUSTOM_MILLIS 1 diff --git a/tutorials/stm32/rm2-nucleo-f746zg-make-baremetal-builtin/mongoose_config.h b/tutorials/stm32/rm2-nucleo-f746zg-make-baremetal-builtin/mongoose_config.h index 41cc655d..69004d1b 100644 --- a/tutorials/stm32/rm2-nucleo-f746zg-make-baremetal-builtin/mongoose_config.h +++ b/tutorials/stm32/rm2-nucleo-f746zg-make-baremetal-builtin/mongoose_config.h @@ -1,7 +1,7 @@ #pragma once // See https://mongoose.ws/documentation/#build-options -#define MG_ARCH MG_ARCH_NEWLIB +#define MG_ARCH MG_ARCH_ARMGCC #define MG_ENABLE_TCPIP 1 #define MG_ENABLE_CUSTOM_MILLIS 1 diff --git a/tutorials/ti/ek-tm4c1294xl-make-baremetal-builtin-rndis/mongoose_config.h b/tutorials/ti/ek-tm4c1294xl-make-baremetal-builtin-rndis/mongoose_config.h index 2accd1c2..424041c5 100644 --- a/tutorials/ti/ek-tm4c1294xl-make-baremetal-builtin-rndis/mongoose_config.h +++ b/tutorials/ti/ek-tm4c1294xl-make-baremetal-builtin-rndis/mongoose_config.h @@ -1,7 +1,7 @@ #pragma once // See https://mongoose.ws/documentation/#build-options -#define MG_ARCH MG_ARCH_NEWLIB +#define MG_ARCH MG_ARCH_ARMGCC #define MG_ENABLE_TCPIP 1 #define MG_ENABLE_CUSTOM_MILLIS 1 diff --git a/tutorials/wch/ch32v307-make-baremetal-builtin/mongoose_config.h b/tutorials/wch/ch32v307-make-baremetal-builtin/mongoose_config.h index fa99916d..6777fa93 100644 --- a/tutorials/wch/ch32v307-make-baremetal-builtin/mongoose_config.h +++ b/tutorials/wch/ch32v307-make-baremetal-builtin/mongoose_config.h @@ -1,7 +1,7 @@ #pragma once // See https://mongoose.ws/documentation/#build-options -#define MG_ARCH MG_ARCH_NEWLIB +#define MG_ARCH MG_ARCH_ARMGCC #define MG_OTA MG_OTA_CH32V307 #define MG_ENABLE_TCPIP 1