]> begriffs open source - cmsis/commit
Enhance the cast from uint32_t to uint32_t* by intermediate casting through uintptr_t...
authorMartin <martin.babutzka@web.de>
Mon, 12 Jun 2023 14:07:07 +0000 (16:07 +0200)
committerGitHub <noreply@github.com>
Mon, 12 Jun 2023 14:07:07 +0000 (16:07 +0200)
commit30e68dcb1e98ed26e1bd3e13b9107090f0cd4080
treed9626d2d2eda9e06ec9bda932b2675d04b486e47
parent89fed628142384da93481edbf1d8f3fd809cc8b3
Enhance the cast from uint32_t to uint32_t* by intermediate casting through uintptr_t in __NVIC_SetVector/GetVector

This allows the header to be compiled on a non-32bit architecture
without the warning int-to-pointer-cast. It is also a clean approach
when turning a uint32_t value to a pointer and should not add any
additional cycles on a 32bit architecture.
17 files changed:
CMSIS/Core/Include/core_armv81mml.h
CMSIS/Core/Include/core_armv8mbl.h
CMSIS/Core/Include/core_armv8mml.h
CMSIS/Core/Include/core_cm0plus.h
CMSIS/Core/Include/core_cm23.h
CMSIS/Core/Include/core_cm3.h
CMSIS/Core/Include/core_cm33.h
CMSIS/Core/Include/core_cm35p.h
CMSIS/Core/Include/core_cm4.h
CMSIS/Core/Include/core_cm55.h
CMSIS/Core/Include/core_cm7.h
CMSIS/Core/Include/core_cm85.h
CMSIS/Core/Include/core_sc000.h
CMSIS/Core/Include/core_sc300.h
CMSIS/Core/Include/core_starmc1.h
CMSIS/DoxyGen/Core/src/Ref_CompilerControl.txt
CMSIS/DoxyGen/Core_A/src/cmsis_armcc.txt