4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-16 01:29:24 +08:00
liuguang 60f17b69f6 [BSP] fix pin drive bug and add interrupt mode. | 修复PIN驱动BUG并添加中断模式.
更新如下:
1. 修复GPIO5_0~2管脚复用调用错误(错误情况会影响SDRAM正常工作)。
2. 添加中断模式,支持上升沿、下降沿、双边沿、高电平、低电平触发中断模式。
3. 移除C99特性。
2018-03-20 10:37:10 +08:00

25 lines
587 B
C

/*
* File : drv_pin.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006-2013, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date Author Notes
* 2018-03-13 Liuguang the first version.
* 2018-03-19 Liuguang add GPIO interrupt mode support.
*/
#ifndef __DRV_PIN_H__
#define __DRV_PIN_H__
#include <rtthread.h>
#include <rtdevice.h>
int rt_hw_pin_init(void);
#endif