Include TCP/IP API only if enabled

This commit is contained in:
cpq committed 2023-04-29 11:45:28 +01:00
1 parent 4593332204
commit 33811a826f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,5 +1,6 @@
#pragma once
#if MG_ENABLE_TCPIP
#include "arch.h"
#include "net.h"
#include "queue.h"
@@ -61,7 +62,6 @@ struct mg_tcpip_spi {
uint8_t (*txn)(void *, uint8_t); // SPI transaction: write 1 byte, read reply
};
#if MG_ENABLE_TCPIP
#if !defined(MG_ENABLE_DRIVER_STM32H) && !defined(MG_ENABLE_DRIVER_TM4C)
#define MG_ENABLE_DRIVER_STM32 1
#else