/*
*******************************************************************************
COPYRIGHT 2003 STMicroelectronics
Source File Name : st7234x_reg.c
Group            : IPSW,CMG-IPDF.
Author           : MCD Application Team
Date First Issued: 26/9/2006
********************************Documentation**********************************
GeneralPurpose - This file contains the hardware registers of all peripherals
		         of ST7234x	                 
********************************RevisionHistory********************************
_______________________________________________________________________________
******************************************************************************/
#include "St7lib_config.h"
#ifdef _HIWARE_     

#define SetAddr(ADDR,REG)  volatile unsigned char REG @ADDR;


/* Port A */
/*****************************************************************/


/* Data Register */
SetAddr(0x00,PADR)

/* Data Direction Register */
SetAddr(0x01,PADDR)

/* Option Register */
SetAddr(0x02,PAOR)

/* Port B */
/*****************************************************************/

/* Data Register */
SetAddr(0x03,PBDR)

/* Data Direction Register */
SetAddr(0x04,PBDDR)

/* Option Register */
SetAddr(0x05,PBOR)

/* Port C */
/*****************************************************************/

/* Data Register */
SetAddr(0x06,PCDR)

/* Data Direction Register */
SetAddr(0x07,PCDDR)

/* Option Register */
SetAddr(0x08,PCOR)

/* Port D */
/*****************************************************************/

/* Data Register */
SetAddr(0x09,PDDR)

/* Data Direction Register */
SetAddr(0x0a,PDDDR)

/* Option Register */
SetAddr(0x0b,PDOR)

/* Port E */
/*****************************************************************/

/* Data Register */
SetAddr(0x0c,PEDR)

/* Data Direction Register */
SetAddr(0x0d,PEDDR)

/* Option Register */
SetAddr(0x0e,PEOR)

/* Port F */
/*****************************************************************/

/* Data Register */
SetAddr(0x0f,PFDR)

/* Data Direction Register */
SetAddr(0x10,PFDDR)

/* Option Register */
SetAddr(0x11,PFOR)

/* RC Control Register (RCCR) */
/*****************************************************************/

/* RCC Control High Register */
SetAddr(0x17,RCCRH)

/* RCC Control Low Register */
SetAddr(0x18,RCCRL)

/* EEPROM */
/*****************************************************************/

/* Data EEPROM Control Status Register */
SetAddr(0x20,EECSR)

/* Serial Peripheral Interface (SPI) */
/*****************************************************************/

/* Data I/O Register */
SetAddr(0x21,SPIDR)

/* Control Register */
SetAddr(0x22,SPICR)

/* Control/Status Register */
SetAddr(0x23,SPICSR)

/* Interrupt Software Priority (ITC) */
/*****************************************************************/

/* Interrupt Software Priority Register 0 */
SetAddr(0x24,ISPR0)

/* Interrupt Software Priority Register 1 */
SetAddr(0x25,ISPR1)

/* Interrupt Software Priority Register 2 */
SetAddr(0x26,ISPR2)

/* Interrupt Software Priority Register 3 */
SetAddr(0x27,ISPR3)

/* External Interrupt Control Register */
SetAddr(0x28,EICR)

/* Flash */
/*****************************************************************/

/* Flash Control/Status Register */
SetAddr(0x29,FCSR)

/* WatchDog Control Register */
/*****************************************************************/

/* Control Register */
SetAddr(0x2a,WDGCR)

/* Main Clock Control/Status Register (MCC) */
/*****************************************************************/

/* System Integrity Control/Status Register */
SetAddr(0x2b,SICSR)

/* Main Clock Control/Status Register */
SetAddr(0x2c,MCCSR)

/* MCC Beep Control Register */
SetAddr(0x2d,MCCBCR)

/* AWU */
/*****************************************************************/

/* Control/Status Register */
SetAddr(0x2e,AWUCSR)

/* Prescaler Register */
SetAddr(0x2f,AWUPR)

/* Window Watchdog Control Register (WWDG) */
/*****************************************************************/

/* Window Watchdog Control Register */
SetAddr(0x30,WWDGWR)

/* 16-Bit Timer A */
/*****************************************************************/

/* Control Register 2 */
SetAddr(0x31,TACR2)

/* Control Register 1 */
SetAddr(0x32,TACR1)

/* Control/Status Register */
SetAddr(0x33,TACSR)
/* Input Capture 1 Register */
SetAddr(0x34,TAIC1R)
/* Input Capture 1 High Register */
SetAddr(0x34,TAIC1HR)
/* Input Capture 1 Low Register */
SetAddr(0x35,TAIC1LR)

/* Output Compare 1 Register */
SetAddr(0x36,TAOC1R)
/* Output Compare 1 High Register */
SetAddr(0x36,TAOC1HR)
/* Output Compare 1 Low Register */
SetAddr(0x37,TAOC1LR)

/* Counter Register */
SetAddr(0x38,TACR)
/* Counter High Register */
SetAddr(0x38,TACHR)
/* Counter Low Register */
SetAddr(0x39,TACLR)

