Update drv_gpio.h

This commit is contained in:
Bernard Xiong 2019-03-24 16:51:26 +08:00 committed by GitHub
parent 94a5f9951b
commit e4a9fb5cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 17 deletions

View File

@ -1,21 +1,7 @@
/* /*
* File : board_gpio.h * Copyright (c) 2006-2018, RT-Thread Development Team
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2008 - 2016, RT-Thread Development Team
* *
* This program is free software; you can redistribute it and/or modify * SPDX-License-Identifier: Apache-2.0
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* *
* Change Logs: * Change Logs:
* Date Author Notes * Date Author Notes
@ -115,7 +101,7 @@ enum gpio_function
GPIO_INT_HI = 0x09, //1001, High Level trigger interrupt GPIO_INT_HI = 0x09, //1001, High Level trigger interrupt
GPIO_INT_FE = 0x0a, //1010, Fall Edge trigger interrupt GPIO_INT_FE = 0x0a, //1010, Fall Edge trigger interrupt
GPIO_INT_RE = 0x0b, //1011, Rise Edge trigger interrupt GPIO_INT_RE = 0x0b, //1011, Rise Edge trigger interrupt
GPIO_PULL = 0x10, //0001 0000, GPIO enable pull GPIO_PULL = 0x10, //0001 0000, GPIO enable pull
GPIO_INPUT_PULL = 0x16, //0001 0110, GPIO as input and enable pull GPIO_INPUT_PULL = 0x16, //0001 0110, GPIO as input and enable pull
}; };