mbed-os/targets/TARGET_GigaDevice/TARGET_GD32F4XX
Hari Limaye b493a15a53 CAN: Use uintptr_t for can_irq_ids
The HAL can_api stores an array of IDs in order to dispatch interrupts
to the correct CAN object. The drivers level CAN Class casts a pointer
to itself to an uint32_t, which is stored as the ID and then cast back
to a CAN * in order to call the correct handler. 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 CAN 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.
2021-09-17 13:36:43 +01:00
..
GD32F4xx_standard_peripheral Add GD32_F450ZI as new target 2019-01-09 19:03:33 +08:00
TARGET_GD32F450ZI Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides 2021-03-23 11:17:17 +00:00
device Refactor load region definitions for ArmC6 toolchain 2021-03-25 09:26:00 +00:00
CMakeLists.txt Update targets/TARGET_GigaDevice/TARGET_GD32F4XX/CMakeLists.txt 2021-02-14 19:30:02 +00:00
PeripheralPins.h Add GD32_F450ZI as new target 2019-01-09 19:03:33 +08:00
PortNames.h Add GD32_F450ZI as new target 2019-01-09 19:03:33 +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 GD32_F450ZI as new target 2019-01-09 19:03:33 +08:00
flash_api.c Add GD32_F450ZI as new target 2019-01-09 19:03:33 +08:00
gpio_api.c Add GD32_F450ZI as new target 2019-01-09 19:03:33 +08:00
gpio_irq_api.c Add GD32_F450ZI as new target 2019-01-09 19:03:33 +08:00
i2c_api.c Add HAL API for i2c pinmap 2019-02-08 09:10:12 -06:00
mbed_overrides.c Add GD32_F450ZI as new target 2019-01-09 19:03:33 +08:00
objects.h Add GD32_F450ZI as new target 2019-01-09 19:03:33 +08:00
pinmap.c Add GD32_F450ZI as new target 2019-01-09 19:03:33 +08:00
port_api.c Add GD32_F450ZI as new target 2019-01-09 19:03:33 +08:00
pwmout_api.c pwmout - GD32F4XX - add read methods for period and pulsewidth 2020-09-02 13:39:11 +02:00
rtc_api.c Add GD32_F450ZI as new target 2019-01-09 19:03:33 +08:00
serial_api.c Add HAL API for serial pinmap 2019-02-08 09:10:28 -06:00
sleep.c Add GD32_F450ZI as new target 2019-01-09 19:03:33 +08:00
spi_api.c Add HAL API for spi pinmap 2019-02-08 09:10:37 -06:00
trng_api.c Add GD32_F450ZI as new target 2019-01-09 19:03:33 +08:00
us_ticker.c add SPDX indentifier, modify 450zi.icf file and static definition in us_ticker.c 2019-01-09 19:03:33 +08:00