LPCOpen Platform for LPC18XX/43XX microcontrollers: LPC Public Macros

| LPCOpen Platform for LPC18XX/43XX microcontrollers 18XX43XX LPCOpen Platform for the NXP LPC18XX/43XX family of Microcontrollers

- Main Page
- Modules
- Data Structures
- Files

Macros
LPC Public Macros
CHIP: LPC Common Types

## 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
| ) |  | ((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,
|  |  | b
| ) |  | (((a) > (b)) ? (a) : (b))

Definition at line 145 of file lpc_types.h.

#define MIN | ( |  | a,
|  |  | b
| ) |  | (((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.