CMSIS2000  0.0.7
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
OLD Sources from NXP
Collaboration diagram for OLD Sources from NXP:

Modules

 APB(ARM Peripheral Bus) peripheries registers addresses

Files

file  lpc2xxx_old.h
 APB(ARM Peripheral Bus) peripheries registers addresses.
file  reg_macros.h
 For NXP reg macros.

Macros

#define REG16   volatile unsigned short
#define REG32   volatile unsigned int
#define REG8   volatile unsigned char
#define REG_16   REG_16
#define REG_32   REG_32
#define REG_8   REG8
#define VBP_REG(APB_peripheral, reg_name)   (VBP_REG_PER_BASE_ADDRES(APB_peripheral) + reg_name##_Off)
#define VBP_REG16(APB_peripheral, reg_name)   (*(REG16*) (VBP_REG_PER_BASE_ADDRES(APB_peripheral) + reg_name##_Off))
#define VBP_REG32(APB_peripheral, reg_name)   (*(REG32*) (VBP_REG_PER_BASE_ADDRES(APB_peripheral) + reg_name##_Off))
#define VBP_REG8(APB_peripheral, reg_name)   (*(REG8*) (VBP_REG_PER_BASE_ADDRES(APB_peripheral) + reg_name##_Off))
#define VBP_REG_PER_BASE_ADDRES(peripheral)   LPC_##peripheral##_BASE

Detailed Description

Macro Definition Documentation

#define REG16   volatile unsigned short

Definition at line 52 of file reg_macros.h.

#define REG32   volatile unsigned int

Definition at line 53 of file reg_macros.h.

#define REG8   volatile unsigned char

Definition at line 51 of file reg_macros.h.

#define REG_16   REG_16

Definition at line 56 of file reg_macros.h.

#define REG_32   REG_32

Definition at line 57 of file reg_macros.h.

#define REG_8   REG8

Definition at line 55 of file reg_macros.h.

#define VBP_REG (   APB_peripheral,
  reg_name 
)    (VBP_REG_PER_BASE_ADDRES(APB_peripheral) + reg_name##_Off)

Definition at line 61 of file reg_macros.h.

#define VBP_REG16 (   APB_peripheral,
  reg_name 
)    (*(REG16*) (VBP_REG_PER_BASE_ADDRES(APB_peripheral) + reg_name##_Off))

Definition at line 65 of file reg_macros.h.

#define VBP_REG32 (   APB_peripheral,
  reg_name 
)    (*(REG32*) (VBP_REG_PER_BASE_ADDRES(APB_peripheral) + reg_name##_Off))

Definition at line 67 of file reg_macros.h.

#define VBP_REG8 (   APB_peripheral,
  reg_name 
)    (*(REG8*) (VBP_REG_PER_BASE_ADDRES(APB_peripheral) + reg_name##_Off))

Definition at line 63 of file reg_macros.h.

#define VBP_REG_PER_BASE_ADDRES (   peripheral)    LPC_##peripheral##_BASE

Definition at line 59 of file reg_macros.h.