Does GPIO Linux framework support to change mode between GPIO and IRQ -


i checked sysfs of gpio, supports configure direction (in, out), active_level, edge.

i don't see supports change mode between gpio , interrupt. know ? or suggest.

example: gpios can supports either gpio or irq. change mode under linux via sysfs.

thanks in advance.

the gpio controller (and driver) provide support if any. in case gpio controller registered interrupt controller. there lot of examples, gpio-intel-mid.c have:

    retval = gpiochip_irqchip_add(&priv->chip,                                   &intel_mid_irqchip,                                   irq_base,                                   handle_simple_irq,                                   irq_type_none);     if (retval) {             dev_err(&pdev->dev,                     "could not connect irqchip gpiochip\n");             return retval;     } 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -