summaryrefslogtreecommitdiff
path: root/bsp/imx6sx/cortex-a9/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/imx6sx/cortex-a9/rtconfig.h
parent946484760e8bb8e84c24581230acb1dded85629b (diff)
[bsp] Update BSP configuration file for netdev components
Signed-off-by: chenyong <[email protected]>
Diffstat (limited to 'bsp/imx6sx/cortex-a9/rtconfig.h')
-rw-r--r--bsp/imx6sx/cortex-a9/rtconfig.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/bsp/imx6sx/cortex-a9/rtconfig.h b/bsp/imx6sx/cortex-a9/rtconfig.h
index f11ddac2a1..154eabfc4a 100644
--- a/bsp/imx6sx/cortex-a9/rtconfig.h
+++ b/bsp/imx6sx/cortex-a9/rtconfig.h
@@ -13,6 +13,7 @@
#define RT_TICK_PER_SECOND 100
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
+#define RT_USING_IDLE_HOOK
#define RT_IDEL_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
#define RT_DEBUG
@@ -38,6 +39,7 @@
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart1"
+#define RT_VER_NUM 0x40001
/* RT-Thread Components */
@@ -77,10 +79,17 @@
#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
#define RT_USING_PIN
+/* Using WiFi */
+
+
/* Using USB */
@@ -99,7 +108,13 @@
#define SAL_USING_LWIP
#define SAL_SOCKETS_NUM 16
-#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 */
@@ -119,6 +134,7 @@
#define RT_LWIP_MSKADDR "255.255.255.0"
#define RT_LWIP_UDP
#define RT_LWIP_TCP
+#define RT_LWIP_RAW
#define RT_MEMP_NUM_NETCONN 8
#define RT_LWIP_PBUF_NUM 16
#define RT_LWIP_RAW_PCB_NUM 4
@@ -134,11 +150,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 */
@@ -189,10 +207,7 @@
/* miscellaneous packages */
-/* sample package */
-
-
-/* example package: hello */
+/* samples: kernel and components samples */
#define RT_USING_UART1