/******************************************************************************
COPYRIGHT 2003 STMicroelectronics
Source File Name : st72f264_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 registers of ST72F264

********************************Revision History*******************************
_______________________________________________________________________________
Date :23/09/2003           Release:2.0
Date :2/06/2004            1.Address information added for metrowerks registers
                           2.remove #pragma  
______________________________________________________________________________

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

#include "ST7lib_config.h"

/********************************
 Peripherals Registers Definition
********************************/                                                                                                        
#ifdef _HIWARE_                                                                  

/* IO Ports Hardware Registers                                               */  

/* PORT C register                                                           */
 volatile unsigned char PCDR    @0x00;	     /* PORT C data Register         */
 volatile unsigned char PCDDR   @0x01;      /* Data direction register       */
 volatile unsigned char PCOR    @0x02;	          /* Option register         */

/* PORT B register                                                           */
 volatile unsigned char PBDR    @0x04;	     /* PORT B data Register         */
 volatile unsigned char PBDDR   @0x05;      /* Data direction register       */
 volatile unsigned char PBOR    @0x06;	          /* Option register         */

/* PORT A register                                                           */
 volatile unsigned char PADR    @0x08;	     /* PORT A data Register         */
 volatile unsigned char PADDR   @0x09;      /* Data direction register       */
 volatile unsigned char PAOR    @0x0A;	          /* Option register         */

/*ITC Hardware registers                                                     */

 volatile unsigned char ITSPR0 @0x1C;  
                                      /*Interrupt Software Priority Register0*/
 volatile unsigned char ITSPR1 @0x1D;         
                                      /*Interrupt Software Priority Register1*/ 
 volatile unsigned char ITSPR2 @0x1E;        
                                      /*Interrupt Software Priority Register2*/ 
 volatile unsigned char ITSPR3 @0x1F;        
                                      /*Interrupt Software Priority Register3*/ 
/* Miscellanous register 1                                                   */
 volatile unsigned char MISCR1 @0x20;        
                                        /*External Interrupt Control Register*/ 

/* SPI Hardware Registers                                                    */
 volatile unsigned char SPIDR   @0x21;            /* SPI Data Register       */
 volatile unsigned char SPICR   @0x22;         /* SPI Control Register       */
 volatile unsigned char SPICSR  @0x23;          /* SPI Status Register       */ 

/* WDG Hardware registers                                                    */ 
 volatile unsigned char WDGCR   @0x24;	/* WDG Control Register              */   
 volatile unsigned char SICSR   @0x25;	/* System Control Register           */   

/* MCC register                                                              */
 volatile unsigned char MCC_WDG  @0x26;      

/* MCC Hardware Registers                                                    */
 volatile unsigned char MCCSR   @0x26;/* MCC Control/Status Register       */

/* I2C Hardware Registers                                                    */ 

 volatile unsigned char I2CCR     @0x28;       /* I2C control register       */
 volatile unsigned char I2CSR1    @0x29;       /* I2C status register1       */
 volatile unsigned char I2CSR2    @0x2A;       /* I2C status register2       */
 volatile unsigned char I2CCCR    @0x2B; /* I2C clock control register       */
 volatile unsigned char I2COAR1   @0x2C;  /* I2C own address register1       */
 volatile unsigned char I2COAR2   @0x2D;  /* I2C own address register2       */ 
 volatile unsigned char I2CDR     @0x2E;          /* I2C data register       */

/* Timer Hardware Registers                                                  */
/* TIMER A section                                                           */ 
 volatile unsigned char TACR2   @0x31;	/* Control Register 2                */
 volatile unsigned char TACR1   @0x32;	/* Control Register 1                */
 volatile unsigned char TACSR   @0x33;	/* Status Register                   */
 volatile unsigned char TAIC1HR @0x34;	/* Input Capture 1 High              */
 volatile unsigned char TAIC1LR @0x35;	/* Input Capture 1 Low               */
 volatile unsigned char TAOC1HR @0x36;	/* Output Compare 1 High             */
 volatile unsigned char TAOC1LR @0x37;	/* Output Compare 1 Low              */
 volatile unsigned char TACHR   @0x38;	/* Counter High                      */
 volatile unsigned char TACLR   @0x39;	/* Counter Low                       */
 volatile unsigned char TAACHR  @0x3a;	/* Alternate Counter High            */
 volatile unsigned char TAACLR  @0x3b;	/* Alternate Counter Low             */
 volatile unsigned char TAIC2HR @0x3c;	/* Input Capture 2 High              */
 volatile unsigned char TAIC2LR @0x3d;	/* Input Capture 2 Low               */
 volatile unsigned char TAOC2HR @0x3e;	/* Output Compare 2 High             */
 volatile unsigned char TAOC2LR @0x3f;	/* Output Compare 2 Low              */

