📄 test-adc.h
字号:
//#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -