mbed-os/hal/api
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
..
mbed-drivers Create mbed-drivers/mbed.h for compatibility 2016-04-10 23:43:34 -05:00
AnalogIn.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
AnalogOut.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
BusIn.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
BusInOut.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
BusOut.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
CAN.h Adopt Callback class in hal 2016-05-13 19:07:45 -05:00
CThunk.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
CallChain.h Adopt Callback class in hal 2016-05-13 19:07:45 -05:00
Callback.h Update Callback to fix fault in serial interrupts 2016-05-24 17:18:11 -05:00
CircularBuffer.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
DigitalIn.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
DigitalInOut.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
DigitalOut.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
DirHandle.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
Ethernet.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
FileBase.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
FileHandle.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
FileLike.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
FilePath.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
FileSystemLike.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
FunctionPointer.h Add backward compatiblity for FunctionPointer class using Callback 2016-05-13 19:07:45 -05:00
I2C.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
I2CSlave.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
InterruptIn.h Adopt Callback class in hal 2016-05-13 19:07:45 -05:00
InterruptManager.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
LocalFileSystem.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
LowPowerTicker.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
LowPowerTimeout.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
LowPowerTimer.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
PortIn.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
PortInOut.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
PortOut.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
PwmOut.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
RawSerial.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
SPI.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
SPISlave.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
Serial.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
SerialBase.h Adopt Callback class in hal 2016-05-13 19:07:45 -05:00
Stream.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
Ticker.h Adopt Callback class in hal 2016-05-13 19:07:45 -05:00
Timeout.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
Timer.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
TimerEvent.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
Transaction.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
can_helper.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
mbed.h Add backward compatiblity for FunctionPointer class using Callback 2016-05-13 19:07:45 -05:00
mbed_assert.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
mbed_debug.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
mbed_error.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
mbed_interface.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
platform.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
rtc_time.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
semihost_api.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00
toolchain.h Added other attributes on supported compilers 2016-05-16 18:59:23 -05:00
wait_api.h Preparing new layout - moved hal+mbed-drivers to ./hal 2016-04-05 16:26:29 +01:00