/******************************************************************************
COPYRIGHT 2003 STMicroelectronics 
Source File Name :st7263_reg.h
Group            : IPSW,CMG - IPDF
Author           : MCD Application Team
Date First Issued: 23/09/2003
********************************Documentation**********************************
General Purpose - This file declares all the hardware registers as extern

********************************Revision History*******************************
_______________________________________________________________________________
Date :23/09/2003             Release:2.0
Date :2/06/2004              Release 2.1
                             Address information added for metrowerks registers       	   		        	      
******************************************************************************/
#ifndef ST72F60_REG_H
#define ST72F60_REG_H  

#include "ST7lib_config.h"

#ifdef _HIWARE_              
/* Only for HIWARE compiler                                                  */
/*****************************************************************************/              
/* IO Ports Hardware Registers                                               */
           
/* PORT A register                                                           */
extern volatile unsigned char PADR    @0x00;     /* PORT A data Register     */
extern volatile unsigned char PADDR   @0x01;  /* Data direction register     */

/* PORT B register                                                           */
extern volatile unsigned char PBDR    @0x02;      /* PORT B data Register    */
extern volatile unsigned char PBDDR   @0x03;   /* Data direction register    */

/* PORT C register                                                           */
extern volatile unsigned char PCDR    @0x04;      /* PORT C data Register    */
extern volatile unsigned char PCDDR   @0x05;   /* Data direction register    */

/*---------------------------------------------------------------------------*/
/*Interrupt registers                                                        */
extern volatile unsigned char ITRFRE @0x08;   /*   Interrupt Register        */

/*---------------------------------------------------------------------------*/    
/* MISCELLANEOUS Register                                                    */
extern volatile unsigned char MISCR  @0x09; /*   Miscellaneous Register      */

/*---------------------------------------------------------------------------*/    

/*  WDG section                                                              */ 
extern volatile unsigned char WDGCR   @0x0c;	/* WDG Control Register      */
/*---------------------------------------------------------------------------*/

/*  TIMER A section                                                          */
extern volatile unsigned char TACR2   @0x11;	/* Control Register 2        */
extern volatile unsigned char TACR1   @0x12;	/* Control Register 1        */
extern volatile unsigned char TACSR   @0x13;	/* Status Register           */
extern volatile unsigned char TAIC1HR @0x14;  /* Input Capture 1 High        */
extern volatile unsigned char TAIC1LR @0x15;	/* Input Capture 1 Low       */
extern volatile unsigned char TAOC1HR @0x16;	/* Output Compare 1 High     */
extern volatile unsigned char TAOC1LR @0x17;	/* Output Compare 1 Low      */
extern volatile unsigned char TACHR   @0x18;	/* Counter High              */
extern volatile unsigned char TACLR   @0x19;	/* Counter Low               */
extern volatile unsigned char TAACHR  @0x1a;/* Alternate Counter High        */
extern volatile unsigned char TAACLR  @0x1b;/* Alternate Counter Low         */
extern volatile unsigned char TAIC2HR @0x1c;/* Input Capture 2 High          */
extern volatile unsigned char TAIC2LR @0x1d;/* Input Capture 2 Low           */
extern volatile unsigned char TAOC2HR @0x1e;/* Output Compare 2 High         */
extern volatile unsigned char TAOC2LR @0x1f;/* Output Compare 2 Low          */

/* 16 bit timer register                                                     */    
extern volatile unsigned int  TAIC1R  @0x14;  /* Input Capture 1 Register    */
extern volatile unsigned int  TAOC1R  @0x16;  /* Output Compare 1 Register   */
extern volatile unsigned int  TACR    @0x18;	/* Counter Register          */
extern volatile unsigned int  TAACR   @0x1a;/* Alternate Counter Register    */
extern volatile unsigned int  TAIC2R  @0x1c;/* Input Capture 2 Register      */
extern volatile unsigned int  TAOC2R  @0x1e;/* Output Compare 2 Register     */
/*---------------------------------------------------------------------------*/ 

/*SCI registers                                                              */
extern volatile unsigned char SCISR @0x20;
extern volatile unsigned char SCIDR @0x21; 
extern volatile unsigned char SCIBRR @0x22;
extern volatile unsigned char SCICR1 @0x23;
extern volatile unsigned char SCICR2 @0x24;  
/*---------------------------------------------------------------------------*/   

/* USB Registers                                                             */
extern volatile unsigned char USBPIDR @0x25;
extern volatile unsigned char USBDMAR @0x26;
extern volatile unsigned char USBIDR @0x27;
extern volatile unsigned char USBISTR @0x28;
extern volatile unsigned char USBIMR @0x29;
extern volatile unsigned char USBCTLR @0x2A;
extern volatile unsigned char USBDADDR @0x2B;
extern volatile unsigned char USBEP0RA @0x2C;
extern volatile unsigned char USBEP0RB @0x2D;
extern volatile unsigned char USBEP1RA @0x2E;
extern volatile unsigned char USBEP1RB @0x2F;
extern volatile unsigned char USBEP2RA @0x30;
extern volatile unsigned char USBEP2RB @0x31;
/*---------------------------------------------------------------------------*/   

