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

📄 gpio.h

📁 Sirf/Centrality公司GPS平台AtlasIII芯片AT640的Nboot源码
💻 H
字号:
//
// Copyright (c) 2002 Palmmicro Communications Inc.  All rights reserved.
//                                                                     
// --------------------------------------------------------------------
/*++

Module Name:
	
  int.h
	  
Abstract:
		
  This file defines the bitmasks of the interrupt module.
		  
Notes:
--*/
#ifndef _PALM2_GPIO_H_
#define _PALM2_GPIO_H_


#define ENABLE_SM_PAD()				GPIO0_PAD_EN &= (0xf3ffffff)
#define ENABLE_I2C_PAD()				GPIO0_PAD_EN &= (0x3fffffff)
#define ENABLE_CAMSM_PADL()				GPIO1_PAD_EN &= (0xfff8003f)
#define ENABLE_CAMSM_PADH()				GPIO1_PAD_EN &= (0xffffffc0)
#define ENABLE_USP0_DATA_PAD()			GPIO1_PAD_EN &= (0xffe7ffff)
#define ENABLE_USP0_CTRL_PAD()			GPIO0_PAD_EN &= (0xfc63ffff)
#define ENABLE_USP1_PAD()				GPIO1_PAD_EN &= (0xfc1fffff)
#define ENABLE_USP2_PAD()				GPIO1_PAD_EN &= (0x83ffffff)
#define ENABLE_USP3_PAD()				GPIO2_PAD_EN &= (0xffffffe0)
#define ENABLE_USP4_PAD()				GPIO2_PAD_EN &= (0xfffffc1f)
#define ENABLE_USP5_PAD()				GPIO2_PAD_EN &= (0xffff83ff)
#define ENABLE_BT_PAD()					GPIO2_PAD_EN &= (0xfff07fff)
#define ENABLE_PCI_RQGNT2()				GPIO4_PAD_EN &= (~0x01200000)
#define ENABLE_PCI_RQGNT1()				GPIO4_PAD_EN &= (~0x02400000)
#define ENABLE_PCI_RQGNT0()				GPIO4_PAD_EN &= (~0x04800000)
#define DISABLE_PCI_RQGNT2()				GPIO4_PAD_EN |= (0x01200000)
#define DISABLE_PCI_RQGNT1()				GPIO4_PAD_EN |= (0x02400000)
#define DISABLE_PCI_RQGNT0()				GPIO4_PAD_EN |= (0x04800000)

#define ENABLE_PCI_CLK()				GPIO4_PAD_EN &= (~0x00002000)
#define ENABLE_SD_PAD()					GPIO2_PAD_EN &= (0xffff98df)



//added by Ni Hualiang 2003-10-23
#define ENABLE_LCD_PAD()                {\
                                        GPIO2_PAD_EN &= (0x000fffff); \
                                        GPIO0_PAD_EN &= (0xfffc00ff); \
                                        }
#define GPIO_INT_LT_BIT		0X01
#define GPIO_INT_HT_BIT		0X02
#define GPIO_INT_TYPE_BIT	0X04
#define GPIO_INT_EN_BIT		0X08
#define GPIO_INT_STATUS_BIT	0X10
#define GPIO_OUT_EN_BIT		0X20
#define GPIO_OUT_BIT		0X40
#define GPIO_DATA_IN_BIT	0X80
#define GPIO_PD_BIT		0X100
#define GPIO_OD_BIT		0X200
//gpio_od[0],gpio_pd[0],gpio_data_in[0],gpio_data_out[0],gpio_out_en[0],gpio_int_status[0],gpio_int_en[0],gpio_int_type[0],gpio_int_ht[0],gpio_int_lt[0] };



#endif  // #ifndef _PALM2_GPIO_H_

⌨️ 快捷键说明

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