/* Alternate Counter Register */
SetAddr(0x3a,TAACR)
/* Alternate Counter High Register */
SetAddr(0x3a,TAACHR)
/* Alternate Counter Low Register */
SetAddr(0x3b,TAACLR)

/* Input Capture 2 Register */
SetAddr(0x3c,TAIC2R)
/* Input Capture 2 High Register */
SetAddr(0x3c,TAIC2HR)
/* Input Capture 2 Low Register */
SetAddr(0x3d,TAIC2LR)

/* Output Compare 2 Register */
SetAddr(0x3e,TAOC2R)
/* Output Compare 2 High Register */
SetAddr(0x3e,TAOC2HR)
/* Output Compare 2 Low Register */
SetAddr(0x3f,TAOC2LR)

/* 16-Bit Timer B */
/*****************************************************************/

/* Control Register 2 */
SetAddr(0x41,TBCR2)

/* Control Register 1 */
SetAddr(0x42,TBCR1)

/* Control/Status Register */
SetAddr(0x43,TBCSR)

/* Input Capture 1 Register */
SetAddr(0x44,TBIC1R)
/* Input Capture 1 High Register */
SetAddr(0x44,TBIC1HR)
/* Input Capture 1 Low Register */
SetAddr(0x45,TBIC1LR)

/* Output Compare 1 Register */
SetAddr(0x46,TBOC1R)
/* Output Compare 1 High Register */
SetAddr(0x46,TBOC1HR)
/* Output Compare 1 Low Register */
SetAddr(0x47,TBOC1LR)

/* Counter Register */
SetAddr(0x48,TBCR)
/* Counter High Register */
SetAddr(0x48,TBCHR)
/* Counter Low Register */
SetAddr(0x49,TBCLR)

/* Alternate Counter Register */
SetAddr(0x4a,TBACR)
/* Alternate Counter High Register */
SetAddr(0x4a,TBACHR)
/* Alternate Counter Low Register */
SetAddr(0x4b,TBACLR)

/* Input Capture 2 Register */
SetAddr(0x4c,TBIC2R)
/* Input Capture 2 High Register */
SetAddr(0x4c,TBIC2HR)
/* Input Capture 2 Low Register */
SetAddr(0x4d,TBIC2LR)

/* Output Compare 2 Register */
SetAddr(0x4e,TBOC2R)
/* Output Compare 2 High Register */
SetAddr(0x4e,TBOC2HR)
/* Output Compare 2 Low Register */
SetAddr(0x4f,TBOC2LR)

/* Serial Communications Interface (SCI) */
/*****************************************************************/

/* Status Register */
SetAddr(0x50,SCISR)

/* Data Register */
SetAddr(0x51,SCIDR)

/* Baud Rate Register */
SetAddr(0x52,SCIBRR)

/* Control Register 1 */
SetAddr(0x53,SCICR1)

/* Control Register 2 */
SetAddr(0x54,SCICR2)
/* Ext. Receive Prescaler Reg. */
SetAddr(0x56,SCIERPR)

/* Ext. Transmit Prescaler Reg. */
SetAddr(0x57,SCIETPR)

/* I2C */
/*****************************************************************/

/* Control Register */
SetAddr(0x58,I2CCR)

/* Status Register 1 */
SetAddr(0x59,I2CSR1)

/* Status Register 2 */
SetAddr(0x5a,I2CSR2)

/* Clock Control Register */
SetAddr(0x5b,I2CCCR)

/* Own Address Register 1 */
SetAddr(0x5c,I2COAR1)

/* Own Address Register 2 */
SetAddr(0x5d,I2COAR2)

/* Data Register */
SetAddr(0x5e,I2CDR)

/* I2C3SNS */
/*****************************************************************/

/* Control Register 1 */
SetAddr(0x60,I2C3SCR1)

/* Control Register 2 */
SetAddr(0x61,I2C3sCR2)

/* Status Register */
SetAddr(0x62,I2C3SSR)

/* Byte Count Register */
SetAddr(0x63,I2C3SBCR)

/* Slave Address Register 1 */
SetAddr(0x64,I2C3SSAR1)

/* Current Address Register 1 */
SetAddr(0x65,I2C3SCAR1)

/* Slave Address Register 2 */
SetAddr(0x66,I2C3SSAR2)

/* Current Address Register 2 */
SetAddr(0x67,I2C3SCAR2)

/* Slave Address Register 3 */
SetAddr(0x68,I2C3SSAR3)

/* Current Address Register 3 */
SetAddr(0x69,I2C3SCAR3)

/* 10-Bit A/D Converter (ADC) */
/*****************************************************************/

/* Control/Status Register */
SetAddr(0x70,ADCCSR)

/* Data High Register */
SetAddr(0x71,ADCDRH)

/* Data low Register */
SetAddr(0x72,ADCDRL)

#endif /* _HIWARE_ */
