From 1963f0bdeb1d17dbd05e1f615ba265745bf4129c Mon Sep 17 00:00:00 2001 From: robert Date: Tue, 19 May 2026 03:13:49 -0400 Subject: [PATCH] MG_ARCH_CUBE detection for WiFi drivers --- mongoose.h | 5 ++++- src/arch_cube.h | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mongoose.h b/mongoose.h index aedd407b..dda26322 100644 --- a/mongoose.h +++ b/mongoose.h @@ -160,7 +160,9 @@ extern "C" { #endif #if MG_ENABLE_TCPIP && !defined(MG_ENABLE_DRIVER_STM32F) && \ - !defined(MG_ENABLE_DRIVER_STM32H) && !defined(MG_ENABLE_DRIVER_STM32N) + !defined(MG_ENABLE_DRIVER_STM32H) && !defined(MG_ENABLE_DRIVER_STM32N) && \ + !defined(MG_ENABLE_DRIVER_CYW) && !defined(MG_ENABLE_DRIVER_CYW_SDIO) && \ + !defined(MG_ENABLE_DRIVER_ST67W6) #if defined(STM32F1) || defined(STM32F2) || defined(STM32F4) || defined(STM32F7) #define MG_ENABLE_DRIVER_STM32F 1 #elif defined(STM32H5) || defined(STM32H7) @@ -1112,6 +1114,7 @@ struct timeval { + // Macros to record timestamped events that happens with a connection. // They are saved into a c->prof IO buffer, each event is a name and a 32-bit // timestamp in milliseconds since connection init time. diff --git a/src/arch_cube.h b/src/arch_cube.h index d59ad7ac..73425b98 100644 --- a/src/arch_cube.h +++ b/src/arch_cube.h @@ -36,7 +36,9 @@ #endif #if MG_ENABLE_TCPIP && !defined(MG_ENABLE_DRIVER_STM32F) && \ - !defined(MG_ENABLE_DRIVER_STM32H) && !defined(MG_ENABLE_DRIVER_STM32N) + !defined(MG_ENABLE_DRIVER_STM32H) && !defined(MG_ENABLE_DRIVER_STM32N) && \ + !defined(MG_ENABLE_DRIVER_CYW) && !defined(MG_ENABLE_DRIVER_CYW_SDIO) && \ + !defined(MG_ENABLE_DRIVER_ST67W6) #if defined(STM32F1) || defined(STM32F2) || defined(STM32F4) || defined(STM32F7) #define MG_ENABLE_DRIVER_STM32F 1 #elif defined(STM32H5) || defined(STM32H7)