Hi All,
I am using i.mx6q-sabresd board.
I want to configure the GPIO(1,2) i.e SABRESD_USR_DEF_RED_LED as in input pin and I want to configure it as an interrupt which should be detected on ACTIVE high or LOW.
The following are the function calls which I used so far.
gpio_free(SABRESD_USR_DEF_RED_LED);
gpio_request(SABRESD_USR_DEF_RED_LED,"init");
gpio_direction_input(SABRESD_USR_DEF_RED_LED);
reques_irq(gpio_to_irq(SABRESD_USR_DEF_RED_LED),interrupt_handler,IRQF_SHARED|IRQF_TRIGGER_LOW,"init",device);
With these settings I am not getting the expected interrupt.I hace connecetd the correct GPIO pin. and I am reading the value of '0' for gpio_get_value(SABRESD_USR_DEF_RED_LED) and gpio_direction_input(SABRESD_USR_DEF_RED_LED).
Please advice
Thanks in advance