]> git.donarmstrong.com Git - qmk_firmware.git/blob - tool/mbed/mbed-sdk/libraries/doc/net/doc.txt
Squashed 'tmk_core/' changes from 7967731..b9e0ea0
[qmk_firmware.git] / tool / mbed / mbed-sdk / libraries / doc / net / doc.txt
1 lwip/api/tcpip.c: tcpip_init -> tcpip_thread
2
3 lwip/core/netif.c: netif_add
4 lwip/arch/lpc17_emac.c: lpc_enetif_init -> packet_rx, packet_tx
5
6 === tcpip_thread ===
7     while (true):
8         sys_timeouts_mbox_fetch(&mbox, (void **)&msg)
9         ...
10
11 Feeding the tcpip_thread mbox:
12     tcpip_input
13     tcpip_callback_with_block
14     tcpip_timeout
15     tcpip_untimeout
16     tcpip_apimsg
17     tcpip_netifapi
18
19
20 === packet_rx ===
21     while (true):
22         sys_arch_sem_wait(&lpc_enetif->RxSem, osWaitForever)
23         ...
24
25 Feeding the RX semaphore:
26     ENET_IRQHandler
27
28
29 === packet_tx ===
30     while (true):
31         sys_arch_sem_wait(&lpc_enetif->TxCleanSem, osWaitForever)
32         ...
33
34 Feeding the TX semaphore:
35     ENET_IRQHandler