We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 886ce43 + 4fe5ce7 commit 2ef3c9dCopy full SHA for 2ef3c9d
bsp/k210/driver/drv_gpio.c
@@ -258,7 +258,7 @@ const static struct rt_pin_ops drv_pin_ops =
258
int rt_hw_pin_init(void)
259
{
260
rt_err_t ret = RT_EOK;
261
- memset(pin_alloc_table, 0, sizeof pin_alloc_table);
+ memset(pin_alloc_table, -1, sizeof pin_alloc_table);
262
free_pin = GPIO_ALLOC_START;
263
ret = rt_device_pin_register("pin", &drv_pin_ops, RT_NULL);
264
0 commit comments