diff --git a/armsrc/util.h b/armsrc/util.h index ac141065f..135468aee 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 71787b4f4..feed109c2 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