]>
Commit | Line | Data |
---|---|---|
534983d7 | 1 | //----------------------------------------------------------------------------- |
2 | // Hagen Fritsch - June 2010 | |
3 | // | |
4 | // This code is licensed to you under the terms of the GNU GPL, version 2 or, | |
5 | // at your option, any later version. See the LICENSE.txt file for the text of | |
6 | // the license. | |
7 | ||
8 | //----------------------------------------------------------------------------- | |
9 | // Interlib Definitions | |
10 | //----------------------------------------------------------------------------- | |
11 | ||
72622d64 | 12 | #ifndef COMMON_H__ |
13 | #define COMMON_H__ | |
534983d7 | 14 | |
d19929cb | 15 | typedef unsigned char byte_t; |
873014de | 16 | |
759c16b3 | 17 | #ifndef MIN |
18 | # define MIN(a, b) (((a) < (b)) ? (a) : (b)) | |
19 | #endif | |
20 | #ifndef MAX | |
21 | # define MAX(a, b) (((a) > (b)) ? (a) : (b)) | |
22 | #endif | |
cf194819 | 23 | #ifndef ABS |
72622d64 | 24 | # define ABS(a) (((a) < 0) ? -(a) : (a)) |
cf194819 | 25 | #endif |
26 | ||
ce55f5a2 | 27 | #define RAMFUNC __attribute((long_call, section(".ramfunc"))) |
28 | ||
534983d7 | 29 | #endif |