Hi,
To use the GPIOTE macros in /modules/nrfx/drivers/include/nrfx_gpiote.h the order of the initialization has to be changed.
Please find attached a patch that handles the macros
| #define | NRFX_GPIOTE_CONFIG_IN_SENSE_LOTOHI(hi_accu) |
| #define | NRFX_GPIOTE_CONFIG_IN_SENSE_HITOLO(hi_accu) |
| #define | NRFX_GPIOTE_CONFIG_IN_SENSE_TOGGLE(hi_accu) |
| #define | NRFX_GPIOTE_RAW_CONFIG_IN_SENSE_LOTOHI(hi_accu) |
| #define | NRFX_GPIOTE_RAW_CONFIG_IN_SENSE_HITOLO(hi_accu) |
| #define | NRFX_GPIOTE_RAW_CONFIG_IN_SENSE_TOGGLE(hi_accu) |
| #define | NRFX_GPIOTE_CONFIG_OUT_SIMPLE(init_high) |
| #define | NRFX_GPIOTE_CONFIG_OUT_TASK_LOW |
| #define | NRFX_GPIOTE_CONFIG_OUT_TASK_HIGH |
| #define | NRFX_GPIOTE_CONFIG_OUT_TASK_TOGGLE(init_high) |
Best regards
Matthias