mbed-os/targets/TARGET_TOSHIBA/TARGET_TMPM4G9
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
..
Periph_Driver Resolved linker issue 2019-12-06 15:22:55 +05:30
device Add bare metal support to Toshiba targets 2021-02-25 09:29:28 +00:00
CMakeLists.txt CMake: Refactor Toshiba targets 2021-02-11 11:51:20 +00:00
PeripheralNames.h Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides 2021-03-23 11:17:17 +00:00
PinNames.h Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides 2021-03-23 11:17:17 +00:00
PortNames.h Added SPDX identifier License 2019-12-06 15:15:05 +05:30
analogin_api.c Added SPDX identifier License 2019-12-06 15:15:05 +05:30
analogout_api.c Added SPDX identifier License 2019-12-06 15:15:05 +05:30
device.h Added SPDX identifier License 2019-12-06 15:15:05 +05:30
flash_api.c Added SPDX identifier License 2019-12-06 15:15:05 +05:30
gpio_api.c Added SPDX identifier License 2019-12-06 15:15:05 +05:30
gpio_irq_api.c GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
gpio_object.h Added SPDX identifier License 2019-12-06 15:15:05 +05:30
i2c_api.c Added SPDX identifier License 2019-12-06 15:15:05 +05:30
objects.h Added SPDX identifier License 2019-12-06 15:15:05 +05:30
pinmap.c Added SPDX identifier License 2019-12-06 15:15:05 +05:30
port_api.c Added SPDX identifier License 2019-12-06 15:15:05 +05:30
pwmout_api.c pwmout - TMPM4G9 - add read methods for period and pulsewidth 2020-09-02 13:39:16 +02:00
reset_reason_api.c TOSHIBA: Add hal_reset_reason_get_capabilities() 2020-01-03 16:54:19 +01:00
rtc_api.c Added SPDX identifier License 2019-12-06 15:15:05 +05:30
serial_api.c Added SPDX identifier License 2019-12-06 15:15:05 +05:30
sleep.c Added SPDX identifier License 2019-12-06 15:15:05 +05:30
spi_api.c Added SPDX identifier License 2019-12-06 15:15:05 +05:30
us_ticker.c Added SPDX identifier License 2019-12-06 15:15:05 +05:30