nRF52 pin configuration

Hi all, I've searched through the devzone but unfortunately my issue is never mentioned. 

The problem is: my nRF51 project is converted to a nRF52 project. Pins are all re-assigned etc. Now I'm programming but have an issue configuring the pin. Normally when assigning pins I've used for for example pin number 0.05:

nrf_gpio_pin_clear(5);
nrf_gpio_cfg_output(5);

Now with the nRF52 project, I'm trying to assign pin value 1.05:

nrf_gpio_pin_clear(32+5);
nrf_gpio_cfg_output(32+5);  

Unfortunately I get this error:

Please help :)

Parents Reply
  • Hello,

    Please try to use the NRF_GPIO_PIN_MAP() macro when you configuring pins on PORT 1.

    e.g.,

    nrf_gpio_pin_clear(NRF_GPIO_PIN_MAP(1,5));

    Awi said:
    Can anyone help me where all these definitions take place? I've looked everywhere but cannot find where it is defined. It somehow overrules what I have defined in my makefile.

    These symbols should only be defined in your Makefile.

Children
No Data
Related