From ce55f5a29152d7d71c7848c5d94e2eeab397aed4 Mon Sep 17 00:00:00 2001 From: "roel@libnfc.org" 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 #include +#include -#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