Mistake on this page?
Report an issue in GitHub or email us
Mainloop mode ("NO_SYS")

Use this mode if you do not run an OS on your system. More...

Use this mode if you do not run an OS on your system.

#define NO_SYS to 1. Feed incoming packets to netif->input(pbuf, netif) function from mainloop, not from interrupt context. You can allocate a pbuf in interrupt context and put them into a queue which is processed from mainloop.
Call sys_check_timeouts() periodically in the mainloop.
Porting: implement all functions in sys_time, sys_prot and Compiler/platform abstraction.
You can only use "raw" APIs in this mode.
Sample code:

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.