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:
parent
87567da801
commit
ffb6a9db8e
1 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue