Hi All, In ble_app_hrs example two function is defined for gpiote_init() 1) static void gpiote_init(void) { APP_GPIOTE_INIT(APP_GPIOTE_MAX_USERS); }
2)
static void gpiote_init(void)
{
// Configure the GPIOTE Task to toggle the LED state.
nrf_gpiote_task_config(GPIOTE_CHAN_FOR_LED_TASK,
ADVERTISING_LED_PIN_NO,
NRF_GPIOTE_POLARITY_TOGGLE,
NRF_GPIOTE_INITIAL_VALUE_LOW);
}
1) i want to know is this two function any way linked with each other ?
2) if i have to use this function in my code for nrf51288 to initialize gpiote
then for which function i should go for?
can anyone please share information related to it. Thanks