Example program for the lwIP TCP/IP stack (library lwip_1_4_0_rc2) and the QP state machine framework (library qp). This program demonstrates use of lwIP in hard real-time applications, in which the TCP/IP stack is used to monitor and configure the embedded device as well as to provide remote user interface (e.g., by means of a web browser). In particular, the lwIP stack, which is not reentrant, is strictly encapsulated inside a dedicated QP state machine object (active object in QP), so interrupt locking around calls to lwIP is unnecessary. Also, the Ethernet interrupt service routine (ISR) runs very fast without performing any lengthy copy operations. All this means that hard-real-time processing can be done at the task level, especially when you use the preemptive QK kernel built into QP for executing your application. No external RTOS component is needed to achieve fully deterministic real-time response of active object tasks prioritized above the lwiP task. The lwIP-QP integration uses exclusively the event-driven lwIP API. The heavyweight Berkeley-like socket API requiring a blocking RTOS and is not used, which results in much better performance of the lwIP stack and less memory consumption. NOTE: This example compiles cleanly, but does not run just yet because the low-level Ethernet driver in the lwIP library needs to be completed. See comments in the lwip_1_4_0_rc2 library for more information.
Files at revision 0:84f3d3d7e5d9
Name | Size | Actions |
---|---|---|
[up] | ||
fs_flash | ||
bsp.cpp | 10550 | Revisions Annotate |
bsp.h | 1819 | Revisions Annotate |
dpp.h | 3565 | Revisions Annotate |
lwip_1_4_0_rc2.lib | 59 | Revisions Annotate |
lwipmgr.cpp | 12393 | Revisions Annotate |
lwipopts.h | 21394 | Revisions Annotate |
main.cpp | 3865 | Revisions Annotate |
mbed.bld | 66 | Revisions Annotate |
philo.cpp | 6186 | Revisions Annotate |
qp.lib | 47 | Revisions Annotate |
qp_config.h | 984 | Revisions Annotate |
table.cpp | 5421 | Revisions Annotate |