mbed-os/targets/TARGET_NXP/TARGET_LPC176X
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_ARCH_PRO CMake targets: remove MBED_PATH, use stadard variables 2021-04-14 13:09:26 +01:00
TARGET_MBED_LPC1768 CMake targets: remove MBED_PATH, use stadard variables 2021-04-14 13:09:26 +01:00
device NXP: Use armclang shebang in scatter files 2021-01-22 11:11:42 +00:00
CMakeLists.txt CMake: Refactor NXP targets 2021-02-10 21:36:39 +00:00
PeripheralNames.h Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides 2021-03-23 11:17:17 +00:00
PortNames.h Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
analogin_api.c Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
analogout_api.c Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
can_api.c CAN: Use uintptr_t for can_irq_ids 2021-09-17 13:36:43 +01:00
gpio_api.c Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01: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 Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
i2c_api.c Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
objects.h Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
pinmap.c Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
port_api.c Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
pwmout_api.c Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
reset_reason.c SPDX identifier and license amended 2019-08-19 11:58:02 +01:00
rtc_api.c Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
serial_api.c Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
sleep.c Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
spi_api.c Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
us_ticker.c Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
watchdog_api.c Add watchdog clock accuracy to NXP targets. 2019-09-30 08:10:24 +02:00