platform.h

来自「RMI的处理器au1200系列所用的BOOTLOAD,包括SD卡启动USB启动硬」· C头文件 代码 · 共 40 行

H
40
字号
#ifndef PB1000#define PB1000#endif#define AU1000#define PCMCIA_STATUS_ADDRESS  0xBE000008#define PCMCIA_STATUS_CD0	0x0003	/* card detect mask slot 0 */#define PCMCIA_STATUS_RDY0	0x0004	/* card ready mask slot 0 */#define PCMCIA_STATUS_STS0	0x0008	/* card status mask slot 0 */#define PCMCIA_STATUS_VS0	0x0030	/* voltage sense mask slot 0 */#define PCMCIA_STATUS_IP0	0x0040	/* inpack status mask slot 0 */#define PCMCIA_STATUS_CD1	0x0300	/* card detect mask slot 1 */#define PCMCIA_STATUS_RDY1	0x0400	/* card ready mask slot 1 */#define PCMCIA_STATUS_STS1	0x0800	/* card status mask slot 1 */#define PCMCIA_STATUS_VS1	0x3000	/* voltage sense mask slot 1 */#define PCMCIA_STATUS_IP1	0x4000	/* inpack status mask slot 1 */#define PCMCIA_CONTROL_ADDRESS 0xBE000000#define PCMCIA_CONTROL_VPP0	0x0003	/* vpp mask slot 0 */#define PCMCIA_CONTROL_VCC0	0x000C	/* vcc mask slot 0 */#define PCMCIA_CONTROL_RST0 0x0010	/* reset mask slot 0 */#define PCMCIA_CONTROL_VPP1	0x0300	/* vpp mask slot 1 */#define PCMCIA_CONTROL_VCC1	0x0C00	/* vcc mask slot 1 */#define PCMCIA_CONTROL_RST1 0x1000	/* reset mask slot 1 *//* * Frequency info */#define CPU_FREQUENCY	(12000000 * 33)#define CPU_SD			2/* * GPIO6 is Pushbutton S8 on the Pb1000 */#define PLATFORM_PUSHBUTTON "GPIO6/SW8"#define PLATFORM_PUSHBUTTON_IRQ AU1000_IRQ_GPIO6#define PLATFORM_PUSHBUTTON_IRQ_POLARITY INT_RISING_EDGE

⌨️ 快捷键说明

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