mbed-os/drivers
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
..
device_key Fix DeviceKey documentation regarding RoT 2021-04-15 12:15:50 +01:00
docs/serial Replace USBTX/RX 2021-03-24 15:00:53 +00:00
include/drivers CAN: Use uintptr_t for can_irq_ids 2021-09-17 13:36:43 +01:00
source CAN: Use uintptr_t for can_irq_ids 2021-09-17 13:36:43 +01:00
tests Unit tests: Add boilerplate code for AnalogIn.cpp 2021-08-16 10:13:11 +01:00
usb fix(docs): corrects various typos in project documentation 2021-04-23 23:31:11 -05:00
CMakeLists.txt drivers: Add missing OSPI.cpp to CMakeLists.txt 2021-09-10 09:45:11 +01:00
LICENSE-mit.txt drivers: add license information 2019-04-16 11:29:14 +01:00
LICENSE.md license: fix files list 2019-04-16 11:43:14 +01:00
mbed_lib.json add opsi driver 2020-09-16 11:27:23 +08:00