weihengdefine.h

来自「TI 最新的1.2G DSP TMS320C6455的bootloader的烧写」· C头文件 代码 · 共 40 行

H
40
字号
//---------led------------------------
#define ledoff_1    *((volatile Uint32 *)(0xa0000000+(0x31<<2)))=0x0;//DELAY;	
#define ledoff_2	*((volatile Uint32 *)(0xa0000000+(0x32<<2)))=0x0;//DELAY;	
#define ledoff_3	*((volatile Uint32 *)(0xa0000000+(0x33<<2)))=0x0;//DELAY;
#define ledoff_4	*((volatile Uint32 *)(0xa0000000+(0x34<<2)))=0x0;

#define ledon_1     *((volatile Uint32 *)(0xa0000000+(0x31<<2)))=0x1;//DELAY;	
#define ledon_2	    *((volatile Uint32 *)(0xa0000000+(0x32<<2)))=0x1;//DELAY;	
#define ledon_3	    *((volatile Uint32 *)(0xa0000000+(0x33<<2)))=0x1;//DELAY;
#define ledon_4	    *((volatile Uint32 *)(0xa0000000+(0x34<<2)))=0x1;

//---------digital io-----------------

#define io_strobe *((volatile Uint32 *)(0xa0000000+(0x42<<2)))=0x0000b44b;	
#define dioh	  *((volatile Uint32 *)(0xa0000000+(0x40<<2)))
#define	diol     *((volatile Uint32 *)(0xa0000000+(0x41<<2)))
//--------rs232-----------------------
#define rs232txrdy  *((volatile Uint32 *)(0xa0000000+(0x55<<2)))!=0	  
#define rs232txbuf  *((volatile Uint32 *)(0xa0000000+(0x54<<2)))
#define rs232rxbuf  *((volatile Uint32 *)(0xa0000000+(0x53<<2)))
//--------rs422-----------------------
#define rs422txrdy  *((volatile Uint32 *)(0xa0000000+(0x66<<2)))!=0	  
#define rs422txbuf  *((volatile Uint32 *)(0xa0000000+(0x64<<2)))
#define rs422rxbuf  *((volatile Uint32 *)(0xa0000000+(0x63<<2)))	
//---------adc ------------------------ 
#define adc_strobe	*((volatile Uint32 *)(0xa0000000+(0x10<<2)))=0x0000a55a;
#define adc1_buf    *((volatile Uint32 *)(0xa0000000+(0x11<<2)))
#define adc2_buf    *((volatile Uint32 *)(0xa0000000+(0x12<<2)))
#define adc3_buf    *((volatile Uint32 *)(0xa0000000+(0x13<<2)))
#define adc4_buf    *((volatile Uint32 *)(0xa0000000+(0x14<<2)))
#define adc5_buf    *((volatile Uint32 *)(0xa0000000+(0x15<<2)))
#define adc6_buf    *((volatile Uint32 *)(0xa0000000+(0x16<<2)))
#define adc7_buf    *((volatile Uint32 *)(0xa0000000+(0x17<<2)))
#define adc8_buf    *((volatile Uint32 *)(0xa0000000+(0x18<<2)))
#define adc9_buf    *((volatile Uint32 *)(0xa0000000+(0x19<<2)))
#define adc10_buf    *((volatile Uint32 *)(0xa0000000+(0x1a<<2)))
#define adc11_buf    *((volatile Uint32 *)(0xa0000000+(0x1b<<2)))  
#define adc12_buf    *((volatile Uint32 *)(0xa0000000+(0x1c<<2)))

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?