Hi team,
My button pin function is not working when I press the button on the DA14531EVZ module.
static void configure_alert_button() { wkupct_register_callback(app_button_press_cb); arch_printf("configure_alert_button"); wkupct_enable_irq(WKUPCT_PIN_SELECT(GPIO_BUTTON_PORT, GPIO_BUTTON_PIN), // select pin (GPIO_BUTTON_PORT, GPIO_BUTTON_PIN) WKUPCT_PIN_POLARITY(GPIO_BUTTON_PORT, GPIO_BUTTON_PIN, WKUPCT_PIN_POLARITY_LOW), // polarity low 1, // 1 event 0x3F); // debouncing time = 63 } static void app_button_press_cb() { arch_printf("app_button_press_cb"); configure_alert_button(); }
I am printing this: app_button_press_cb. This is not working and is not printing on UART. The pin status is also not being read in this function. Please give me a solution for this.
app_button_press_cb