exio.h
来自「这是基于博创公司ARM3000平台设计的综合实验源代码-电子菜单」· C头文件 代码 · 共 36 行
H
36 行
//////////////////////////AD control bit /////////////////////
#define ADCCON_FLAG 0x40
#define ADCCON_SLEEP 0x20
#define ADCCON_ADIN0 (0x0<<2)
#define ADCCON_ADIN1 (0x1<<2)
#define ADCCON_ADIN2 (0x2<<2)
#define ADCCON_ADIN3 (0x3<<2)
#define ADCCON_ADIN4 (0x4<<2)
#define ADCCON_ADIN5 (0x5<<2)
#define ADCCON_ADIN6 (0x6<<2)
#define ADCCON_ADIN7 (0x7<<2)
#define ADCCON_READ_START 0x2
#define ADCCON_ENABLE_START 0x1
//////////////////////Extra IO information/////////////////
//8255 is on bank 4
#define EXIO_8255B_PORTA (*(volatile unsigned short int*)0x08010000)
#define EXIO_8255B_PORTB (*(volatile unsigned short int*)0x08010002)
#define EXIO_8255B_PORTC (*(volatile unsigned short int*)0x08010004)
#define EXIO_8255B_CTRL (*(volatile unsigned short int*)0x08010006)
#define EXIO_8255A_PORTA (*(volatile unsigned short int*)0x08008000)
#define EXIO_8255A_PORTB (*(volatile unsigned short int*)0x08008002)
#define EXIO_8255A_PORTC (*(volatile unsigned short int*)0x08008004)
#define EXIO_8255A_CTRL (*(volatile unsigned short int*)0x08008006)
////////////////////////////////////////////////////////
void init_ADdevice();
int GetADresult(int channel);
void testExIO();
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?