summaryrefslogtreecommitdiff
path: root/tmk_core/tool/mbed/mbed-sdk/libraries/doc/net/doc.txt
blob: 270c64c06e292e22a59378ed01a22f520235a656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
lwip/api/tcpip.c: tcpip_init -> tcpip_thread

lwip/core/netif.c: netif_add
lwip/arch/lpc17_emac.c: lpc_enetif_init -> packet_rx, packet_tx

=== tcpip_thread ===
    while (true):
        sys_timeouts_mbox_fetch(&mbox, (void **)&msg)
        ...

Feeding the tcpip_thread mbox:
    tcpip_input
    tcpip_callback_with_block
    tcpip_timeout
    tcpip_untimeout
    tcpip_apimsg
    tcpip_netifapi


=== packet_rx ===
    while (true):
        sys_arch_sem_wait(&lpc_enetif->RxSem, osWaitForever)
        ...

Feeding the RX semaphore:
    ENET_IRQHandler


=== packet_tx ===
    while (true):
        sys_arch_sem_wait(&lpc_enetif->TxCleanSem, osWaitForever)
        ...

Feeding the TX semaphore:
    ENET_IRQHandler