[Bsp][STM32F10x-HAL]优化GPIO驱动减小Flash占用

This commit is contained in:
brucechousz
2018-06-30 17:56:02 +08:00
parent 9df6acc067
commit b76db6b45b
2 changed files with 187 additions and 150 deletions
File diff suppressed because it is too large Load Diff
+3 -10
View File
@@ -12,14 +12,7 @@
* 2015-01-05 Bernard the first version
* 2017-11-35 ZYH update to 3.0.0
*/
#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);
#ifndef __DRV_GPIO_H__
#define __DRV_GPIO_H__
extern int rt_hw_pin_init(void);
#endif