I have a few GPIOs configured as interrupt pins.. most are edge triggered GPIO_INT_EDGE_FALLING or GPIO_INT_EDGE_RISING (won't work otherwise so, i cant go for level triggered at this time)..Only button is GPIO_INT_LEVEL_INACTIVE.. Looks like in 1.9.1 we need to add an entry in overlay to take care of masking for sense-edge and i did..
&gpio0 {
status = "okay";
sense-edge-mask = < 0xffffffff >;
};
&gpio1 {
status = "okay";
sense-edge-mask = < 0xffffffff >;
};
Will making interrupts edge triggered add lot 10s of extra uA like it is mentioned in some older tickets ? is there a way around that I am missing ?
Older tickets talked about using CONFIG_GPIO_NRF_INT_EDGE_USING_SENSE but as we all know that macro doesn't seem to exist anymore.. some ticket mentioned setting hi_accuracy parameter to false for gpio config.. some ticket mentioned setting low latency to 0 (haven't found a zephyr api to do that yet( but I am using the interrupt set up as follows and can't find any other way
Is there a way to use edge triggered interrupts and not take up too much power at all ? I have searched as much as I could but couldn't get anywhere.. I have 5 gpios configured and hence any current saved will be awesome.