2017-10-20 14:52:36 +08:00
|
|
|
/*
|
2017-11-15 21:14:09 +08:00
|
|
|
* File : drv_gpio.h
|
2017-10-20 14:52:36 +08:00
|
|
|
* This file is part of RT-Thread RTOS
|
|
|
|
* COPYRIGHT (C) 2015, 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
|
|
|
|
* 2015-01-05 Bernard the first version
|
2017-11-15 21:14:09 +08:00
|
|
|
* 2017-11-35 ZYH update to 3.0.0
|
2017-10-20 14:52:36 +08:00
|
|
|
*/
|
|
|
|
#ifndef GPIO_H__
|
|
|
|
#define GPIO_H__
|
|
|
|
|
|
|
|
|
|
|
|
struct stm32_hw_pin_userdata
|
|
|
|
{
|
|
|
|
int pin;
|
|
|
|
uint32_t mode;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define PIN_USERDATA_END {-1,0}
|
|
|
|
|
|
|
|
extern struct stm32_hw_pin_userdata stm32_pins[];
|
|
|
|
|
|
|
|
int rt_hw_pin_init(void);
|
|
|
|
|
|
|
|
#endif
|