mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-28 20:58:31 +00:00
Merge pull request #3397 from cesanta/cube
Add support for N6 in ARCH_CUBE
This commit is contained in:
2 files changed
+10
-3
No files matched your search
+4
-1
@@ -159,11 +159,14 @@ extern "C" {
|
|||||||
#define MG_ENABLE_TCPIP 1 // Enable built-in TCP/IP stack
|
#define MG_ENABLE_TCPIP 1 // Enable built-in TCP/IP stack
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MG_ENABLE_TCPIP && !defined(MG_ENABLE_DRIVER_STM32F) && !defined(MG_ENABLE_DRIVER_STM32H)
|
#if MG_ENABLE_TCPIP && !defined(MG_ENABLE_DRIVER_STM32F) && \
|
||||||
|
!defined(MG_ENABLE_DRIVER_STM32H) && !defined(MG_ENABLE_DRIVER_STM32N)
|
||||||
#if defined(STM32F1) || defined(STM32F2) || defined(STM32F4) || defined(STM32F7)
|
#if defined(STM32F1) || defined(STM32F2) || defined(STM32F4) || defined(STM32F7)
|
||||||
#define MG_ENABLE_DRIVER_STM32F 1
|
#define MG_ENABLE_DRIVER_STM32F 1
|
||||||
#elif defined(STM32H5) || defined(STM32H7)
|
#elif defined(STM32H5) || defined(STM32H7)
|
||||||
#define MG_ENABLE_DRIVER_STM32H 1
|
#define MG_ENABLE_DRIVER_STM32H 1
|
||||||
|
#elif defined(STM32N6)
|
||||||
|
#define MG_ENABLE_DRIVER_STM32N 1
|
||||||
#else
|
#else
|
||||||
#error Select a driver in mongoose_config.h
|
#error Select a driver in mongoose_config.h
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+6
-2
@@ -35,11 +35,14 @@
|
|||||||
#define MG_ENABLE_TCPIP 1 // Enable built-in TCP/IP stack
|
#define MG_ENABLE_TCPIP 1 // Enable built-in TCP/IP stack
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MG_ENABLE_TCPIP && !defined(MG_ENABLE_DRIVER_STM32F) && !defined(MG_ENABLE_DRIVER_STM32H)
|
#if MG_ENABLE_TCPIP && !defined(MG_ENABLE_DRIVER_STM32F) && \
|
||||||
|
!defined(MG_ENABLE_DRIVER_STM32H) && !defined(MG_ENABLE_DRIVER_STM32N)
|
||||||
#if defined(STM32F1) || defined(STM32F2) || defined(STM32F4) || defined(STM32F7)
|
#if defined(STM32F1) || defined(STM32F2) || defined(STM32F4) || defined(STM32F7)
|
||||||
#define MG_ENABLE_DRIVER_STM32F 1
|
#define MG_ENABLE_DRIVER_STM32F 1
|
||||||
#elif defined(STM32H5) || defined(STM32H7)
|
#elif defined(STM32H5) || defined(STM32H7)
|
||||||
#define MG_ENABLE_DRIVER_STM32H 1
|
#define MG_ENABLE_DRIVER_STM32H 1
|
||||||
|
#elif defined(STM32N6)
|
||||||
|
#define MG_ENABLE_DRIVER_STM32N 1
|
||||||
#else
|
#else
|
||||||
#error Select a driver in mongoose_config.h
|
#error Select a driver in mongoose_config.h
|
||||||
#endif
|
#endif
|
||||||
@@ -49,7 +52,8 @@
|
|||||||
#define MG_TLS MG_TLS_BUILTIN
|
#define MG_TLS MG_TLS_BUILTIN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MG_OTA) && defined(STM32F1) || defined(STM32F2) || defined(STM32F4) || defined(STM32F7)
|
#if !defined(MG_OTA) && defined(STM32F1) || defined(STM32F2) || \
|
||||||
|
defined(STM32F4) || defined(STM32F7)
|
||||||
#define MG_OTA MG_OTA_STM32F
|
#define MG_OTA MG_OTA_STM32F
|
||||||
#elif !defined(MG_OTA) && defined(STM32H5)
|
#elif !defined(MG_OTA) && defined(STM32H5)
|
||||||
#define MG_OTA MG_OTA_STM32H5
|
#define MG_OTA MG_OTA_STM32H5
|
||||||
|
|||||||
Reference in new issue
Block a user