test-adc.h

来自「基于s3c2410芯片的ADC驱动程序源代码」· C头文件 代码 · 共 22 行

H
22
字号
//#define rADCTSC		io_p2v(0x58000004)
//#define rADCDLY		io_p2v(0x58000008)

#define PCLK		50700000
#define FREQ		2500000

/* bits definitions */
#define CON_FLAG	(1<<15)
#define CON_PRSCEN	(1<<14)
#define CON_PRE		(((PCLK/FREQ)-1)<<6)
#define CON_AIN0	(0<<3)
#define CON_AIN1	(1<<3)
#define CON_AIN2	(2<<3)
#define CON_AIN3	(3<<3)
#define CON_AIN4	(4<<3)
#define CON_AIN5	(5<<3)
#define CON_AIN6	(6<<3)
#define CON_AIN7	(7<<3)
#define CON_NORMAL	(0<<2)
#define CON_SLEEP	(1<<2)
#define CON_READ_START		(1<<1)
#define CON_ENABLE_START	(1<<0)

⌨️ 快捷键说明

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