未验证 提交 a18275c2 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1325 from SummerGGift/2018328

 [bsp] Add pin equipment for stm32f429-apollo
......@@ -29,7 +29,7 @@ if GetDepend(['RT_USING_I2C']) or GetDepend('RT_USING_LWIP'):
# add gpio drivers.
if GetDepend('RT_USING_PIN'):
src += ['gpio.c']
src += ['drv_gpio.c']
# add spi drivers.
if GetDepend('RT_USING_SPI'):
......
......@@ -77,6 +77,8 @@ void rt_hw_board_init(void);
#define FINSH_DEVICE_NAME CONSOLE_DEVICE
#define STM32F4xx_PIN_NUMBERS 176
void Error_Handler(void);
#endif
......
此差异已折叠。
/*
* File : drv_gpio.h
* 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
*/
#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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册