Added NULL, MIN and MAX

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@694 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-05-24 12:21:51 +00:00
parent 87567da801
commit ffb6a9db8e

View file

@ -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)