This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Fix GPIOTE macros for C++

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)

gpiote.patch

Best regards

Matthias

Parents Reply Children
No Data
Related