From 040f4333678f46f3558e604014d460076244af6b Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 7 Dec 2019 17:13:23 +0100 Subject: added net_alloc; fixed cell modem driver --- code/esp32/components/eos/include/net.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'code/esp32/components/eos/include') diff --git a/code/esp32/components/eos/include/net.h b/code/esp32/components/eos/include/net.h index 3ce142a..d6f3f34 100644 --- a/code/esp32/components/eos/include/net.h +++ b/code/esp32/components/eos/include/net.h @@ -13,12 +13,15 @@ #define EOS_NET_MTYPE_FLAG_ONEW 0x10 #define EOS_NET_SIZE_BUF 1500 -#define EOS_NET_SIZE_BUFQ 64 +#define EOS_NET_SIZE_BUFQ 8 +#define EOS_NET_SIZE_SNDQ 16 -#define EOS_NET_FLAG_BUF_FREE 0x01 +#define EOS_NET_FLAG_BFREE 0x1 +#define EOS_NET_FLAG_BCOPY 0x2 typedef void (*eos_net_fptr_t) (unsigned char, unsigned char *, uint16_t); void eos_net_init(void); +unsigned char *eos_net_alloc(void); int eos_net_send(unsigned char mtype, unsigned char *buffer, uint16_t len, uint8_t flags); void eos_net_set_handler(unsigned char mtype, eos_net_fptr_t handler); \ No newline at end of file -- cgit v1.2.3