/* Flash control register                                                    */
extern volatile unsigned char FCSR    @0x37;
/*---------------------------------------------------------------------------*/
#endif /* _HIWARE_ */

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

/* For cosmic compiler*/ 
#ifdef _COSMIC_ 
/*---------------------------------------------------------------------------*/   
/* IO Ports Hardware Registers                                               */  

/* PORT A register                                                           */
@tiny volatile	unsigned char PADR    @0x00;     /* PORT A data Register     */
@tiny volatile	unsigned char PADDR   @0x01;  /* Data direction register     */

/* PORT B register                                                           */
@tiny volatile	unsigned char PBDR    @0x02;      /* PORT B data Register    */
@tiny volatile	unsigned char PBDDR   @0x03;   /* Data direction register    */

/* PORT C register                                                           */
@tiny volatile	unsigned char PCDR    @0x04;      /* PORT C data Register    */
@tiny volatile	unsigned char PCDDR   @0x05;   /* Data direction register    */

/*---------------------------------------------------------------------------*/
/*Interrupt registers                                                        */
@tiny volatile unsigned char ITRFRE @0x08;   /*   Interrupt Register       */

/*---------------------------------------------------------------------------*/    
/* MISCELLANEOUS Register                                                    */
@tiny volatile unsigned char MISCR  @0x09; /*   Miscellaneous Register     */

/*---------------------------------------------------------------------------*/    
/*  WDG section                                                              */ 
@tiny volatile	unsigned char WDGCR   @0x0c;	/* WDG Control Register      */

/*---------------------------------------------------------------------------*/

/*  TIMER A section                                                          */
 
@tiny volatile	unsigned char TACR2   @0x11;	/* Control Register 2        */
@tiny volatile	unsigned char TACR1   @0x12;	/* Control Register 1        */
@tiny volatile	unsigned char TACSR   @0x13;	/* Status Register           */
@tiny volatile	unsigned char TAIC1HR @0x14;  /* Input Capture 1 High        */
@tiny volatile	unsigned char TAIC1LR @0x15;	/* Input Capture 1 Low       */
@tiny volatile	unsigned char TAOC1HR @0x16;	/* Output Compare 1 High     */
@tiny volatile	unsigned char TAOC1LR @0x17;	/* Output Compare 1 Low      */
@tiny volatile	unsigned char TACHR   @0x18;	/* Counter High              */
@tiny volatile	unsigned char TACLR   @0x19;	/* Counter Low               */
@tiny volatile	unsigned char TAACHR  @0x1a;/* Alternate Counter High        */
@tiny volatile	unsigned char TAACLR  @0x1b;/* Alternate Counter Low         */
@tiny volatile	unsigned char TAIC2HR @0x1c;/* Input Capture 2 High          */
@tiny volatile	unsigned char TAIC2LR @0x1d;/* Input Capture 2 Low           */
@tiny volatile	unsigned char TAOC2HR @0x1e;/* Output Compare 2 High         */
@tiny volatile	unsigned char TAOC2LR @0x1f;/* Output Compare 2 Low          */

/* 16 bit timer register                                                     */    
@tiny volatile	unsigned int  TAIC1R  @0x14;  /* Input Capture 1 Register    */
@tiny volatile	unsigned int  TAOC1R  @0x16;  /* Output Compare 1 Register   */
@tiny volatile	unsigned int  TACR    @0x18;	/* Counter Register          */
@tiny volatile	unsigned int  TAACR   @0x1a;/* Alternate Counter Register    */
@tiny volatile	unsigned int  TAIC2R  @0x1c;/* Input Capture 2 Register      */
@tiny volatile	unsigned int  TAOC2R  @0x1e;/* Output Compare 2 Register     */
/*---------------------------------------------------------------------------*/ 

/* SCI registers                                                             */
@tiny volatile unsigned char SCISR @0x20;
@tiny volatile unsigned char SCIDR @0x21; 
@tiny volatile unsigned char SCIBRR @0x22;
@tiny volatile unsigned char SCICR1 @0x23;
@tiny volatile unsigned char SCICR2 @0x24;  
/*---------------------------------------------------------------------------*/   

