Compile driver_stm32.c only for __arm__

This commit is contained in:
Sergey Lyubka 2022-06-13 01:04:09 +01:00
parent a71262437d
commit 5a448ab4f5
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
#include "mip.h"
#if MG_ENABLE_MIP
#if MG_ENABLE_MIP && defined(__arm__)
struct stm32_eth {
uint32_t MACCR, MACFFR, MACHTHR, MACHTLR, MACMIIAR, MACMIIDR, MACFCR,

View File

@ -5630,7 +5630,7 @@ size_t mg_ws_wrap(struct mg_connection *c, size_t len, int op) {
#if MG_ENABLE_MIP
#if MG_ENABLE_MIP && defined(__arm__)
struct stm32_eth {
uint32_t MACCR, MACFFR, MACHTHR, MACHTLR, MACMIIAR, MACMIIDR, MACFCR,