mbed-os/hal
Russ Butler e37e1da7b9 Update Callback to fix fault in serial interrupts
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-24 17:18:11 -05:00
..
TESTS/api Added other attributes on supported compilers 2016-05-16 18:59:23 -05:00
api Update Callback to fix fault in serial interrupts 2016-05-24 17:18:11 -05:00
common Use critical section helper in HAL 2016-05-18 14:50:31 +03:00
hal Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
targets Fix heap allocation when used with RTOS 2016-04-10 23:37:42 -05:00
.yotta_ignore Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
CMakeLists.txt Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
module.json Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00