rc =gpio_request_one(wd->gpio_inhib ,GPIOF_IN,"wd-inhib");if(rc <0) { pr_err("wd-inhib GPIO not available\n");gotofree_gpio_clock; } rc =gpio_request_one(wd->gpio_trig, GPIOF_OUT_INIT_LOW,"wd-trig");if(rc <0) { pr_err("wd-trig GPIO not available\n");gotofree_gpi...
下列关于linux中gpio_request_one函数中的第二个参数flags的描述,不正确的是()(该函数原型int gpio_request_one(unsigned gpio, unsigned long flags, const char *label)) GPIOF_DIR_IN表示配置方向为输入 GPIOF_INIT_LOW表示在作为输出时,初始值为低电平 GPIOF_OUT_INIT_LOW 等价于(GPIOF_DIR_OUT | GPI...
}if(np) {enumof_gpio_flags flags;intgpio = of_get_named_gpio_flags(np,"reset-gpio",0, &flags);if(gpio_is_valid(gpio)) { ret =devm_gpio_request_one(&spi->dev, gpio, flags & OF_GPIO_ACTIVE_LOW ? GPIOF_OUT_INIT_LOW : GPIOF_OUT_INIT_HIGH,"ak4104 reset");if(ret <0)retur...