mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-03-01 13:45:25 +08:00
commit
2ef3c9d861
@ -258,7 +258,7 @@ const static struct rt_pin_ops drv_pin_ops =
|
||||
int rt_hw_pin_init(void)
|
||||
{
|
||||
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;
|
||||
ret = rt_device_pin_register("pin", &drv_pin_ops, RT_NULL);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user