/*******************************************************************************
COPYRIGHT 2003 STMicroelectronics
Source File Name : st72LITE49M_reg.c
Group            : IPSW,CMG - IPDF
Author           : MCD Application Team
Date First Issued: 23/04/2007
********************************Documentation***********************************
General Purpose - This file contains all the hardware c files for peripherals of
 st72LITE49M.

********************************Revision History********************************
_______________________________________________________________________________
Date :23/04/2007           Creation 
____________________________________________________________________________  */

#include "ST7lib_config.h"
#ifdef _HIWARE_

/* IO Ports Hardware Registers */

/* Port A Registers */
volatile unsigned char PADR @0x00;            /* PORT A data register */ 
volatile unsigned char PADDR @0x01;          /*Data direction register*/
volatile unsigned char PAOR @0x02;          /* PORT A option register */

/* Port B Registers */
volatile unsigned char PBDR @0x03;            /* PORT B data register */          
volatile unsigned char PBDDR @0x04;         /*Data direction register */
volatile unsigned char PBOR @0x05;          /* PORT B option register */

/* Port C Registers */
volatile unsigned char PCDR @0x06;            /* PORT C data register */          
volatile unsigned char PCDDR @0x07;         /*Data direction register */
volatile unsigned char PCOR @0x08;          /* PORT C option register */

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

/* Interrupt Software Priority */
volatile unsigned char ITSPR0 @0x2D;      /* Interrupt Software Priority Register 0*/
volatile unsigned char ITSPR1 @0x2E;      /* Interrupt Software Priority Register 1*/
volatile unsigned char ITSPR2 @0x2F;      /* Interrupt Software Priority Register 2*/
volatile unsigned char ITSPR3 @0x30;      /* Interrupt Software Priority Register 3*/
volatile unsigned char EICR @0x31;      /* External Interrupt Control Register */

          
/* Watchdog Hardware registers */
volatile unsigned char WDGCR @0x33;      /* Watchdog Control Register */

/* FLASH Hardware Register */
volatile unsigned char FCSR @0x34;    /* Flash Control/Status Register*/
    
/* EEPROM Hardware Registers */  
volatile unsigned char EECSR @0x35;    /*EEPROM Control/Stats Register*/
    
/* ADC HARDWARE REGISTERS */
volatile unsigned char ADCCSR @0x36;    /*ADC control & stats register*/
volatile unsigned char ADCDRH @0x37;     /* Data Register High        */
volatile unsigned char ADCDRL @0x38;     /* Data Register Low         */
    
/* MCC HARDWARE REGISTERS */
volatile unsigned char MCCSR @0x3A;    /* MCC Control/Status Register */
   
/* CLK HARDWARE REGISTERS */
volatile unsigned char RCCR @0x3B;    /*RC Oscillator Control Register*/
volatile unsigned char SICSR @0x3C;   /*System Integrity Control/Status register*/

/* AVD */
volatile unsigned char AVDTHCR @0x3D;    /*AVD Threshold Selection Register / RC prescaler*/
           
/* AWU HARDWARE REGISTERS */    
volatile unsigned char AWUCSR @0x48;    /*AWU Control/Status Register */
volatile unsigned char AWUPR @0x49;          /* AWU Prscaler Register */

/* DM HARDWARE REGISTERS */
volatile unsigned char DMCR @0x4A;             /* DM Control Register */
volatile unsigned char DMSR @0x4B;              /* DM Status Register */
volatile unsigned char DMBK1H @0x4C;    /*DM Breakpoint register1 High*/
volatile unsigned char DMBK1L @0x4D;     /*DM Breakpoint register1 Low*/
volatile unsigned char DMBK2H @0x4E;    /*DM Breakpoint register2 High*/          
volatile unsigned char DMBK2L @0x4F;    /*DM Breakpoint register 2 Low*/
volatile unsigned char DMCR2 @0x50;             /* DM Control Register 2 */

/* Clock Controller */
volatile unsigned char CKCNTCSR @0x51;        /* Clock Controller Status Register */

/* I2C */
volatile unsigned char I2CCR   @0x64;             /* I2C Control Register*/
volatile unsigned char I2CSR1  @0x65;             /* I2C Status Register 1*/
volatile unsigned char I2CSR2  @0x66;             /* I2C Status Register 2*/
volatile unsigned char I2CCCR  @0x67;             /* I2C Clock Control Register*/
volatile unsigned char I2COAR1 @0x68;             /* I2C Own Address Register 1*/
volatile unsigned char I2COAR2 @0x69;             /* I2C Own Address Register 2*/
volatile unsigned char I2CDR   @0x6A;             /* I2C Data Register*/
   
#endif /* _HIWARE_ */

