mbed-os/features/FEATURE_LWIP/lwip-interface
Kevin Bracey 9daf450eb3 K64F Ethernet: avoid using NULL thread during init
The K64F Ethernet driver installs an interrupt handler that sets thread
flags, and this could be called before the thread was initialised, so it
would use a NULL thread ID.

This triggers an RTX error-checking trap in debug builds, and could also
lead to other problems with received packets not being processed.

Adjusted so the RX interrupt handler does nothing if the thread isn't
initialised yet, and manually trigger a RX event flag after initialising
the thread in case any interrupts were ignored.

An alternative would have been to implement eth_arch_enable_interrupts,
but this mechanism is not present in the EMAC world - drivers will have
to start returning interrupts in their power up.

Fixes #5680
2017-12-21 11:14:08 +02:00
..
lwip Remove build warnings in LWIP 2017-11-01 08:47:58 -05:00
lwip-eth/arch K64F Ethernet: avoid using NULL thread during init 2017-12-21 11:14:08 +02:00
lwip-sys Update mbed OS to handle ARMC6 requirements 2017-09-11 13:20:32 -05:00
.mbedignore PPP Interface for LWIP using FileHandle stream 2017-05-31 15:02:11 +03:00
CONTRIBUTING.md Added contributing document. 2017-08-03 11:49:44 +03:00
EthernetInterface.cpp Either ipv4 or ipv4v6 PPP and IP stacks are enabled based on 3GPP context 2017-08-22 13:14:41 +03:00
EthernetInterface.h nsapi - Adopted standardized return types in lwip 2016-11-02 15:25:22 -05:00
emac_lwip.c lwip - power up emac before reading its settings 2017-04-28 00:15:07 +08:00
emac_stack_lwip.cpp Added emac_stack_mem_copy. Needed by the u-blox ODIN-W2 driver. 2016-11-07 15:52:56 +01:00
eth_arch.h EMAC: Fix LWIP_IPV4 and DEVICE_EMAC flag usage 2016-10-03 17:46:39 +01:00
lwip_stack.c Merge pull request #5196 from kegilbert/multicast-ipv6-2 2017-11-20 10:51:07 -06:00
lwip_stack.h Either ipv4 or ipv4v6 PPP and IP stacks are enabled based on 3GPP context 2017-08-22 13:14:41 +03:00
lwipopts.h lwIP: Add memory configs to JSON 2017-10-10 11:34:21 +03:00
mbed_lib.json lwIP: Add memory configs to JSON 2017-10-10 11:34:21 +03:00
ppp_lwip.cpp Corrected lwip to enable disabling of ipcp and ipv6cp protocols 2017-08-22 13:14:41 +03:00
ppp_lwip.h Either ipv4 or ipv4v6 PPP and IP stacks are enabled based on 3GPP context 2017-08-22 13:14:41 +03:00