]> granicus.if.org Git - esp-idf/commitdiff
Change inline to static inline functions. Ref Github issue 62.
authorJeroen Domburg <git@j0h.nl>
Thu, 27 Oct 2016 01:15:43 +0000 (09:15 +0800)
committerJeroen Domburg <git@j0h.nl>
Thu, 27 Oct 2016 01:17:04 +0000 (09:17 +0800)
components/freertos/include/freertos/portable.h
components/freertos/include/freertos/portmacro.h

index a3d39bd5a2ee70e34f39550847c6e44ea8e05e94..f3474d49ea4397cbefe3e36e6d05486cf054d5e0 100644 (file)
@@ -192,7 +192,7 @@ void vPortEndScheduler( void ) PRIVILEGED_FUNCTION;
 #endif
 
 /* Multi-core: get current core ID */
-inline uint32_t xPortGetCoreID() {
+static inline uint32_t xPortGetCoreID() {
     int id;
     asm volatile(
         "rsr.prid %0\n"
index 5e2386d721ebf47f61fde8cbd507e5c633d1301f..f20a4a1e269a67be12747cf414950bf8dcf739dc 100644 (file)
@@ -234,7 +234,7 @@ static inline unsigned portENTER_CRITICAL_NESTED() { unsigned state = XTOS_SET_I
  * *bitwise inverse* of the old mem if the mem wasn't written. This doesn't seem to happen on the
  * ESP32, though. (Would show up directly if it did because the magic wouldn't match.)
  */
-inline void uxPortCompareSet(volatile uint32_t *addr, uint32_t compare, uint32_t *set) {
+static inline void uxPortCompareSet(volatile uint32_t *addr, uint32_t compare, uint32_t *set) {
     __asm__ __volatile__(
         "WSR       %2,SCOMPARE1 \n"
         "ISYNC      \n"