diff options
Diffstat (limited to 'firmware/system.h')
-rw-r--r-- | firmware/system.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/system.h b/firmware/system.h index 9b1df03217..fdc472f5e2 100644 --- a/firmware/system.h +++ b/firmware/system.h @@ -25,6 +25,18 @@ #define FREQ 12000000 /* cycle time ~83.3ns */ #define BAUDRATE 9600 +#ifndef NULL +#define NULL ((void*)0) +#endif + +#ifndef MIN +#define MIN(a, b) (((a)<(b))?(a):(b)) +#endif + +#ifndef MAX +#define MAX(a, b) MIN(b,a) +#endif + #ifdef LITTLE_ENDIAN #define SWAB16(x) (x) #define SWAB32(x) (x) |