Update drv_gpio.h
This commit is contained in:
parent
94a5f9951b
commit
e4a9fb5cfc
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue