//----------------------------------------------
// Register Declarations for the ST7FOXK2
// Copyright (c) Raisonance SA, 1987-2008
//----------------------------------------------

/* IO Ports Hardware Registers */
/* Port A Registers */
at 0x00 hreg PADR ;             /* PORT A data register */ 
at 0x01 hreg PADDR ;           /*Data direction register*/
at 0x02 hreg PAOR ;           /* PORT A option register */
/* Port B Registers */
at 0x03 hreg PBDR ;             /* PORT B data register */          
at 0x04 hreg PBDDR ;          /*Data direction register */
at 0x05 hreg PBOR ;           /* PORT B option register */
/* Port C Registers */
at 0x06 hreg PCDR ;             /* PORT C data register */          
at 0x07 hreg PCDDR ;          /*Data direction register */
at 0x08 hreg PCOR ;           /* PORT C option register */

/* LITE TIMER 2 HARDWARE REGISTERS */
at 0x0C hreg LTCSR2 ;      /*Control and stats register2*/ 
at 0x0D hreg LTARR ;            /* Auto-Reload Register */
at 0x0E hreg LTCNTR ;               /* Counter Register */
at 0x0F hreg LTCSR1 ;     /*Control and stats register 1*/
at 0x10 hreg LTICR ;          /* Input capture register */
    
    
/* LART HARDWARE REGISTERS */
at 0x11 hreg ATCSR ;       /* Control/Status Register   */
at 0x12 hreg16 CNTR   ;       /* Counter Register 1        */
at 0x12 hreg CNTR1H ;       /* Counter Register 1 High  */
at 0x13 hreg CNTR1L ;       /* Counter Register 1 Low   */
at 0x14 hreg16 ATR1    ;       /* Autoreload Register 1    */
at 0x14 hreg ATR1H ;       /* Autoreload Register 1 High*/
at 0x15 hreg ATR1L ;        /* Autoreload Register1 Low */
at 0x16 hreg PWMCR ;       /* PWM Output control Reg    */
at 0x17 hreg PWM0CSR ;      /*PWM0 Output control/Status*/ 
at 0x18 hreg PWM1CSR ;      /*PWM1 Output control/Status*/
at 0x19 hreg PWM2CSR ;      /*PWM2 Output control/Status*/
at 0x1A hreg PWM3CSR ;      /*PWM3 Output control/Status*/
at 0x1B hreg16 DCR0   ;       /*PWM0 Duty Cycle Register   */
at 0x1B hreg DCR0H ;       /*PWM0 Duty Cycle HRegister  */
at 0x1C hreg DCR0L ;       /* PWM Duty Cycle LRegister  */
at 0x1D hreg16 DCR1   ;       /*PWM1 Duty Cycle Register   */    
at 0x1D hreg DCR1H ;      /*PWM 1 Duty Cycle HRegister  */
at 0x1E hreg DCR1L ;      /*PWM 1 Duty Cycle LRegister  */
at 0x1F hreg16 DCR2   ;       /*PWM2 Duty Cycle Register   */
at 0x1F hreg DCR2H ;      /*PWM 2 Duty Cycle HRegister  */ 
at 0x20 hreg DCR2L ;      /*PWM 2 Duty Cycle LRegister  */
at 0x21 hreg16 DCR3   ;       /*PWM3 Duty Cycle Register   */
at 0x21 hreg DCR3H ;      /*PWM 3 Duty Cycle HRegister  */ 
at 0x22 hreg DCR3L ;      /*PWM 3 Duty Cycle LRegister  */ 
at 0x23 hreg16 ATICR ;        /*Input Capture Register     */
at 0x23 hreg ATICRH ;      /*Input Capture Register High*/
at 0x24 hreg ATICRL ;       /*Input Capture Register Low*/
at 0x25 hreg ATCSR2 ;      /* Timer Control Register 2  */
at 0x26 hreg BREAKCR ;        /* Break Control Register */
at 0x27 hreg16 ATR2   ;       /*Autoreload Register        */
at 0x27 hreg ATR2H ;      /* Auto-Reload Register 2 High*/
at 0x28 hreg ATR2L ;      /* Auto-Reload Register 2 Low */
at 0x29 hreg DTGR ;       /*Dead Time Generator Register*/
at 0x2A hreg BREAKEN;     /*Break Enable Register*/