/* 16 bit register                                                           */
 volatile unsigned int  TAIC1R  @0x34;	/* Input Capture 1 Register          */
 volatile unsigned int  TAOC1R  @0x36;	/* Output Compare 1 Register         */
 volatile unsigned int  TACR    @0x38;	/* Counter Register                  */
 volatile unsigned int  TAACR   @0x3a;	/* Alternate Counter Register        */
 volatile unsigned int  TAIC2R  @0x3c;	/* Input Capture 2 Register          */
 volatile unsigned int  TAOC2R  @0x3e;	/* Output Compare 2 Register         */

/* Miscellanous register 2                                                   */
 volatile unsigned char MISCR2 @0x40;        

/*    TIMER B section                                                        */
 volatile unsigned char TBCR2   @0x41;	/* Control Register 2                */
 volatile unsigned char TBCR1   @0x42;	/* Control Register 1                */
 volatile unsigned char TBCSR   @0x43;	/* Status Register                   */
 volatile unsigned char TBIC1HR @0x44;	/* Input Capture 1 High              */
 volatile unsigned char TBIC1LR @0x45;	/* Input Capture 1 Low               */
 volatile unsigned char TBOC1HR @0x46;	/* Output Compare 1 High             */
 volatile unsigned char TBOC1LR @0x47;	/* Output Compare 1 Low              */
 volatile unsigned char TBCHR   @0x48;	/* Counter High                      */
 volatile unsigned char TBCLR   @0x49;	/* Counter Low                       */
 volatile unsigned char TBACHR  @0x4a;	/* Alternate Counter High            */
 volatile unsigned char TBACLR  @0x4b;	/* Alternate Counter Low             */
 volatile unsigned char TBIC2HR @0x4c;	/* Input Capture 2 High              */
 volatile unsigned char TBIC2LR @0x4d;	/* Input Capture 2 Low               */
 volatile unsigned char TBOC2HR @0x4e;	/* Output Compare 2 High             */
 volatile unsigned char TBOC2LR @0x4f;	/* Output Compare 2 Low              */

/* 16 bit register                                                           */
 volatile unsigned int  TBIC1R  @0x44;	/* Input Capture 1 Register          */
 volatile unsigned int  TBOC1R  @0x46;	/* Output Compare 1 Register         */
 volatile unsigned int  TBCR    @0x48;	/* Counter Register                  */
 volatile unsigned int  TBACR   @0x4a;	/* Alternate Counter Register        */
 volatile unsigned int  TBIC2R  @0x4c;	/* Input Capture 2 Register          */
 volatile unsigned int  TBOC2R  @0x4e;	/* Output Compare 2 Register         */

/*SCI Hardware registers                                                     */
 volatile unsigned char SCISR @0x50;
 volatile unsigned char SCIDR @0x51; 
 volatile unsigned char SCIBRR @0x52;
 volatile unsigned char SCICR1 @0x53;
 volatile unsigned char SCICR2 @0x54; 
 volatile unsigned char SCIERPR @0x55;
 volatile unsigned char SCIETPR @0x56; 

/* ADC Hardware Registers                                                    */
 volatile unsigned char ADCDRL  @0x6F;              /* ADC data register     */
 volatile unsigned char ADCDRH  @0x70;              /* ADC data register     */
 volatile unsigned char ADCCSR  @0x71;   /* ADC control & staus register     */
   
/* Flash control register                                                    */
 volatile unsigned char FCSR  @0x72;


#endif /* _HIWARE_                                                           */

/*** (c) 2003   STMicroelectronics ****************** END OF FILE ************/
