Commit c0f9158d authored by Ulrich Huber's avatar Ulrich Huber Committed by Oliver Horst
Browse files

Make link detect thread parameters in lwIP configurable

parent 23be92a1
...@@ -479,6 +479,12 @@ ...@@ -479,6 +479,12 @@
*/ */
#define LWIP_NETIF_STATUS_CALLBACK 1 #define LWIP_NETIF_STATUS_CALLBACK 1
/**
* LWIP_NETIF_EXT_STATUS_CALLBACK==1: Support a callback function whenever an interface
* changes various states including DHCP,...
*/
#define LWIP_NETIF_EXT_STATUS_CALLBACK 1
/* /*
------------------------------------ ------------------------------------
---------- Thread options ---------- ---------- Thread options ----------
......
...@@ -20,10 +20,23 @@ ...@@ -20,10 +20,23 @@
#define CONFIG_LINKSPEED_AUTODETECT 1 #define CONFIG_LINKSPEED_AUTODETECT 1
/** /**
* The size of the stack of the threads taking care of DHCP and the incoming packets * The size of the stack of the thread transferring incoming packets from the Xilinx driver to lwIP
*/ */
#define XLWIP_CONFIG_THREAD_STACKSIZE 1024 #define XLWIP_CONFIG_THREAD_STACKSIZE 1024
/**
* The priority of the thread transferring incoming packets from the Xilinx driver to lwIP
*/
#define XLWIP_CONFIG_THREAD_PRIO (8 - 1) #define XLWIP_CONFIG_THREAD_PRIO (8 - 1)
/**
* The size of the stack of the thread checking for an established link on the emacps interface
*/
#define XLWIP_LINK_DETECT_THREAD_STACKSIZE 1024
/**
* The interval in ms by which change of link connection is determined by the emacps driver
*/
#define XLWIP_LINK_DETECT_THREAD_INTERVAL 1000 /* one second */
#endif /* __XLWIPCONFIG_H_ */ #endif /* __XLWIPCONFIG_H_ */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment