nRF52832

Hi,

I developed a custom board and I am able to toggle other IO pins but somehow pin 10, 9 wasn't working. After some research, I found that NFC must be disabled to make it work.
I did the following steps but still not able to make it work.
Can someone help me with it?

#include <stdbool.h>
#include <stdint.h>
#include "nrf_delay.h"
#include "nrf_gpio.h"

/**
 * @brief Function for application main entry.
 */
 #define IN1 10
 #define IN2 9
 #define nslp 11
int main(void)
{   CONFIG_NFCT_PINS_AS_GPIOS;
    nrf_gpio_cfg_output(IN1);
    nrf_gpio_cfg_output(IN2);
    nrf_gpio_cfg_output(nslp);




    while (true)
    {
     nrf_gpio_pin_set(nslp);
     nrf_gpio_pin_clear(IN2);
     nrf_gpio_pin_set(IN1);
     nrf_delay_ms(3000);
     nrf_gpio_pin_clear(nslp);
     nrf_gpio_pin_clear(IN1);
     nrf_gpio_pin_set(IN2);
     nrf_delay_ms(3000);
     
    }
}


Parents Reply Children
No Data
Related