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

********************************Revision History********************************
_______________________________________________________________________________
Date :23/09/2003           Release:2.0
      17/05/2004           Release:2.1
                           1. Added address information with all registers, 
                              segment information removed from .prm file
                           2. Removed #pragma  
Date :2/06/2004            1.Address information added for metrowerks registers
____________________________________________________________________________  */

#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;       /* PORT A 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;       /* PORT B data direction register */
volatile unsigned char PBOR    @0x05;               /* PORT B option register */

/* LITE TIMER 2 HARDWARE REGISTERS */
volatile unsigned char LTCSR2  @0x08;          /* Control and stats register 2*/
volatile unsigned char LTARR   @0x09;                 /* Auto-Reload Register */
volatile unsigned char LTCNTR  @0x0A;                     /* Counter Register */
volatile unsigned char LTCSR1  @0x0B;          /* Control and stats register 1*/
volatile unsigned char LTICR   @0x0C;               /* Input capture register */
    
/* LART HARDWARE REGISTERS */
volatile unsigned char ATCSR   @0x0D;            /* Control/Status Register   */
volatile unsigned char CNTRH   @0x0E;                /* Counter high Register */
volatile unsigned char CNTRL   @0x0F;                 /* Counter low Register */
volatile unsigned char ATRH    @0x10;            /* Autoreload high Register  */
volatile unsigned char ATRL    @0x11;            /* Autoreload low Register   */
volatile unsigned char PWMCR   @0x12;              /* PWM Output control Reg  */
volatile unsigned char PWM0CSR @0x13;          /* PWM 0 Output control/Status */ 
volatile unsigned char PWM1CSR @0x14;          /* PWM 1 Output control/Status */
volatile unsigned char PWM2CSR @0x15;          /* PWM 2 Output control/Status */
volatile unsigned char PWM3CSR @0x16;          /* PWM 3 Output control/Status */
volatile unsigned char DCR0H   @0x17;          /* PWM 0 Duty Cycle HRegister  */
volatile unsigned char DCR0L   @0x18;            /* PWM Duty Cycle LRegister  */
volatile unsigned char DCR1H   @0x19;          /* PWM 1 Duty Cycle HRegister  */
volatile unsigned char DCR1L   @0x1A;          /* PWM 1 Duty Cycle LRegister  */
volatile unsigned char DCR2H   @0x1B;          /* PWM 2 Duty Cycle HRegister  */ 
volatile unsigned char DCR2L   @0x1C;          /* PWM 2 Duty Cycle LRegister  */
volatile unsigned char DCR3H   @0x1D;          /* PWM 3 Duty Cycle HRegister  */ 
volatile unsigned char DCR3L   @0x1E;          /* PWM 3 Duty Cycle LRegister  */ 
volatile unsigned char ATICRH  @0x1F;           /* Input Capture Register High*/
volatile unsigned char ATICRL  @0x20;            /* Input Capture Register Low*/
volatile unsigned char TRANCR  @0x21;            /* Transfer Control Register */
volatile unsigned char BREAKCR @0x22;               /* Break Control Register */

/* 12 bit Registers for LART */
volatile unsigned int CNTR     @0x0E;                     /* Counter Register */
volatile unsigned int ATR      @0x10;                  /* Autoreload Register */
volatile unsigned int DCR0     @0x17;                /* Duty Cycle Register 0 */
volatile unsigned int DCR1     @0x19;                /* Duty Cycle Register 1 */
volatile unsigned int DCR2     @0x1B;                /* Duty Cycle register 2 */
volatile unsigned int DCR3     @0x1D;                /* Duty Cycle Register 3 */
volatile unsigned int ATICR    @0x1F;               /* Input Capture Register */
    
/* Watchdog Hardware registers */
volatile unsigned char WDGCR   @0x2E;            /* Watchdog Control Register */

/* FLASH Hardware Register*/
volatile unsigned char FCSR    @0x2F;              /* Control/Status Register */

/* EEPROM Hardware Registers */  
volatile unsigned char EECSR   @0x30;   /* Data EEPROM Control/Status Register*/

/* SPI HARDWARE REGISTERS */
volatile unsigned char SPIDR   @0x31;                   /* SPI Data register  */
volatile unsigned char SPICR   @0x32;                /* SPI Control register  */
volatile unsigned char SPICSR  @0x33;                 /* SPI Status register  */
     
/* ADC HARDWARE REGISTERS */
volatile unsigned char ADCCSR  @0x34;        /* ADC control & status register */
volatile unsigned char ADCDRH  @0x35;                   /* Data Register High */
volatile unsigned char ADCDRL  @0x36;                    /* Data Register Low */
    
/* ITC HARDWARE RREGISTERS */
volatile unsigned char EICR    @0x37;           /*external Interrupt Register */ 

/* MCC HARDWARE REGISTERS */
volatile unsigned char MCCSR   @0x38;           /* MCC Control/Status Register*/
    
/* CLK HARDWARE REGISTERS */
volatile unsigned char RCCR    @0x39;        /* RC Oscillator Control Register*/
volatile unsigned char SICSR   @0x3A;
                                    /*System Integrity Control/Status register*/
    
/* ITC HARDWARE REGISTERS */
volatile unsigned char EISR    @0x3C;  /*external Interrupt Selection Register*/
        
/* AWU HARDWARE REGISTERS */
volatile unsigned char AWUPR   @0x49;                /* AWU Prscaler Register */
volatile unsigned char AWUCSR  @0x4A;          /* AWU Control/Status Register */

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

#endif /* _HIWARE_ */

