📄 register.h
字号:
/*
Writing to the C2xx Asynchronous Serial Port in C V1.00
by Jeff Axelrod 3/26/97
*/
/************************************************/
/* Memory-mapped registers for C2xx except C209 */
/************************************************/
/* Synchronous serial port registers */
ioport unsigned portFFF0;
ioport unsigned portFFF1;
/* Asynchronous serial port registers */
ioport unsigned portFFF4;
ioport unsigned portFFF5;
ioport unsigned portFFF6;
ioport unsigned portFFF7;
ioport unsigned portFFF8;
ioport unsigned portFFF9;
ioport unsigned portFFFA;
ioport unsigned portFFFC;
/* Wait-state generator control register */
ioport unsigned portFFFC;
/* Synchronous serial port registers */
#define SDTR portFFF0
#define SSPCR portFFF1
/* Asynchronous serial port registers */
#define ADTR portFFF4
#define ASPCR portFFF5
#define IOSR portFFF6
#define BRD portFFF7
#define TCR portFFF8
#define PRD portFFF9
#define TIM portFFFA
#define WSGR portFFFC
/* Interrupt mask register */
volatile unsigned int* IMR = (volatile unsigned int *) 0x0004;
/* Global memory allocation register */
volatile unsigned int* GREG = (volatile unsigned int *) 0x0005;
/* Interrupt flag register */
volatile unsigned int* IFR = (volatile unsigned int *) 0x0006;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -