summaryrefslogtreecommitdiff
path: root/code/fe310/eos/net_def.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2019-10-13 02:05:03 +0200
committerUros Majstorovic <majstor@majstor.org>2019-10-13 02:05:03 +0200
commit8c6c68e92d6b4c8aa5e2fcc784ed52da40845acc (patch)
tree0251bea9be01701c488f9d8719b52eeb2a64855d /code/fe310/eos/net_def.h
parent2a39fdf6d943f5738ba174368053a86304b0d8fa (diff)
net refactor; rename cmd -> type
Diffstat (limited to 'code/fe310/eos/net_def.h')
-rw-r--r--code/fe310/eos/net_def.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/code/fe310/eos/net_def.h b/code/fe310/eos/net_def.h
index a7766f2..2df2833 100644
--- a/code/fe310/eos/net_def.h
+++ b/code/fe310/eos/net_def.h
@@ -1,11 +1,15 @@
-#define EOS_NET_FLAG_BUF_FREE 0x1
-#define EOS_NET_FLAG_BUF_ACQ 0x2
+#define NET_SIZE_BUF 1500
+#define NET_SIZE_BUFQ 2
-#define EOS_NET_CMD_FLAG_ONEW 0x10
+#define NET_PIN_RTS 20
+#define NET_PIN_CTS 22
+#define NET_PIN_CS 10
+#define NET_IDX_SS 3
-#define EOS_NET_CMD_CONNECT 1
-#define EOS_NET_CMD_DISCONNECT 2
-#define EOS_NET_CMD_SCAN 3
-#define EOS_NET_CMD_PKT 4
+#define NET_FLAG_RDY 0x01
+#define NET_FLAG_RST 0x02
+#define NET_FLAG_RTS 0x04
+#define NET_FLAG_CTS 0x08
+#define NET_FLAG_INIT 0x10
+#define NET_FLAG_ONEW 0x20
-#define EOS_NET_MAX_CMD 8