mirror of https://github.com/ARMmbed/mbed-os.git
The semaphore xTXDCountSem had the count to match the number of resources available, but was being used as a binary semaphore in a loop to listen for events. This patch updates the logic to make use of the resource count. With RTX5 the OS traps with an error if the a semaphore is released more times than its count with an error similar to "Semaphore 10000e6c error -17". Because xTXDCountSem is being used as a binary semaphore it triggered this trap. With this patch the semaphore is no longer used as a binary semaphore and no longer traps. |
||
---|---|---|
.. | ||
lwip | ||
lwip-eth/arch | ||
lwip-sys | ||
.mbedignore | ||
EthernetInterface.cpp | ||
EthernetInterface.h | ||
emac_lwip.c | ||
emac_stack_lwip.cpp | ||
eth_arch.h | ||
lwip_stack.c | ||
lwip_stack.h | ||
lwipopts.h | ||
mbed_lib.json | ||
ppp_lwip.cpp | ||
ppp_lwip.h |