Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

'nrf_drv_gpiote_in_config_t' {aka 'struct '} has no member named 'init_state' SDK 15.3

I am trying to add to an existing project gpiote

I have copied the code from the example project and tried to add all the files and changes to my sdk_config.h to match the example but I cannot find the source of this cryptic error.

I mean cryptic because it does not point me in a direction (which is the problem with developing using the Nordic libraries.)

Please help what is missing.

'nrf_drv_gpiote_in_config_t' {aka 'struct <anonymous>'} has no member named 'init_state'

in expansion of macro 'NRFX_GPIOTE_CONFIG_OUT_TASK_TOGGLE'

in expansion of macro 'GPIOTE_CONFIG_OUT_TASK_TOGGLE'

As it gives the structure as anonymous it is hard to find how to solve the error except for blindly trying to add files and modify SDK settings to suit.

The call is here

#define GPIOTE_CONFIG_OUT_TASK_TOGGLE     NRFX_GPIOTE_CONFIG_OUT_TASK_TOGGLE

It does appear that this should be from the struct nrfx_gpiote_out_config_t

which is in the file NRFX_GPIOTE.H

The definition of this structure does not seem to be dependent on anything

Parents Reply
  • Thank you. For additional information I created my project and then with many functions working want to add GPIOTE functionality. So I looked at the example project and all the files in the example project I added to my project (the example project is compiling.) Then I modified my sdk_config.h to have the same settings as in the example project. However I cannot understand this error, it is a macro expansion which failed and has given a error which I find cryptic (no wonder since you don't seem to understand the error also.) That is the error is informing me that the compiler has not been able to correctly expand the macro. This obviously does work in the example project. I have read through the information you have linked me to but it does not address this issue in any way. Can you offer any more help as I have spent a lot of time trying to figure this out but seem to have not found any solution. 

Children
No Data
Related