mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-05 22:08:23 +00:00
Include TCP/IP API only if enabled
This commit is contained in:
1 parent
4593332204
commit
33811a826f
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1598,6 +1598,7 @@ void mg_rpc_verr(struct mg_rpc_req *, int code, const char *fmt, va_list *);
|
|||||||
void mg_rpc_list(struct mg_rpc_req *r);
|
void mg_rpc_list(struct mg_rpc_req *r);
|
||||||
|
|
||||||
|
|
||||||
|
#if MG_ENABLE_TCPIP
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1659,7 +1660,6 @@ struct mg_tcpip_spi {
|
|||||||
uint8_t (*txn)(void *, uint8_t); // SPI transaction: write 1 byte, read reply
|
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)
|
#if !defined(MG_ENABLE_DRIVER_STM32H) && !defined(MG_ENABLE_DRIVER_TM4C)
|
||||||
#define MG_ENABLE_DRIVER_STM32 1
|
#define MG_ENABLE_DRIVER_STM32 1
|
||||||
#else
|
#else
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#if MG_ENABLE_TCPIP
|
||||||
#include "arch.h"
|
#include "arch.h"
|
||||||
#include "net.h"
|
#include "net.h"
|
||||||
#include "queue.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
|
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)
|
#if !defined(MG_ENABLE_DRIVER_STM32H) && !defined(MG_ENABLE_DRIVER_TM4C)
|
||||||
#define MG_ENABLE_DRIVER_STM32 1
|
#define MG_ENABLE_DRIVER_STM32 1
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in new issue
Block a user