mbed-os/hal/api
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
..
AnalogIn.h Simplify layout: 2016-05-23 09:13:59 +01:00
AnalogOut.h Simplify layout: 2016-05-23 09:13:59 +01:00
BusIn.h Simplify layout: 2016-05-23 09:13:59 +01:00
BusInOut.h Simplify layout: 2016-05-23 09:13:59 +01:00
BusOut.h Simplify layout: 2016-05-23 09:13:59 +01:00
CAN.h Adopt Callback class in hal 2016-05-27 10:28:46 -05:00
CThunk.h Simplify layout: 2016-05-23 09:13:59 +01:00
CallChain.h Adopt Callback class in hal 2016-05-27 10:28:46 -05:00
Callback.h Update Callback to fix fault in serial interrupts 2016-05-27 10:28:46 -05:00
CircularBuffer.h Simplify layout: 2016-05-23 09:13:59 +01:00
DigitalIn.h Simplify layout: 2016-05-23 09:13:59 +01:00
DigitalInOut.h Simplify layout: 2016-05-23 09:13:59 +01:00
DigitalOut.h Simplify layout: 2016-05-23 09:13:59 +01:00
DirHandle.h Simplify layout: 2016-05-23 09:13:59 +01:00
Ethernet.h Simplify layout: 2016-05-23 09:13:59 +01:00
FileBase.h Simplify layout: 2016-05-23 09:13:59 +01:00
FileHandle.h Simplify layout: 2016-05-23 09:13:59 +01:00
FileLike.h Simplify layout: 2016-05-23 09:13:59 +01:00
FilePath.h Simplify layout: 2016-05-23 09:13:59 +01:00
FileSystemLike.h Simplify layout: 2016-05-23 09:13:59 +01:00
FunctionPointer.h Add backward compatiblity for FunctionPointer class using Callback 2016-05-27 10:28:45 -05:00
I2C.h Simplify layout: 2016-05-23 09:13:59 +01:00
I2CSlave.h Simplify layout: 2016-05-23 09:13:59 +01:00
InterruptIn.h Adopt Callback class in hal 2016-05-27 10:28:46 -05:00
InterruptManager.h Simplify layout: 2016-05-23 09:13:59 +01:00
LocalFileSystem.h Simplify layout: 2016-05-23 09:13:59 +01:00
LowPowerTicker.h Simplify layout: 2016-05-23 09:13:59 +01:00
LowPowerTimeout.h Simplify layout: 2016-05-23 09:13:59 +01:00
LowPowerTimer.h Simplify layout: 2016-05-23 09:13:59 +01:00
PortIn.h Simplify layout: 2016-05-23 09:13:59 +01:00
PortInOut.h Simplify layout: 2016-05-23 09:13:59 +01:00
PortOut.h Simplify layout: 2016-05-23 09:13:59 +01:00
PwmOut.h Simplify layout: 2016-05-23 09:13:59 +01:00
RawSerial.h Simplify layout: 2016-05-23 09:13:59 +01:00
SPI.h Simplify layout: 2016-05-23 09:13:59 +01:00
SPISlave.h Simplify layout: 2016-05-23 09:13:59 +01:00
Serial.h Simplify layout: 2016-05-23 09:13:59 +01:00
SerialBase.h Adopt Callback class in hal 2016-05-27 10:28:46 -05:00
Stream.h Simplify layout: 2016-05-23 09:13:59 +01:00
Ticker.h Adopt Callback class in hal 2016-05-27 10:28:46 -05:00
Timeout.h Simplify layout: 2016-05-23 09:13:59 +01:00
Timer.h Simplify layout: 2016-05-23 09:13:59 +01:00
TimerEvent.h Simplify layout: 2016-05-23 09:13:59 +01:00
Transaction.h Simplify layout: 2016-05-23 09:13:59 +01:00
can_helper.h Simplify layout: 2016-05-23 09:13:59 +01:00
mbed.h Add backward compatiblity for FunctionPointer class using Callback 2016-05-27 10:28:45 -05:00
mbed_assert.h Simplify layout: 2016-05-23 09:13:59 +01:00
mbed_debug.h Simplify layout: 2016-05-23 09:13:59 +01:00
mbed_error.h Simplify layout: 2016-05-23 09:13:59 +01:00
mbed_interface.h Simplify layout: 2016-05-23 09:13:59 +01:00
platform.h Simplify layout: 2016-05-23 09:13:59 +01:00
rtc_time.h Simplify layout: 2016-05-23 09:13:59 +01:00
semihost_api.h semihost - fix inline __semihost for IAR (add static) 2016-05-23 09:50:20 +01:00
toolchain.h Simplify layout: 2016-05-23 09:13:59 +01:00
wait_api.h Simplify layout: 2016-05-23 09:13:59 +01:00