mbed-os/targets/TARGET_NXP
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
..
TARGET_LPC11XX_11CXX Merge pull request #14516 from 0xc0170/fix-cmake-project-name 2021-04-15 14:00:21 +02:00
TARGET_LPC176X CAN: Use uintptr_t for can_irq_ids 2021-09-17 13:36:43 +01:00
TARGET_MCUXpresso_MCUS Merge pull request #14623 from s-bruce13/master 2021-05-13 11:18:05 +01:00
scripts Rework post-build to support multiple executables 2021-07-22 17:31:22 +01:00
CMakeLists.txt CMake: set CMAKE_MODULE_PATH in the Mbed OS CMakelists.txt 2021-04-14 13:09:28 +01:00
USBEndpoints_LPC17_LPC23.h Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
USBHAL_LPC17.cpp Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
USBPhyHw.h Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00
mbed_rtx.h Add SPDX license identifier to Arm files 2020-10-15 10:47:27 +01:00