Prechádzať zdrojové kódy

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.
Kevin Bracey 7 rokov pred
rodič
commit
4d8dc46639
1 zmenil súbory, kde vykonal 1 pridanie a 3 odobranie
  1. 1 3
      CMSIS/Core_A/Include/cmsis_gcc.h

+ 1 - 3
CMSIS/Core_A/Include/cmsis_gcc.h

@@ -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)