⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scoop.h

📁 RT-Thread是发展中的下一代微内核嵌入式实时操作系统
💻 H
字号:
/* * File      : scoop.h * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006, RT-Thread Develop Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://openlab.rt-thread.com/license/LICENSE * * Change Logs: * Date           Author       Notes * 2006-11-04     Bernard      the first version */#ifndef __SCOOP_H__#define __SCOOP_H__/* * scoop I/O mappings * phys			virt * 0x10800000	0xf2000000 */#define CF_BUF_CTRL_BASE 0xF2000000#define	SCP_REG(adr) (*(volatile unsigned short*)(CF_BUF_CTRL_BASE+(adr)))#define	SCP_MCR			SCP_REG(0x00)#define	SCP_CDR			SCP_REG(0x04)#define	SCP_CSR			SCP_REG(0x08)#define	SCP_CPR			SCP_REG(0x0C)#define	SCP_CCR			SCP_REG(0x10)#define	SCP_IRR			SCP_REG(0x14)#define	SCP_IRM			SCP_REG(0x14)#define	SCP_IMR			SCP_REG(0x18)#define	SCP_ISR			SCP_REG(0x1C)#define	SCP_GPCR		SCP_REG(0x20)#define	SCP_GPWR		SCP_REG(0x24)#define	SCP_GPRR		SCP_REG(0x28)#define SCP_GPCR_PA22	( 1 << 12 )#define SCP_GPCR_PA21	( 1 << 11 )#define SCP_GPCR_PA20	( 1 << 10 )#define SCP_GPCR_PA19	( 1 << 9 )#define SCP_GPCR_PA18	( 1 << 8 )#define SCP_GPCR_PA17	( 1 << 7 )#define SCP_GPCR_PA16	( 1 << 6 )#define SCP_GPCR_PA15	( 1 << 5 )#define SCP_GPCR_PA14	( 1 << 4 )#define SCP_GPCR_PA13	( 1 << 3 )#define SCP_GPCR_PA12	( 1 << 2 )#define SCP_GPCR_PA11	( 1 << 1 )/* * GPIOs */#define SCP_LED_GREEN		SCP_GPCR_PA11#define SCP_SWA				SCP_GPCR_PA12#define SCP_SWB				SCP_GPCR_PA13#define SCP_MUTE_L			SCP_GPCR_PA14#define SCP_MUTE_R			SCP_GPCR_PA15#define SCP_AKIN_PULLUP		SCP_GPCR_PA16#define SCP_APM_ON			SCP_GPCR_PA17#define SCP_BACKLIGHT_CONT	SCP_GPCR_PA18#define SCP_MIC_BIAS		SCP_GPCR_PA19#define SCP_IO_DIR	( SCP_LED_GREEN | SCP_MUTE_L | SCP_MUTE_R | \			  SCP_AKIN_PULLUP | SCP_APM_ON | SCP_BACKLIGHT_CONT | \			  SCP_MIC_BIAS )#define SCP_IO_OUT	( SCP_MUTE_L | SCP_MUTE_R )#endif

⌨️ 快捷键说明

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