if(extint_chan_is_detected(BUTTON_0_EIC_LINE)) {
// Do something in response to EXTINT edge detectionboolbutton_pin_state = port_pin_get_input_level(BUTTON_0_PIN);port_pin_set_output_level(LED_0_PIN, button_pin_state);
extint_chan_clear_detected(BUTTON_0_EIC_LINE);