mbed-os/hal
Christopher Haster fbbda73faa Update Callback to fix fault in serial interrupts
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.
2016-05-27 10:28:46 -05:00
..
api Update Callback to fix fault in serial interrupts 2016-05-27 10:28:46 -05:00
common Adopt Callback class in hal 2016-05-27 10:28:46 -05:00
hal Simplify layout: 2016-05-23 09:13:59 +01:00
targets HAL - nordic Lib folder back 2016-05-25 09:57:26 +01:00
.yotta_ignore Simplify layout: 2016-05-23 09:13:59 +01:00
CMakeLists.txt Simplify layout: 2016-05-23 09:13:59 +01:00
module.json Simplify layout: 2016-05-23 09:13:59 +01:00