LPCOpen Platform for LPC112X microcontrollers  112X
LPCOpen Platform for the NXP LPC112X family of Microcontrollers
Macros
LPC Public Macros

Detailed Description

Macros

#define _BIT(n)   (1 << (n))
 
#define _SBF(f, v)   ((v) << (f))
 
#define _BITMASK(field_width)   ( _BIT(field_width) - 1)
 
#define NULL   ((void *) 0)
 
#define NELEMENTS(array)   (sizeof(array) / sizeof(array[0]))
 
#define STATIC   static
 
#define EXTERN   extern
 
#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
 
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
 

Macro Definition Documentation

#define _BIT (   n)    (1 << (n))

Definition at line 104 of file lpc_types.h.

#define _BITMASK (   field_width)    ( _BIT(field_width) - 1)

Definition at line 129 of file lpc_types.h.

#define _SBF (   f,
 
)    ((v) << (f))

Definition at line 112 of file lpc_types.h.

#define EXTERN   extern

Definition at line 142 of file lpc_types.h.

#define MAX (   a,
 
)    (((a) > (b)) ? (a) : (b))

Definition at line 145 of file lpc_types.h.

#define MIN (   a,
 
)    (((a) < (b)) ? (a) : (b))

Definition at line 148 of file lpc_types.h.

#define NELEMENTS (   array)    (sizeof(array) / sizeof(array[0]))

Definition at line 137 of file lpc_types.h.

#define NULL   ((void *) 0)

Definition at line 133 of file lpc_types.h.

#define STATIC   static

Definition at line 140 of file lpc_types.h.