📄 ep7312.h
字号:
/*++
Module name:
EP7312.h
Abstract:
EP7312 processor register definition header file.
Author:
Michael Anburaj
URL : http:\\embedded.n3.net Email : embeddedeng@hotmail.com
Environment:
Processor : EP73XX (32 bit ARM720T RISC core from CIRRUS)
IDE : SDT 2.51 & ADS 1.0
--*/
/* ********************************************************************* */
#include "FRMWRK.h"
#ifndef __EP7312_H__
#define __EP7312_H__
#ifdef __cplusplus
extern "C" {
#endif
/* ********************************************************************* */
/* Module configuration */
/* ********************************************************************* */
/* Interface macro & data definition */
/* System */
#define rSYSCON1 (*(volatile U32 *)(SBADDR + 0x0100))
#define rSYSFLG1 (*(volatile U32 *)(SBADDR + 0x0140))
#define rSYSCON2 (*(volatile U32 *)(SBADDR + 0x1100))
#define rSYSFLG2 (*(volatile U32 *)(SBADDR + 0x1140))
/* UART */
#define rUARTDR1 (*(volatile U32 *)(SBADDR + 0x0480))
#define rUBRLCR1 (*(volatile U32 *)(SBADDR + 0x04c0))
#define rUARTDR2 (*(volatile U32 *)(SBADDR + 0x1480))
#define rUBRLCR2 (*(volatile U32 *)(SBADDR + 0x14c0))
#define rTC1D (*(volatile U32 *)(SBADDR + 0x0300))
#define rINTSR1 (*(volatile U32 *)(SBADDR + 0x0240))
#define rINTMR1 (*(volatile U32 *)(SBADDR + 0x0280))
#define rTC1EOI (*(volatile U32 *)(SBADDR + 0x06c0))
#define rPDDR (*(volatile U8 *)(SBADDR + 0x0003))
#define rPDDDR (*(volatile U8 *)(SBADDR + 0x0043))
#define pISR_RESET (*(U32 *)(IBADDR+0x00))
#define pISR_UNDEF (*(U32 *)(IBADDR+0x04))
#define pISR_SWI (*(U32 *)(IBADDR+0x08))
#define pISR_PABORT (*(U32 *)(IBADDR+0x0c))
#define pISR_DABORT (*(U32 *)(IBADDR+0x10))
#define pISR_RESERVED (*(U32 *)(IBADDR+0x14))
#define pISR_IRQ (*(U32 *)(IBADDR+0x18))
#define pISR_FIQ (*(U32 *)(IBADDR+0x1c))
#define BIT_TC1OI (1<<8)
#define BIT_TC2OI (1<<9)
#define BIT_UTXINT1 (1<<12)
#define BIT_URXINT1 (1<<13)
#define BIT_UTXINT2 (1<<12)
#define BIT_URXINT2 (1<<13)
#define BIT_UART1EN (1<<8)
#define BIT_TC1M (1<<4)
#define BIT_TC1S (1<<5)
#define BIT_TC2M (1<<6)
#define BIT_TC2S (1<<7)
#define USERMODE 0x10
#define FIQMODE 0x11
#define IRQMODE 0x12
#define SVCMODE 0x13
#define ABORTMODE 0x17
#define UNDEFMODE 0x1b
#define MODEMASK 0x1f
#define NOINT 0xc0
/* ********************************************************************* */
/* Interface function definition */
void EP7312_Select(int ch);
void EP7312_Init(int wBaud, U8 bFifoFlag);
char EP7312_GetCh(void);
char EP7312_GetChar(char * pdata);
void EP7312_GetString(char *string);
int EP7312_GetIntNum(void);
void EP7312_SendCh(char data);
void EP7312_SendChar(char data);
void EP7312_SendString(char *pt);
void EP7312_Scanf(char *fmt,...);
void EP7312_Printf(char *fmt,...);
/* ********************************************************************* */
#ifdef __cplusplus
}
#endif
#endif /*__EP7312_H__*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -