rtt-f030/bsp/rm48x50/HALCoGen/include/reg_het.h

153 lines
6.3 KiB
C

/** @file reg_het.h
* @brief HET Register Layer Header File
* @date 29.May.2013
* @version 03.05.02
*
* This file contains:
* - Definitions
* - Types
* - Interface Prototypes
* .
* which are relevant for the HET driver.
*/
/* (c) Texas Instruments 2009-2013, All rights reserved. */
#ifndef __REG_HET_H__
#define __REG_HET_H__
#include "sys_common.h"
#include "gio.h"
/* USER CODE BEGIN (0) */
/* USER CODE END */
/* Het Register Frame Definition */
/** @struct hetBase
* @brief HET Base Register Definition
*
* This structure is used to access the HET module registers.
*/
/** @typedef hetBASE_t
* @brief HET Register Frame Type Definition
*
* This type is used to access the HET Registers.
*/
typedef volatile struct hetBase
{
uint32 GCR; /**< 0x0000: Global control register */
uint32 PFR; /**< 0x0004: Prescale factor register */
uint32 ADDR; /**< 0x0008: Current address register */
uint32 OFF1; /**< 0x000C: Interrupt offset register 1 */
uint32 OFF2; /**< 0x0010: Interrupt offset register 2 */
uint32 INTENAS; /**< 0x0014: Interrupt enable set register */
uint32 INTENAC; /**< 0x0018: Interrupt enable clear register */
uint32 EXC1; /**< 0x001C: Exception control register 1 */
uint32 EXC2; /**< 0x0020: Exception control register 2 */
uint32 PRY; /**< 0x0024: Interrupt priority register */
uint32 FLG; /**< 0x0028: Interrupt flag register */
uint32 AND; /**< 0x002C: AND share control register */
uint32 rsvd1; /**< 0x0030: Reserved */
uint32 HRSH; /**< 0x0034: High resolution share register */
uint32 XOR; /**< 0x0038: XOR share register */
uint32 REQENS; /**< 0x003C: Request enable set register */
uint32 REQENC; /**< 0x0040: Request enable clear register */
uint32 REQDS; /**< 0x0044: Request destination select register */
uint32 rsvd2; /**< 0x0048: Reserved */
uint32 DIR; /**< 0x004C: Direction register */
uint32 DIN; /**< 0x0050: Data input register */
uint32 DOUT; /**< 0x0054: Data output register */
uint32 DSET; /**< 0x0058: Data output set register */
uint32 DCLR; /**< 0x005C: Data output clear register */
uint32 PDR; /**< 0x0060: Open drain register */
uint32 PULDIS; /**< 0x0064: Pull disable register */
uint32 PSL; /**< 0x0068: Pull select register */
uint32 rsvd3; /**< 0x006C: Reserved */
uint32 rsvd4; /**< 0x0070: Reserved */
uint32 PCR; /**< 0x0074: Parity control register */
uint32 PAR; /**< 0x0078: Parity address register */
uint32 PPR; /**< 0x007C: Parity pin select register */
uint32 SFPRLD; /**< 0x0080: Suppression filter preload register */
uint32 SFENA; /**< 0x0084: Suppression filter enable register */
uint32 rsvd5; /**< 0x0088: Reserved */
uint32 LBPSEL; /**< 0x008C: Loop back pair select register */
uint32 LBPDIR; /**< 0x0090: Loop back pair direction register */
uint32 PINDIS; /**< 0x0094: Pin disable register */
uint32 rsvd6; /**< 0x0098: Reserved */
uint32 HWAPINSEL;/**< 0x009C: HWAG Pin select register */
uint32 HWAGCR0; /**< 0x00A0: HWAG Global control register 0 */
uint32 HWAGCR1; /**< 0x00A4: HWAG Global control register 1 */
uint32 HWAGCR2; /**< 0x00A8: HWAG Global control register 2 */
uint32 HWAENASET;/**< 0x00AC: HWAG Interrupt enable set register */
uint32 HWAENACLR;/**< 0x00B0: HWAG Interrupt enable clear register*/
uint32 HWALVLSET;/**< 0x00B4: HWAG Interrupt level set register */
uint32 HWALVLCLR;/**< 0x00B8: HWAG Interrupt level clear register */
uint32 HWAFLG; /**< 0x00BC: HWAG Interrupt flag register */
uint32 HWAOFF1; /**< 0x00C0: HWAG Interrupt offset 1 register */
uint32 HWAOFF2; /**< 0x00C4: HWAG Interrupt offset 2 register */
uint32 HWAACNT; /**< 0x00C8: HWAG Angle value register */
uint32 HWAPCNT1; /**< 0x00CC: HWAG Period value register 1 */
uint32 HWAPCNT; /**< 0x00D0: HWAG Period value register */
uint32 HWASTWD; /**< 0x00D4: HWAG Step width register */
uint32 HWATHNB; /**< 0x00D8: HWAG Teeth number register */
uint32 HWATHVL; /**< 0x00DC: HWAG Teeth Value register */
uint32 HWAFIL; /**< 0x00E0: HWAG Filter register */
uint32 rsvd7; /**< 0x00E4: Reserved */
uint32 HWAFIL2; /**< 0x00E8: HWAG Second filter register */
uint32 rsvd8; /**< 0x00EC: Reserved */
uint32 HWAANGI; /**< 0x00F0: HWAG Angle increment register */
} hetBASE_t;
/** @def hetREG1
* @brief HET Register Frame Pointer
*
* This pointer is used by the HET driver to access the het module registers.
*/
#define hetREG1 ((hetBASE_t *)0xFFF7B800U)
/** @def hetPORT1
* @brief HET GIO Port Register Pointer
*
* Pointer used by the GIO driver to access I/O PORT of HET1
* (use the GIO drivers to access the port pins).
*/
#define hetPORT1 ((gioPORT_t *)0xFFF7B84CU)
/** @def hetREG2
* @brief HET2 Register Frame Pointer
*
* This pointer is used by the HET driver to access the het module registers.
*/
#define hetREG2 ((hetBASE_t *)0xFFF7B900U)
/** @def hetPORT2
* @brief HET2 GIO Port Register Pointer
*
* Pointer used by the GIO driver to access I/O PORT of HET2
* (use the GIO drivers to access the port pins).
*/
#define hetPORT2 ((gioPORT_t *)0xFFF7B94CU)
#define hetRAM1 ((hetRAMBASE_t *)0xFF460000U)
#define hetRAM2 ((hetRAMBASE_t *)0xFF440000U)
#define NHET1RAMPARLOC (*(volatile uint32 *)0xFF462000U)
#define NHET1RAMLOC (*(volatile uint32 *)0xFF460000U)
#define NHET2RAMPARLOC (*(volatile uint32 *)0xFF442000U)
#define NHET2RAMLOC (*(volatile uint32 *)0xFF440000U)
/* USER CODE BEGIN (1) */
/* USER CODE END */
#endif