int desc_to_gpio(const struct gpio_desc *desc) struct gpio_desc *gpio_to_desc(unsigned gpio) 1. 2. 注意不能使用一套 API 的方法释放另一套 API 获取的设备 #和中断IRQ相关 使用如下函数获取一个 GPIO 设备对应的 IRQ 中断号 int gpiod_to_irq(const struct gpio_desc *desc) 1. 返回值时一个...
int desc_to_gpio(const struct gpio_desc *desc)struct gpio_desc *gpio_to_desc(unsigned gpio) 注意不能使用一套 API 的方法释放另一套 API 获取的设备 #和中断IRQ相关 使用如下函数获取一个 GPIO 设备对应的 IRQ 中断号 int gpiod_to_irq(const struct gpio_desc *desc) 返回值时一个 IRQ number,或...
_canslee gpiod_is_active_low gpiod_put gpiod_put_array gpiod_set_array_value gpiod_set_array_value_c gpiod_set_debounce gpiod_set_raw_array_val gpiod_set_raw_array_val gpiod_set_raw_value gpiod_set_raw_value_can gpiod_set_value gpiod_set_value_canslee gpiod_to_irq gpiod_un...
void s3c2410_gpio_setpin(unsigned int pin, unsigned int to); Which sets the given pin to the value. Use 0 to write 0, and 1 to set the output to 1. 1. 2. 3. 4. 获取该引脚的IRQ编号 The following function can map the given pin number to an IRQ number to pass to the IRQ sys...
int gpiod_to_irq(const struct gpio_desc *desc) 返回值时一个IRQ number,或者一个负数的错误代码。得到的中断号可以传递给函数request_irq(),free_irq(). #举例子 /*新的GPIO子系统方式,这种方式不需要手动释放资源*/ gc5025->det_gpio = devm_gpiod_get(dev, "det", GPIOD_OUT_LOW); if (IS_...
6、od_set_array_valuegpiod_set_array_value_cgpiod_set_debouncegpiod_set_raw_array_valgpiod_set_raw_array_valgpiod_set_raw_valuegpiod_set_raw_value_cangpiod_set_valuegpiod_set_value_cansleegpiod_to_irqgpiod_unexport#获取gpio描述符和释放使用一下两个函数获取 GPIO设备,多个设备时需要附带...
insmod sht15.ko[ 425.787145] gpio-82 (SHT15 data): _gpiod_direction_output_raw: tried to set a GPIO tied to an IRQ as output[ 425.796987] sht15: probe of p8-ports failed with error -5 dts: 231 pinctrl_p8_ports: p8_ports_grp {232 fsl,pins = <233 MX8MM_IOM...
static irqreturn_t acpi_gpio_irq_handler(int irq, void *data) { struct acpi_gpio_event *event = data; 8 changes: 0 additions & 8 deletions 8 include/linux/gpio/consumer.h Original file line numberDiff line numberDiff line change @@ -606,8 +606,6 @@ void acpi_dev_remove_driver_...
gpiochip0: GPIOs 0-223, parent: platform/2000000.pinctrl, 2000000.pinctrl: gpio-115 ( |usb1-vbus ) out lo gpio-116 ( |otg_det ) in lo gpio-117 ( |otg_id ) in hi gpio-144 ( |phy-rst ) out hi gpio-166 ( |cd ) in hi IRQ gpio-202 ( |wlan_hostwake ) in hi gpio-204...
gpiod_put gp iod _pu t_array gp iod_set_array_value gp iod_set_array_value_c gpi od_set_debo unce gpi od_set_raw_array_val gpi od_set_raw_array_val gpi od_set_raw_value gp iod_set_raw_value_ca n gpi od_set_value gpi od_set_value_ca nslee gpi od_to_irq gpiod_un...