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.
1 parent cad32a3 commit 4fe5ce7Copy full SHA for 4fe5ce7
bsp/k210/driver/drv_gpio.c
@@ -257,7 +257,7 @@ const static struct rt_pin_ops drv_pin_ops =
257
int rt_hw_pin_init(void)
258
{
259
rt_err_t ret = RT_EOK;
260
- memset(pin_alloc_table, 0, sizeof pin_alloc_table);
+ memset(pin_alloc_table, -1, sizeof pin_alloc_table);
261
free_pin = GPIO_ALLOC_START;
262
ret = rt_device_pin_register("pin", &drv_pin_ops, RT_NULL);
263
0 commit comments