/*******************************************************************************
COPYRIGHT 2003 STMicroelectronics
Source File Name : st72superlite_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
 st72superlite.

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


/******************************************************************************/
/* Device File for st7superlite comprising of hr.c for all the peripherals      */

/*****************************************************************************/
#include "St7lib_config.h"
#ifdef _HIWARE_

/* IO Ports Hardware 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 */  
                                                     
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 */
 
/* LT registers for st7superlite */
volatile unsigned char LTCSR   @0x0B;           /* Control and stats register */
volatile unsigned char LTICR   @0x0C;               /* Input capture register */

/* LART registers for st7superlite                                                */
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 Output control/Status */
volatile unsigned char DCR0H   @0x17;            /* PWM Duty Cycle HRegister  */
volatile unsigned char DCR0L   @0x18;            /* PWM Duty Cycle LRegister  */

/* 12 bit registers for LART                                                  */
volatile unsigned int  CNTR    @0x0E;                /* Counter Register      */
volatile unsigned int  ATR     @0x10;                /* Autoreload Register   */
volatile unsigned int  DCR0    @0x17;            /* PWM Duty Cycle Register   */

/* FLASH Hardware Registers */
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 registers for st7superlite                                                  */ 
volatile unsigned char ADCCSR  @0x34;              /* Control/Status Register */        
volatile unsigned char ADCDR   @0x35;               /* Data Register          */       
volatile unsigned char ADCAMP  @0x36;           /* Amplifier Control Register */    

/*Interrupt registers                                                         */
volatile unsigned char EICR    @0x37;           /*External Interrupt Register */ 

/* MCC Hardware Registers */  
volatile unsigned char MCCSR   @0x38;          /* MCC Control/Status Register */
volatile unsigned char RCCR    @0x39;       /* RC Oscillator Control Register */
volatile unsigned char SICSR   @0x3A;  /* System Integrity Control/Status reg */                                                                                                                                                       
#endif /* _HIWARE_ */

/******************************************************************************/
/******************************************************************************/


/****************************** END OF FILE ***********************************/









