mbed-os/targets/TARGET_NUVOTON/TARGET_M2354
Hari Limaye f4e5359710 GPIO: Use uintptr_t for gpio_irq_api context
The HAL gpio_irq_api stores object IDs, which serve as a form of context
for the dispatch of the interrupt handler in the drivers level
InterruptIn Class. The way this is achieved is that the InterruptIn
Class casts its address to uint32_t, which is stored as the ID.
This results in compilation failure when the size of an object pointer
is greater than uint32_t, for example when building on a PC for unit
testing.

In order to allow Unit Testing of the InterruptIn Class, we replace the
use of uint32_t with uintptr_t (type capable of holding a pointer),
which allows portability and expresses intentions more clearly.
In aid of this latter goal, we also replace the use of the name "id"
with "context", to improve clarity - these are addresses of the context
related to that callback.
2022-01-26 18:12:52 +00:00
..
TARGET_NU_M2354 M2354: Comply with standard pin naming rule 2021-05-26 09:35:05 +08:00
TARGET_TFM M2354: Fix potential issues in TF-M 2021-11-22 13:57:22 +08:00
device M2354: Fix incorrect peripheral base with security 2021-09-02 09:16:01 +08:00
CMakeLists.txt M2354: Support TRNG as entropy source on TF-M 2021-05-26 09:35:04 +08:00
PeripheralNames.h M2354: Support TF-M 2021-05-26 09:35:02 +08:00
PeripheralPins.c M2354: Support TF-M 2021-05-26 09:35:02 +08:00
PeripheralPins.h M2354: Support TF-M 2021-05-26 09:35:02 +08:00
PinNamesCommon.h M2354: Support TF-M 2021-05-26 09:35:02 +08:00
PortNames.h M2354: Support TF-M 2021-05-26 09:35:02 +08:00
analogin_api.c M2354: Support TF-M 2021-05-26 09:35:02 +08:00
analogout_api.c M2354: Support TF-M 2021-05-26 09:35:02 +08:00
device.h M2354: Support TF-M 2021-05-26 09:35:02 +08:00
dma.h M2354: Support TF-M 2021-05-26 09:35:02 +08:00
dma_api.c M2354: Support TF-M 2021-05-26 09:35:02 +08:00
gpio_api.c M2354: Support TF-M 2021-05-26 09:35:02 +08:00
gpio_irq_api.c GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
gpio_object.h M2354: Support TF-M 2021-05-26 09:35:02 +08:00
i2c_api.c M2354: Support TF-M 2021-05-26 09:35:02 +08:00
lp_ticker.c M2354: Support TF-M 2021-05-26 09:35:02 +08:00
mbed_overrides.c M2354: Support TF-M 2021-05-26 09:35:02 +08:00
objects.h M2354: Support TF-M 2021-05-26 09:35:02 +08:00
pinmap.c M2354: Support TF-M 2021-05-26 09:35:02 +08:00
port_api.c M2354: Support TF-M 2021-05-26 09:35:02 +08:00
pwmout_api.c M2354: Support TF-M 2021-05-26 09:35:02 +08:00
rtc_api.c M2354: Support TF-M 2021-05-26 09:35:02 +08:00
serial_api.c M2354: Add serial_tx_empty(...) 2021-05-26 09:35:03 +08:00
sleep.c M2354: Support TF-M 2021-05-26 09:35:02 +08:00
spi_api.c M2354: Support TF-M 2021-05-26 09:35:02 +08:00
us_ticker.c M2354: Support TF-M 2021-05-26 09:35:02 +08:00