gpio.h

来自「Centrality Atlas II development software」· C头文件 代码 · 共 56 行

H
56
字号
/* * $QNXLicenseC:  * Copyright 2007,2008, QNX Software Systems.   *   * Licensed under the Apache License, Version 2.0 (the "License"). You   * may not reproduce, modify or distribute this software except in   * compliance with the License. You may obtain a copy of the License   * at: http://www.apache.org/licenses/LICENSE-2.0   *   * Unless required by applicable law or agreed to in writing, software   * distributed under the License is distributed on an "AS IS" basis,   * WITHOUT WARRANTIES OF ANY KIND, either express or implied.  *  * This file may contain contributions from others, either as   * contributors under the License or as licensors under other terms.    * Please review this entire file for other proprietary rights or license   * notices, as well as the QNX Development Suite License Guide at   * http://licensing.qnx.com/license-guide/ for other information.  * $  */#ifndef _ATLASII_GPIO_H_#define _ATLASII_GPIO_H_#define GPIO_BASE                       (0x80000000 + 0x90000)/*GPIO definition*/#define GPIO_CTRL				0x0#define GPIO_DSP_EN				0x80#define GPIO_PAD_EN				0x84#define GPIO_SW_EN				0x88#define GPIO_INT_STATUS		0x8c#define GPIO_INT_LT_B			0X01#define GPIO_INT_HT_B			0X02#define GPIO_INT_TYPE_B			0X04#define GPIO_INT_EN_B			0X08#define GPIO_INT_STATUS_B		0X10#define GPIO_OUT_EN_B			0X20#define GPIO_OUT_B				0X40#define GPIO_DATA_IN_B			0X80#define GPIO_PD_B					0X100#define GPIO_OD_B					0X200#define GPIO_READ				0x1#define GPIO_WRITE				0x2#define GPIO_BITCLR				0x1#define GPIO_BITSET				0x2uint32_t ConfigGPIO(uint8_t reg, uint8_t gpio_num, uint32_t data, uint8_t bitop, uint8_t regop);#endif  //  #ifndef _ATLASII_GPIO_H_

⌨️ 快捷键说明

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