Make unamalgamated builds work on STM32

This commit is contained in:
robert committed 2026-11-24 14:18:10 +02:00
1 parent 071cd50ef9
commit 65a6582d96
12 files changed
+38

No files matched your search

+15
View File
@@ -2953,6 +2953,7 @@ void mg_error(struct mg_connection *c, const char *fmt, ...) {
#ifdef MG_OTA_PUBLIC_KEY
@@ -9809,6 +9810,10 @@ void mg_multicast_restore(struct mg_connection *c, uint8_t *from) {
#if MG_ENABLE_TCPIP
#define MG_EPHEMERAL_PORT_BASE 32768
#define PDIFF(a, b) ((size_t) (((char *) (b)) - ((char *) (a))))
@@ -14455,6 +14460,7 @@ struct mg_flash *mg_flash = &s_mg_flash_frdm;
#if MG_OTA == MG_OTA_STM32F
static bool mg_stm32f_write(void *, const void *, size_t);
@@ -14710,6 +14716,7 @@ struct mg_flash *mg_flash = &s_mg_flash_stm32f;
#if MG_OTA == MG_OTA_STM32H5 || MG_OTA == MG_OTA_STM32C5
static bool mg_stm32h5_write(void *, const void *, size_t);
@@ -14883,6 +14890,7 @@ struct mg_flash *mg_flash = &s_mg_flash_stm32h5;
#if MG_OTA == MG_OTA_STM32H7 || MG_OTA == MG_OTA_STM32H7_DUAL_CORE
// - H723/735 RM 4.3.3: Note: The application can simultaneously request a read
@@ -34256,6 +34264,8 @@ bool __attribute__((weak)) mg_wifi_ap_stop(void) {
#endif
enum { // ID1 ID2
MG_PHY_KSZ8x = 0x22, // 0022 156x - KSZ8081RNB, KSZ8091RNB
MG_PHY_DP83x = 0x2000,
@@ -36580,6 +36590,9 @@ bool mg_wifi_ap_stop(void) {
#endif
#if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_STM32F) && \
MG_ENABLE_DRIVER_STM32F
struct stm32f_eth {
@@ -36832,6 +36845,8 @@ struct mg_tcpip_driver mg_tcpip_driver_stm32f = {
#endif
#if MG_ENABLE_TCPIP && (MG_ENABLE_DRIVER_STM32H || MG_ENABLE_DRIVER_MCXN || \
MG_ENABLE_DRIVER_STM32N)
// STM32C: vendor modded single-queue Synopsys v5.4, same settings as STM32H