register.h

来自「tms320f206的c语言异步串口示例程序」· C头文件 代码 · 共 49 行

H
49
字号
/*
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 + =
减小字号Ctrl + -
显示快捷键?