/* USB Registers                                                             */
@tiny volatile unsigned char USBPIDR @0x25;
@tiny volatile unsigned char USBDMAR @0x26;
@tiny volatile unsigned char USBIDR @0x27;
@tiny volatile unsigned char USBISTR @0x28;
@tiny volatile unsigned char USBIMR @0x29;
@tiny volatile unsigned char USBCTLR @0x2A;
@tiny volatile unsigned char USBDADDR @0x2B;
@tiny volatile unsigned char USBEP0RA @0x2C;
@tiny volatile unsigned char USBEP0RB @0x2D;
@tiny volatile unsigned char USBEP1RA @0x2E;
@tiny volatile unsigned char USBEP1RB @0x2F;
@tiny volatile unsigned char USBEP2RA @0x30;
@tiny volatile unsigned char USBEP2RB @0x31;
/*---------------------------------------------------------------------------*/   

/* Flash control register                                                    */
@tiny volatile	unsigned char FCSR    @0x37;

/*---------------------------------------------------------------------------*/

#endif /* _COSMIC_                                                           */

#ifdef _RAISONANCE_              
/* Only for RAISONANCE compiler                                              */
/*****************************************************************************/              
/* IO Ports Hardware Registers                                               */

/* PORT A register                                                           */
at 0x00 hreg PADR    ;     /* PORT A data Register     */
at 0x01 hreg PADDR   ;  /* Data direction register     */

/* PORT B register                                                           */
at 0x02 hreg PBDR    ;      /* PORT B data Register    */
at 0x03 hreg PBDDR   ;   /* Data direction register    */

/* PORT C register                                                           */
at 0x04 hreg PCDR    ;      /* PORT C data Register    */
at 0x05 hreg PCDDR   ;   /* Data direction register    */

/*---------------------------------------------------------------------------*/
/*Interrupt registers                                                        */
at 0x08 hreg ITRFRE ;   /*   Interrupt Register        */

/*---------------------------------------------------------------------------*/    
/* MISCELLANEOUS Register                                                    */
at 0x09 hreg MISCR  ; /*   Miscellaneous Register      */

/*---------------------------------------------------------------------------*/    
/*  WDG section                                                              */ 
at 0x0c hreg WDGCR   ;	/* WDG Control Register      */

/*---------------------------------------------------------------------------*/
/*  TIMER A section                                                          */
at 0x11 hreg TACR2   ;	/* Control Register 2        */
at 0x12 hreg TACR1   ;	/* Control Register 1        */
at 0x13 hreg TACSR   ;	/* Status Register           */
at 0x14 hreg TAIC1HR ;  /* Input Capture 1 High        */
at 0x15 hreg TAIC1LR ;	/* Input Capture 1 Low       */
at 0x16 hreg TAOC1HR ;	/* Output Compare 1 High     */
at 0x17 hreg TAOC1LR ;	/* Output Compare 1 Low      */
at 0x18 hreg TACHR   ;	/* Counter High              */
at 0x19 hreg TACLR   ;	/* Counter Low               */
at 0x1a hreg TAACHR  ;/* Alternate Counter High        */
at 0x1b hreg TAACLR  ;/* Alternate Counter Low         */
at 0x1c hreg TAIC2HR ;/* Input Capture 2 High          */
at 0x1d hreg TAIC2LR ;/* Input Capture 2 Low           */
at 0x1e hreg TAOC2HR ;/* Output Compare 2 High         */
at 0x1f hreg TAOC2LR ;/* Output Compare 2 Low          */

/* 16 bit timer register                                                     */    
at 0x14 hreg16  TAIC1R  ;  /* Input Capture 1 Register    */
at 0x16 hreg16  TAOC1R  ;  /* Output Compare 1 Register   */
at 0x18 hreg16  TACR    ;	/* Counter Register          */
at 0x1a hreg16  TAACR   ;/* Alternate Counter Register    */
at 0x1c hreg16  TAIC2R  ;/* Input Capture 2 Register      */
at 0x1e hreg16  TAOC2R  ;/* Output Compare 2 Register     */
/*---------------------------------------------------------------------------*/ 

/*SCI registers                                                              */
at 0x20 hreg SCISR ;
at 0x21 hreg SCIDR ; 
at 0x22 hreg SCIBRR ;
at 0x23 hreg SCICR1 ;
at 0x24 hreg SCICR2 ;  
/*---------------------------------------------------------------------------*/   

/* USB Registers                                                             */
at 0x25 hreg USBPIDR ;
at 0x26 hreg USBDMAR ;
at 0x27 hreg USBIDR ;
at 0x28 hreg USBISTR ;
at 0x29 hreg USBIMR ;
at 0x2A hreg USBCTLR ;
at 0x2B hreg USBDADDR ;
at 0x2C hreg USBEP0RA ;
at 0x2D hreg USBEP0RB ;
at 0x2E hreg USBEP1RA ;
at 0x2F hreg USBEP1RB ;
at 0x30 hreg USBEP2RA ;
at 0x31 hreg USBEP2RB ;
/*---------------------------------------------------------------------------*/   

/* Flash control register                                                    */
at 0x37 hreg FCSR    ;
/*---------------------------------------------------------------------------*/

#endif /* _RAISONANCE_ */

#endif /* ST72F60                                                            */    

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