;----------------------------------------------
; Register Declarations for the ST7FOXF1
; Copyright (c) Raisonance SA, 1987-2008
;----------------------------------------------

; IO Ports Hardware Registers
; Port A Registers
PADR EQU 000h             ; PORT A data register
PADDR EQU 001h            ; Data direction register
PAOR EQU 002h             ; PORT A option register
; Port B Registers
PBDR EQU 003h             ; PORT B data register
PBDDR EQU 004h            ; Data direction register
PBOR EQU 005h             ; PORT B option register
; Port C Registers
PCDR EQU 006h             ; PORT C data register
PCDDR EQU 007h            ; Data direction register
PCOR EQU 008h             ; PORT C option register

; LITE TIMER 2 HARDWARE REGISTERS
LTCSR2 EQU 00Ch           ; Control and stats register2
LTARR EQU 00Dh            ; Auto-Reload Register
LTCNTR EQU 00Eh           ; Counter Register
LTCSR1 EQU 00Fh           ; Control and stats register 1
LTICR EQU 010h            ; Input capture register

; LART HARDWARE REGISTERS
ATCSR EQU 011h            ; Control/Status Register
CNTR EQU 012h           ; Counter Register 1
CNTR1H EQU 012h           ; Counter Register 1 High
CNTR1L EQU 013h           ; Counter Register 1 Low
ATR1 EQU 014h           ; Autoreload Register 1
ATR1H EQU 014h            ; Autoreload Register 1 High
ATR1L EQU 015h            ; Autoreload Register1 Low
PWMCR EQU 016h            ; PWM Output control Reg
PWM0CSR EQU 017h          ; PWM0 Output control/Status
PWM1CSR EQU 018h          ; PWM1 Output control/Status
PWM2CSR EQU 019h          ; PWM2 Output control/Status
PWM3CSR EQU 01Ah          ; PWM3 Output control/Status
DCR0 EQU 01Bh           ; PWM0 Duty Cycle Register
DCR0H EQU 01Bh            ; PWM0 Duty Cycle HRegister
DCR0L EQU 01Ch            ; PWM Duty Cycle LRegister
DCR1 EQU 01Dh           ; PWM1 Duty Cycle Register
DCR1H EQU 01Dh            ; PWM 1 Duty Cycle HRegister
DCR1L EQU 01Eh            ; PWM 1 Duty Cycle LRegister
DCR2 EQU 01Fh           ; PWM2 Duty Cycle Register
DCR2H EQU 01Fh            ; PWM 2 Duty Cycle HRegister
DCR2L EQU 020h            ; PWM 2 Duty Cycle LRegister
DCR3 EQU 021h           ; PWM3 Duty Cycle Register
DCR3H EQU 021h            ; PWM 3 Duty Cycle HRegister
DCR3L EQU 022h            ; PWM 3 Duty Cycle LRegister
ATICR EQU 023h          ; Input Capture Register
ATICRH EQU 023h           ; Input Capture Register High
ATICRL EQU 024h           ; Input Capture Register Low
ATCSR2 EQU 025h           ; Timer Control Register 2
BREAKCR EQU 026h          ; Break Control Register
ATR2 EQU 027h           ; Autoreload Register
ATR2H EQU 027h            ; Auto-Reload Register 2 High
ATR2L EQU 028h            ; Auto-Reload Register 2 Low
DTGR EQU 029h             ; Dead Time Generator Register
BREAKEN EQU 02Ah          ; Break Enable Register

; Interrupt Software Priority
ITSPR0 EQU 02Dh           ; Interrupt Software Priority Register 0
ITSPR1 EQU 02Eh           ; Interrupt Software Priority Register 1
ITSPR2 EQU 02Fh           ; Interrupt Software Priority Register 2
ITSPR3 EQU 030h           ; Interrupt Software Priority Register 3
EICR EQU 031h             ; External Interrupt Control Register

; Watchdog Hardware registers
WDGCR EQU 033h            ; Watchdog Control Register

; FLASH Hardware Register
FCSR EQU 034h             ; Flash Control/Status Register

; EEPROM Hardware Registers
EECSR EQU 035h            ; EEPROM Control/Stats Register

; ADC HARDWARE REGISTERS
ADCCSR EQU 036h           ; ADC control & stats register
ADCDRH EQU 037h           ; Data Register High
ADCDRL EQU 038h           ; Data Register Low

; MCC HARDWARE REGISTERS
MCCSR EQU 03Ah            ; MCC Control/Status Register

; CLK HARDWARE REGISTERS
RCCR EQU 03Bh             ; RC Oscillator Control Register
SICSR EQU 03Ch            ; System Integrity Control/Status register

; AVD
AVDTHCR EQU 03Dh          ; AVD Threshold Selection Register / RC prescaler

; AWU HARDWARE REGISTERS
AWUCSR EQU 048h           ; AWU Control/Status Register
AWUPR EQU 049h            ; AWU Prscaler Register

; DM HARDWARE REGISTERS
DMCR EQU 04Ah             ; DM Control Register
DMSR EQU 04Bh             ; DM Status Register
DMBK1H EQU 04Ch           ; DM Breakpoint register1 High
DMBK1L EQU 04Dh           ; DM Breakpoint register1 Low
DMBK2H EQU 04Eh           ; DM Breakpoint register2 High
DMBK2L EQU 04Fh           ; DM Breakpoint register 2 Low
DMCR2 EQU 050h            ; DM Control Register 2

; Clock Controller
CKCNTCSR EQU 051h         ; Clock Controller Status Register

; I2C
I2CCR EQU 064h            ; I2C Control Register
I2CSR1 EQU 065h           ; I2C Status Register 1
I2CSR2 EQU 066h           ; I2C Status Register 2
I2CCCR EQU 067h           ; I2C Clock Control Register
I2COAR1 EQU 068h          ; I2C Own Address Register 1
I2COAR2 EQU 069h          ; I2C Own Address Register 2
I2CDR EQU 06Ah            ; I2C Data Register
