mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-25 20:28:27 +00:00
Make unamalgamated builds work on STM32
This commit is contained in:
1 parent
071cd50ef9
commit
65a6582d96
12 files changed
+38
No files matched your search
@@ -1,4 +1,6 @@
|
||||
#include "phy.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
|
||||
enum { // ID1 ID2
|
||||
MG_PHY_KSZ8x = 0x22, // 0022 156x - KSZ8081RNB, KSZ8091RNB
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
#include "net_builtin.h"
|
||||
#include "log.h"
|
||||
#include "phy.h"
|
||||
#include "util.h"
|
||||
|
||||
#if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_STM32F) && \
|
||||
MG_ENABLE_DRIVER_STM32F
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#include "net_builtin.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
|
||||
#if MG_ENABLE_TCPIP && (MG_ENABLE_DRIVER_STM32H || MG_ENABLE_DRIVER_MCXN || \
|
||||
MG_ENABLE_DRIVER_STM32N)
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
#endif
|
||||
#if MG_ENABLE_DRIVER_STM32H || MG_ENABLE_DRIVER_MCXN || MG_ENABLE_DRIVER_STM32N
|
||||
|
||||
#include "phy.h"
|
||||
|
||||
struct mg_tcpip_driver_stm32h_data {
|
||||
// MDC clock divider. MDC clock is derived from HCLK, must not exceed 2.5MHz
|
||||
// HCLK range DIVIDER mdc_cr VALUE
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "flash.h"
|
||||
#include "log.h"
|
||||
#include "ota.h"
|
||||
#include "util.h"
|
||||
#ifdef MG_OTA_PUBLIC_KEY
|
||||
#include "sha256.h"
|
||||
#include "tls_p256.h"
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#include "net_builtin.h"
|
||||
#include "bsd.h"
|
||||
#include "mdash.h"
|
||||
#include "ota.h"
|
||||
#include "printf.h"
|
||||
#include "profile.h"
|
||||
#include "tls.h"
|
||||
|
||||
#if MG_ENABLE_TCPIP
|
||||
#define MG_EPHEMERAL_PORT_BASE 32768
|
||||
|
||||
@@ -132,6 +132,8 @@ void mg_tcpip_qwrite(void *buf, size_t len, struct mg_tcpip_if *ifp);
|
||||
// broadcast, or a non-NULL hint to set the target MAC field in the request.
|
||||
void mg_tcpip_arp_request(struct mg_tcpip_if *ifp, uint32_t ip, uint8_t *mac);
|
||||
|
||||
extern uint8_t mcast_addr[6]; // Multicast MAC address programmed by drivers
|
||||
|
||||
// Built-in hardware drivers. Assign one to mg_tcpip_if.driver before calling
|
||||
// mg_tcpip_init(). See the matching driver header for configuration and
|
||||
// initialisation helpers.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "flash.h"
|
||||
#include "log.h"
|
||||
#include "ota.h"
|
||||
#include "util.h"
|
||||
|
||||
#if MG_OTA == MG_OTA_STM32F
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "flash.h"
|
||||
#include "log.h"
|
||||
#include "ota.h"
|
||||
#include "util.h"
|
||||
|
||||
#if MG_OTA == MG_OTA_STM32H5 || MG_OTA == MG_OTA_STM32C5
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "flash.h"
|
||||
#include "log.h"
|
||||
#include "ota.h"
|
||||
#include "util.h"
|
||||
|
||||
#if MG_OTA == MG_OTA_STM32H7 || MG_OTA == MG_OTA_STM32H7_DUAL_CORE
|
||||
|
||||
|
||||
Reference in new issue
Block a user