This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

GPIO configuration issue

Hi nRF team,

I am configuring my GPIO pin with below code sample. 

out_config = GPIOTE_CONFIG_OUT_SIMPLE(false); 

err_code = nrfx_gpiote_out_init(MEM_SPI_SS_PIN, &out_config);
APP_ERROR_CHECK(err_code);
nrfx_gpiote_out_set(MEM_SPI_SS_PIN);

While compiling the above code, I am getting below build error. 

expected expression before '{' token 

in expansion of macro GPIOTE_CONFIG_OUT_SIMPLE 

What could be wrong in this? 

Regards

Lakshmi. 

Related