summaryrefslogtreecommitdiff
path: root/bsp/w60x/rtconfig.h
diff options
context:
space:
mode:
authorchenyong <[email protected]>2019-04-17 11:00:45 +0800
committerchenyong <[email protected]>2019-04-17 11:00:45 +0800
commita6900a2d6f2f7e6ae3c98ec0f0dfccf8bfcd2d69 (patch)
treefde3d7e76dc08fe6f0bfcdb1258b4361b252c628 /bsp/w60x/rtconfig.h
parent946484760e8bb8e84c24581230acb1dded85629b (diff)
[bsp] Update BSP configuration file for netdev components
Signed-off-by: chenyong <[email protected]>
Diffstat (limited to 'bsp/w60x/rtconfig.h')
-rw-r--r--bsp/w60x/rtconfig.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/bsp/w60x/rtconfig.h b/bsp/w60x/rtconfig.h
index afd7821825..d88287407b 100644
--- a/bsp/w60x/rtconfig.h
+++ b/bsp/w60x/rtconfig.h
@@ -83,6 +83,9 @@
#define RT_USING_DEVICE_IPC
#define RT_PIPE_BUFSZ 512
+#define RT_USING_SYSTEM_WORKQUEUE
+#define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
+#define RT_SYSTEM_WORKQUEUE_PRIORITY 23
#define RT_USING_SERIAL
#define RT_SERIAL_USING_DMA
#define RT_SERIAL_RB_BUFSZ 64
@@ -123,7 +126,13 @@
#define SAL_USING_LWIP
#define SAL_USING_POSIX
-#define SAL_PROTO_FAMILIES_NUM 4
+
+/* Network interface device */
+
+#define RT_USING_NETDEV
+#define NETDEV_USING_IFCONFIG
+#define NETDEV_USING_PING
+#define NETDEV_USING_NETSTAT
/* light weight TCP/IP stack */
@@ -161,11 +170,13 @@
#define RT_LWIP_ETHTHREAD_STACKSIZE 1024
#define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
#define LWIP_NETIF_STATUS_CALLBACK 1
+#define LWIP_NETIF_LINK_CALLBACK 1
#define SO_REUSE 1
#define LWIP_SO_RCVTIMEO 1
#define LWIP_SO_SNDTIMEO 1
#define LWIP_SO_RCVBUF 1
#define LWIP_NETIF_LOOPBACK 0
+#define RT_LWIP_USING_PING
/* Modbus master and slave stack */