From ce55f5a29152d7d71c7848c5d94e2eeab397aed4 Mon Sep 17 00:00:00 2001
From: "roel@libnfc.org" <roel@libnfc.org@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Date: Mon, 8 Apr 2013 09:18:39 +0000
Subject: [PATCH] moved RAMFUNC definition

---
 armsrc/util.h    | 2 +-
 include/common.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/armsrc/util.h b/armsrc/util.h
index ac141065..135468ae 100644
--- a/armsrc/util.h
+++ b/armsrc/util.h
@@ -13,8 +13,8 @@
 
 #include <stddef.h>
 #include <stdint.h>
+#include <common.h>
 
-#define RAMFUNC __attribute((long_call, section(".ramfunc")))
 #define BYTEx(x, n) (((x) >> (n * 8)) & 0xff )
 
 #define LED_RED 1
diff --git a/include/common.h b/include/common.h
index 71787b4f..feed109c 100644
--- a/include/common.h
+++ b/include/common.h
@@ -25,4 +25,6 @@ typedef unsigned char byte_t;
 # define MAX(a, b) (((a) > (b)) ? (a) : (b))
 #endif
 
+#define RAMFUNC __attribute((long_call, section(".ramfunc")))
+
 #endif
-- 
2.39.5