Skip to content

Commit 4fe5ce7

Browse files
committed
fixed drv_gpio bug
1 parent cad32a3 commit 4fe5ce7

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
@@ -257,7 +257,7 @@ const static struct rt_pin_ops drv_pin_ops =
257257
int rt_hw_pin_init(void)
258258
{
259259
rt_err_t ret = RT_EOK;
260-
memset(pin_alloc_table, 0, sizeof pin_alloc_table);
260+
memset(pin_alloc_table, -1, sizeof pin_alloc_table);
261261
free_pin = GPIO_ALLOC_START;
262262
ret = rt_device_pin_register("pin", &drv_pin_ops, RT_NULL);
263263

0 commit comments

Comments
 (0)