nkjnm

Dependencies:   MAX44000 nexpaq_mdk

Fork of LED_Demo by Maxim nexpaq

mbd_os/libraries/doc/net/doc.txt

Committer:
nitsshukla
Date:
2016-11-04
Revision:
7:3a65ef12ba31
Parent:
1:55a6170b404f

File content as of revision 7:3a65ef12ba31:

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