Skip to content

Commit 2ef3c9d

Browse files
authored
Merge pull request #3329 from Hehesheng/master
fixed drv_gpio bug
2 parents 886ce43 + 4fe5ce7 commit 2ef3c9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bsp/k210/driver/drv_gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ const static struct rt_pin_ops drv_pin_ops =
258258
int rt_hw_pin_init(void)
259259
{
260260
rt_err_t ret = RT_EOK;
261-
memset(pin_alloc_table, 0, sizeof pin_alloc_table);
261+
memset(pin_alloc_table, -1, sizeof pin_alloc_table);
262262
free_pin = GPIO_ALLOC_START;
263263
ret = rt_device_pin_register("pin", &drv_pin_ops, RT_NULL);
264264

0 commit comments

Comments
 (0)