From 602d0d803eb9607dcd949f3ea5ff27c14db4085b Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sun, 8 Dec 2019 17:47:58 +0100 Subject: fixed uart data relay bug; fixed all xCreateTask to use new macros for stack size; fixed err type for msgq; --- code/esp32/components/eos/include/eos.h | 17 ++++++++++++----- code/esp32/components/eos/include/net.h | 4 ++-- 2 files changed, 14 insertions(+), 7 deletions(-) (limited to 'code/esp32/components/eos/include') diff --git a/code/esp32/components/eos/include/eos.h b/code/esp32/components/eos/include/eos.h index a21985a..e9a67d4 100644 --- a/code/esp32/components/eos/include/eos.h +++ b/code/esp32/components/eos/include/eos.h @@ -1,9 +1,16 @@ #define EOS_OK 0 #define EOS_ERR -1 -#define EOS_ERR_Q_FULL -10 +#define EOS_ERR_FULL -10 +#define EOS_ERR_EMPTY -11 + +#define EOS_TASK_PRIORITY_UART 1 +#define EOS_TASK_PRIORITY_I2S 1 +#define EOS_TASK_PRIORITY_NET_XCHG 1 +#define EOS_TASK_PRIORITY_UDP_RCVR 1 + +#define EOS_TASK_SSIZE_UART 4096 +#define EOS_TASK_SSIZE_I2S 4096 +#define EOS_TASK_SSIZE_NET_XCHG 4096 +#define EOS_TASK_SSIZE_UDP_RCVR 4096 -#define EOS_IRQ_PRIORITY_UART 1 -#define EOS_IRQ_PRIORITY_I2S 1 -#define EOS_IRQ_PRIORITY_NET_XCHG 1 -#define EOS_IRQ_PRIORITY_UDP_RCVR 1 diff --git a/code/esp32/components/eos/include/net.h b/code/esp32/components/eos/include/net.h index d6f3f34..abf2893 100644 --- a/code/esp32/components/eos/include/net.h +++ b/code/esp32/components/eos/include/net.h @@ -13,8 +13,8 @@ #define EOS_NET_MTYPE_FLAG_ONEW 0x10 #define EOS_NET_SIZE_BUF 1500 -#define EOS_NET_SIZE_BUFQ 8 -#define EOS_NET_SIZE_SNDQ 16 +#define EOS_NET_SIZE_BUFQ 4 +#define EOS_NET_SIZE_SNDQ 4 #define EOS_NET_FLAG_BFREE 0x1 #define EOS_NET_FLAG_BCOPY 0x2 -- cgit v1.2.3