mirror of https://github.com/ARMmbed/mbed-os.git
per @c1728p9 Update the Callback class to handle a NULL thunk by returning 0 rather than trying to call the thunk. This fixes a crash that occurs on some targets when the TX uart handler is not attached. Background: The K64F HAL uart implementation calls the TX interrupt handler every time a uart interrupt occurs while the TX register is empty. It does not check to see if the TX interrupt has been enabled. This means that the TX interrupt can and typically does get run on RX events. This causes a crash with the newer callback code which did not (prior to this patch) support a NULL thunk. |
||
---|---|---|
.. | ||
api | ||
common | ||
hal | ||
targets | ||
.yotta_ignore | ||
CMakeLists.txt | ||
module.json |