;Register definition for NXP LPC1768
;===================================
;
; name: user defined name of the register
; type: the type of the register
;	GPR	general purpose register
;	MM	memory mapped register
;	DMMx	direct memory mapped register with offset
;		x = 1..4
;		the base is defined in the configuration file
;		e.g. DMM1 0x02200000
; addr:	the number, adddress or offset of the register
; size	the size of the register (8,16 or 32)
;
;
;name		type	addr		size
;-------------------------------------------
;
sp_main         GPR     17              32      ;Main Stackpointer
sp_process      GPR     18              32      ;Process Stackpointer
ctr_fm_bp_pm    GPR     20              32      ;Control,FaultMask,BasePri,PriMask
;
; Core debug registres
dhcsr           MM      0xE000EDF0      32      ;Debugging Halting Control and Status
dcrsr           MM      0xE000EDF4      32      ;Debug Core Register Selector
dcrdr           MM      0xE000EDF8      32      ;Debug Core Register Data
demcr           MM      0xE000EDFC      32      ;Debug Core Register Selector
dfsr            MM      0xE000ED30      32      ;Debug Fault Status
;
; System debug registres
fp_ctrl         MM      0xE0002000      32      ;Flash Patch Control
fp_remap        MM      0xE0002004      32      ;Flash Patch Remap
fp_comp0        MM      0xE0002008      32      ;Flash Patch Comparator
fp_comp1        MM      0xE000200C      32      ;Flash Patch Comparator
fp_comp2        MM      0xE0002010      32      ;Flash Patch Comparator
fp_comp3        MM      0xE0002014      32      ;Flash Patch Comparator
fp_comp4        MM      0xE0002018      32      ;Flash Patch Comparator
fp_comp5        MM      0xE000201C      32      ;Flash Patch Comparator
fp_comp6        MM      0xE0002020      32      ;Flash Patch Comparator
fp_comp7        MM      0xE0002024      32      ;Flash Patch Comparator
;
dwt_ctrl        MM      0xE0001000      32      ;DWT Control
dwt_cyccnt      MM      0xE0001004      32      ;DWT Current PC Sampler Count
dwt_cpicnt      MM      0xE0001008      32      ;DWT Current CPI Count
dwt_exccnt      MM      0xE000100C      32      ;DWT Current Interrupt Overhead Count
dwt_sleepcnt    MM      0xE0001010      32      ;DWT Current Sleep Count
dwt_lsucnt      MM      0xE0001014      32      ;DWT Current LSU Count
dwt_foldcnt     MM      0xE0001018      32      ;DWT Current Fold Count
dwt_pcsr        MM      0xE000101C      32      ;DWT PC Sample
dwt_comp0       MM      0xE0001020      32      ;DWT Comparator
dwt_mask0       MM      0xE0001024      32      ;DWT Mask
dwt_function0   MM      0xE0001028      32      ;DWT Function
dwt_comp1       MM      0xE0001030      32      ;DWT Comparator
dwt_mask1       MM      0xE0001034      32      ;DWT Mask
dwt_function1   MM      0xE0001038      32      ;DWT Function
dwt_comp2       MM      0xE0001040      32      ;DWT Comparator
dwt_mask2       MM      0xE0001044      32      ;DWT Mask
dwt_function2   MM      0xE0001048      32      ;DWT Function
dwt_comp3       MM      0xE0001050      32      ;DWT Comparator
dwt_mask3       MM      0xE0001054      32      ;DWT Mask
dwt_function3   MM      0xE0001058      32      ;DWT Function
;
swo1            MM      0xE0000000      8       ;ITM 1 Byte Stimulus 0
swo2            MM      0xE0000000      16      ;ITM 2 Byte Stimulus 0
swo4            MM      0xE0000000      32      ;ITM 4 Byte Stimulus 0
itm_stimulus0   MM      0xE0000000      32      ;ITM Stimulus Ports 0-31
itm_stimulus1   MM      0xE0000004      32
itm_stimulus2   MM      0xE0000008      32
itm_stimulus3   MM      0xE000000C      32
itm_stimulus4   MM      0xE0000010      32
itm_stimulus5   MM      0xE0000014      32
itm_stimulus6   MM      0xE0000018      32
itm_stimulus7   MM      0xE000001C      32
itm_stimulus8   MM      0xE0000020      32
itm_stimulus9   MM      0xE0000024      32
itm_stimulus10  MM      0xE0000028      32
itm_stimulus11  MM      0xE000002C      32
itm_stimulus12  MM      0xE0000030      32
itm_stimulus13  MM      0xE0000034      32
itm_stimulus14  MM      0xE0000038      32
itm_stimulus15  MM      0xE000003C      32
itm_stimulus16  MM      0xE0000040      32
itm_stimulus17  MM      0xE0000044      32
itm_stimulus18  MM      0xE0000048      32
itm_stimulus19  MM      0xE000004C      32
itm_stimulus20  MM      0xE0000050      32
itm_stimulus21  MM      0xE0000054      32
itm_stimulus22  MM      0xE0000058      32
itm_stimulus23  MM      0xE000005C      32
itm_stimulus24  MM      0xE0000060      32
itm_stimulus25  MM      0xE0000064      32
itm_stimulus26  MM      0xE0000068      32
itm_stimulus27  MM      0xE000006C      32
itm_stimulus28  MM      0xE0000070      32
itm_stimulus29  MM      0xE0000074      32
itm_stimulus30  MM      0xE0000078      32
itm_stimulus31  MM      0xE000007C      32
itm_trace_ena   MM      0xE0000E00      32      ;ITM Trace Enable
itm_trace_priv  MM      0xE0000E40      32      ;ITM Trace Privilege
itm_trace_ctrl  MM      0xE0000E80      32      ;ITM Trace Control
itm_lock_access MM      0xE0000FB0      32      ;ITM Lock Access
itm_lock_status MM      0xE0000FB4      32      ;ITM Lock Status
;
tpiu_size_supp  MM      0xE0040000      32      ;TPIU Supported Sync Port Sizes
tpiu_size_curr  MM      0xE0040004      32      ;TPIU Current Sync Port Size
tpiu_prescaler  MM      0xE0040010      32      ;TPIU Async Clock Prescaler
tpiu_protocol   MM      0xE00400F0      32      ;TPIU Selected Pin Protocol
tpiu_ff_status  MM      0xE0040300      32      ;TPIU Formatter and Flush Status
tpiu_ff_control MM      0xE0040304      32      ;TPIU Formatter and Flush Control
;
;
; System control
memmap          MM      0x400FC040
extint          MM      0x400FC140
extmode         MM      0x400FC148
extpolar        MM      0x400FC14C
rsid            MM      0x400FC180
scs             MM      0x400FC1A0
;
; Clocking and power control
clksrcsel       MM      0x400FC10C
pll0con         MM      0x400FC080
pll0cfg         MM      0x400FC084
pll0stat        MM      0x400FC088
pll0feed        MM      0x400FC08C
pll1con         MM      0x400FC0A0
pll1cfg         MM      0x400FC0A4
pll1stat        MM      0x400FC0A8
pll1feed        MM      0x400FC0AC
cclkcfg         MM      0x400FC104
usbclkcfg       MM      0x400FC108
pclksel0        MM      0x400FC1A8
pclksel1        MM      0x400FC1AC
pcon            MM      0x400FC0C0
pconp           MM      0x400FC0C4
clkoutcfg       MM      0x400FC1C8
;
; Flash accelerator
flashcfg        MM      0x400FC000
;
;