/* Interrupt Software Priority */
at 0x2D hreg ITSPR0;      /* Interrupt Software Priority Register 0*/
at 0x2E hreg ITSPR1;      /* Interrupt Software Priority Register 1*/
at 0x2F hreg ITSPR2;      /* Interrupt Software Priority Register 2*/
at 0x30 hreg ITSPR3;      /* Interrupt Software Priority Register 3*/
at 0x31 hreg EICR;      /* External Interrupt Control Register */
        
/* Watchdog Hardware registers */
at 0x33 hreg WDGCR ;       /* Watchdog Control Register */

/* FLASH Hardware Register */
at 0x34 hreg FCSR ;     /* Flash Control/Status Register*/
    
/* ADC HARDWARE REGISTERS */
at 0x36 hreg ADCCSR ;    /*ADC control & stats register*/
at 0x37 hreg ADCDRH ;     /* Data Register High        */
at 0x38 hreg ADCDRL ;     /* Data Register Low         */

/* MCC HARDWARE REGISTERS */
at 0x3A hreg MCCSR ;     /* MCC Control/Status Register */
    
/* CLK HARDWARE REGISTERS */
at 0x3B hreg RCCRH ;     /*RC oscillator Control register High*/
at 0x3C hreg RCCRL ;     /*RC oscillator Control register Low*/    
at 0x3D hreg PSCR ;      /*Prescaler register*/
           
/* AWU HARDWARE REGISTERS */    
at 0x48 hreg AWUCSR ;     /*AWU Control/Status Register */
at 0x49 hreg AWUPR ;           /* AWU Prescaler Register */

/* DM HARDWARE REGISTERS */
at 0x4A hreg DMCR ;              /* DM Control Register */
at 0x4B hreg DMSR ;               /* DM Status Register */
at 0x4C hreg DMBK1H ;     /*DM Breakpoint register1 High*/
at 0x4D hreg DMBK1L ;      /*DM Breakpoint register1 Low*/
at 0x4E hreg DMBK2H ;     /*DM Breakpoint register2 High*/          
at 0x4F hreg DMBK2L ;     /*DM Breakpoint register 2 Low*/
at 0x50 hreg DMCR2 ;              /* DM Control Register 2 */
        
/* Clock Controller */
at 0x51 hreg CKCNTCSR;        /* Clock Controller Status Register */

/* Timer A */
at 0x55 hreg TACR2;      /* Timer A Control register 2*/
at 0x56 hreg TACR1;      /* Timer A Control register 1*/
at 0x57 hreg TACSR;      /* Timer A Control/status register*/
at 0x58 hreg TAICHR1;    /* Timer A Input capture 1 high register*/
at 0x59 hreg TAICLR1;    /* Timer A Input capture 1 low register*/
at 0x5A hreg TAOCHR1;    /* Timer A Output compare 1 high register*/
at 0x5B hreg TAOCLR1;    /* Timer A Output compare 1 low register*/
at 0x5C hreg TACHR;      /* Timer A Output counter high register*/
at 0x5D hreg TACLR;      /* Timer A Output counter low register*/
at 0x5E hreg TAACHR;     /* Timer A Alternate counter high register*/
at 0x5F hreg TAACLR;     /* Timer A Alternate counter low register*/
at 0x60 hreg TAICHR2;    /* Timer A Input capture 2 high register*/
at 0x61 hreg TAICLR2;    /* Timer A Input capture 2 low register*/
at 0x62 hreg TAOCHR2;    /* Timer A Output compare 2 high register*/
at 0x63 hreg TAOCLR2;    /* Timer A Output compare 2 low register*/

/* I2C */
at 0x64 hreg I2CCR;      /* I2C Control Register*/
at 0x65 hreg I2CSR1;     /* I2C Status Register 1*/
at 0x66 hreg I2CSR2;     /* I2C Status Register 2*/
at 0x67 hreg I2CCCR;     /* I2C Clock Control Register*/
at 0x68 hreg I2COAR1;    /* I2C Own Address Register 1*/
at 0x69 hreg I2COAR2;    /* I2C Own Address Register 2*/
at 0x6A hreg I2CDR;      /* I2C Data Register*/

/* SPI */
at 0x70 hreg SPIDR;      /* SPI Data Register */
at 0x71 hreg SPICR;      /* SPI Control Register */
at 0x72 hreg SPISR;      /* SPI Status Register */
