📄 ep7312_sys.h
字号:
/***************************
定义ep7312系统寄存器
***************************/
#ifndef _SYS_EP7312_REG
#define _SYS_EP7312_REG
#define SYSCON1 *(unsigned long*)0xff000100 /* 系统寄存器1 */
#define SYSCON2 *(unsigned long*)0xff001100 /* 系统寄存器2 */
#define PADR *(unsigned char*)0xff000000 /* 端口A数据寄存器 */
#define PADDR *(unsigned char*)0xff000040 /* 端口A方向寄存器 */
#define PBDR *(unsigned char*)0xff000001 /* 端口B数据寄存器 */
#define PBDDR *(unsigned char*)0xff000041 /* 端口B方向寄存器 */
#define LCDCON *(unsigned long*)0xff0002c0 /* LCD控制寄存器 */
#define PALLSW *(unsigned long*)0xff000540 /* 调色板颜色寄存低位有效字 */
#define PALMSW *(unsigned long*)0xff000580 /* 调色板颜色寄存高位有效字 */
#define FBADDR *(unsigned long*)0xff001000 /* LCD显示帧缓存起始地址 */
#define COM2DATA *(volatile unsigned char *)0xff001480 /* 串口2数据寄存器 */
#define COM2CONTROL *(volatile unsigned long *)0xff001140 /* 串口2控制寄存器 */
#endif //_SYS_EP7312_REG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -