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

Merge pull request #3329 from Hehesheng/master

fixed drv_gpio bug
...@@ -258,7 +258,7 @@ const static struct rt_pin_ops drv_pin_ops = ...@@ -258,7 +258,7 @@ const static struct rt_pin_ops drv_pin_ops =
int rt_hw_pin_init(void) int rt_hw_pin_init(void)
{ {
rt_err_t ret = RT_EOK; rt_err_t ret = RT_EOK;
memset(pin_alloc_table, 0, sizeof pin_alloc_table); memset(pin_alloc_table, -1, sizeof pin_alloc_table);
free_pin = GPIO_ALLOC_START; free_pin = GPIO_ALLOC_START;
ret = rt_device_pin_register("pin", &drv_pin_ops, RT_NULL); ret = rt_device_pin_register("pin", &drv_pin_ops, RT_NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册