Hello,
I want to use the bq274xx.c sensor library. The bq274xx battery fuel gauge has an interrupt pin, which would allow to have the CPU idle until something interesting happens. To make use of that feature, I configured the library with:
CONFIG_BQ274XX_PM=y CONFIG_BQ274XX_TRIGGER_GLOBAL_THREAD=y
Now, from within bq274xx_trigger.c, the call to `gpio_add_callback()` fails with -ENOSYS. Looking at the documentation (https://docs.nordicsemi.com/bundle/ncs-2.3.0/page/zephyr/hardware/peripherals/gpio.html) of `gpio_add_callback()`, I can not find any hint as to under which circumstances the function would return that value or as to how to configure the system, so that `gpio_add_callback()` works as intended.
What configuration needs to be applied here?
best regards
Torsten