2018-08-17 19:04:36 +08:00
|
|
|
/*
|
2018-10-16 13:00:37 +08:00
|
|
|
* Copyright (c) 2006-2018, RT-Thread Development Team
|
2018-08-17 19:04:36 +08:00
|
|
|
*
|
2018-10-16 13:00:37 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2018-08-17 19:04:36 +08:00
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2015-01-05 Bernard the first version
|
|
|
|
*/
|
|
|
|
#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 stm32_hw_pin_init(void);
|
|
|
|
|
|
|
|
#endif
|