eclipse-threadx / netxduo

Eclipse ThreadX - NetXDuo is an advanced, industrial-grade TCP/IP network stack designed specifically for deeply embedded real-time and IoT applications
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/netx-duo/index.md
MIT License
230 stars 131 forks source link

NX_BSD_TIMEOUT_PROCESS_IN_TIMER #247

Open sonoclock110 opened 4 months ago

sonoclock110 commented 4 months ago

If NX_BSD_TIMEOUT_PROCESS_IN_TIMER is defined the if statement https://github.com/eclipse-threadx/netxduo/blob/5ce9823f58d08f1f1dc9ccd1c6ea84b32f68e731/addons/BSD/nxd_bsd.c#L379 should inside the macro https://github.com/eclipse-threadx/netxduo/blob/5ce9823f58d08f1f1dc9ccd1c6ea84b32f68e731/addons/BSD/nxd_bsd.c#L386

At the moment the function nx_bsd_initialize(..) returns always an error if NX_BSD_TIMEOUT_PROCESS_IN_TIMER is defined and nx_bsd_initialize(..) is called with NULL for argument bsd_thread_stack_area and bsd_thread_stack_size. https://github.com/eclipse-threadx/netxduo/blob/5ce9823f58d08f1f1dc9ccd1c6ea84b32f68e731/addons/BSD/nxd_bsd.h#L122-L125