GCC: remove stray EMBEDDED_ASM annotations
REV16 for Core_A/cmsis_gcc.h had a __NO_EMBEDDED_ASM test and section
directive - presumably a copy-paste error.
Align with other intrinsics and Core REV16 version.
@@ -302,14 +302,12 @@ __STATIC_FORCEINLINE uint32_t __REV(uint32_t value)
\param [in] value Value to reverse
\return Reversed value
*/
-#ifndef __NO_EMBEDDED_ASM
-__attribute__((section(".rev16_text"))) __STATIC_INLINE uint32_t __REV16(uint32_t value)
+__STATIC_FORCEINLINE uint32_t __REV16(uint32_t value)
{
uint32_t result;
__ASM volatile("rev16 %0, %1" : "=r" (result) : "r" (value));
return result;
}
-#endif
/**
\brief Reverse byte order (16 bit)
