void gpiod_put_array(struct gpio_descs *descs) 1. 2. 需要注意GPIO描述符被释放后不可再使用,而且不允许使用第一个函数来释放通过序列获取得到GPIO描述符。 使用GPIO 设置方向(Input | Output) 使用如下函数设置一个设备的方向 int gpiod_direction_input(struct gpio_desc *desc) int gpiod_direction_out...
The separate struct bgpio_chip has been a pain to handle, both by being confusingly similar in name to struct gpio_chip and for being contained inside a struct so that struct gpio_chip is contained in a struct contained in a struct, making several steps of dereferencing necessary. Make thi...