mbed-os/targets/TARGET_GigaDevice/TARGET_GD32F30X
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
..
GD32F30x_standard_peripheral Style Format for GD32F30x standard peripheral files 2018-12-07 17:00:10 +08:00
TARGET_GD32F307VG Merge pull request #14457 from ARMmbed/uart-stdio-alias 2021-03-26 15:17:58 +00:00
CMakeLists.txt CMake: refactor GigaDevice targets 2021-02-12 16:55:42 +00:00
PeripheralPins.h Don't use define checks on DEVICE_FOO macros (partner code) 2018-12-20 20:02:29 +11:00
PortNames.h Add SPDX identifier 2018-11-21 11:38:53 +08:00
analogin_api.c Add HAL API for analog in pinmap 2019-02-08 09:09:51 -06:00
analogout_api.c Add HAL API for analog out pinmap 2019-02-08 09:10:05 -06:00
can_api.c CAN: Use uintptr_t for can_irq_ids 2021-09-17 13:36:43 +01:00
device.h Add SPDX identifier 2018-11-21 11:38:53 +08:00
flash_api.c Error resolve, bug fix and 2 new targets information add 2018-12-06 19:43:20 +08:00
gpio_api.c Add SPDX identifier 2018-11-21 11:38:53 +08:00
gpio_irq_api.c GPIO: Use uintptr_t for gpio_irq_api context 2022-01-26 18:12:52 +00:00
i2c_api.c Add HAL API for i2c pinmap 2019-02-08 09:10:12 -06:00
mbed_overrides.c Error resolve, bug fix and 2 new targets information add 2018-12-06 19:43:20 +08:00
objects.h Add SPDX identifier 2018-11-21 11:38:53 +08:00
pinmap.c Add SPDX identifier 2018-11-21 11:38:53 +08:00
port_api.c Add SPDX identifier 2018-11-21 11:38:53 +08:00
pwmout_api.c pwmout - GD32F30X - add read methods for period and pulsewidth 2020-09-02 13:39:11 +02:00
rtc_api.c Add SPDX identifier 2018-11-21 11:38:53 +08:00
serial_api.c Add HAL API for serial pinmap 2019-02-08 09:10:28 -06:00
sleep.c Error resolve, bug fix and 2 new targets information add 2018-12-06 19:43:20 +08:00
spi_api.c Add HAL API for spi pinmap 2019-02-08 09:10:37 -06:00
us_ticker.c Add SPDX identifier 2018-11-21 11:38:53 +08:00