mbed-os/targets
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_ARM_FM GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
TARGET_ARM_SSG GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
TARGET_Ambiq_Micro GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
TARGET_Analog_Devices GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
TARGET_Cypress GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
TARGET_Freescale GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
TARGET_GigaDevice GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
TARGET_Maxim GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
TARGET_NORDIC GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
TARGET_NUVOTON GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
TARGET_NXP GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
TARGET_RENESAS GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
TARGET_STM GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
TARGET_Samsung GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
TARGET_Silicon_Labs GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
TARGET_TOSHIBA GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
CMakeLists.txt CMake: Move CMAKE_CROSSCOMPILING check inside library CMake 2021-05-20 06:26:10 -07:00
targets.json Merge pull request #15205 from mikrodust-henrikp/add_usbdevice_to_nucleo_f722ze 2022-01-17 16:10:06 +01:00