Mercurial > public > ostc4
diff Common/Drivers/CMSIS/Include/cmsis_gcc.h @ 994:bad5561c0c59 GasConsumption
Fix a compilation error occurring on non-Windows platforms, caused by incorrect case in '#include' file names.
Also fix some compiler warnings from non-safe use of 'memcpy'. (mikeller)
| author | heinrichsweikamp |
|---|---|
| date | Sun, 27 Apr 2025 09:56:22 +0200 |
| parents | c78bcbd5deda |
| children | 8c0134a287da |
line wrap: on
line diff
--- a/Common/Drivers/CMSIS/Include/cmsis_gcc.h Fri Apr 25 08:26:03 2025 +0200 +++ b/Common/Drivers/CMSIS/Include/cmsis_gcc.h Sun Apr 27 09:56:22 2025 +0200 @@ -185,10 +185,11 @@ \param [in] topOfMainStack Main Stack Pointer value to set */ -__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) -{ - __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) : "sp"); -} +// This is deprecated, get the compiler to shut up about it +//__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) +//{ +// __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) : "sp"); +//} /**
