comparison 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
comparison
equal deleted inserted replaced
993:df052f0347fb 994:bad5561c0c59
183 \brief Set Main Stack Pointer 183 \brief Set Main Stack Pointer
184 \details Assigns the given value to the Main Stack Pointer (MSP). 184 \details Assigns the given value to the Main Stack Pointer (MSP).
185 185
186 \param [in] topOfMainStack Main Stack Pointer value to set 186 \param [in] topOfMainStack Main Stack Pointer value to set
187 */ 187 */
188 __attribute__( ( always_inline ) ) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack) 188 // This is deprecated, get the compiler to shut up about it
189 { 189 //__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)
190 __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) : "sp"); 190 //{
191 } 191 // __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) : "sp");
192 //}
192 193
193 194
194 /** 195 /**
195 \brief Get Priority Mask 196 \brief Get Priority Mask
196 \details Returns the current state of the priority mask bit from the Priority Mask Register. 197 \details Returns the current state of the priority mask bit from the Priority Mask Register.