I have followed the tutorial at:http://lpccs-docs.dialog-semiconductor.com/da1468x_external_interruption/implementation.html to get the hw_wkup to trigger an interrup on a GPIO pin. This is working well when the task is first run.
If i kill the task and then re-run the task the code gets stuck in a constant trigger of the callback even though the pin state is not changing.
Is this a bug in the hw_wkup control?
This is the code in the init of the task before the for loop.
hw_wkup_init(NULL); hw_wkup_configure_pin(ACCEL_INT2_PORT,ACCEL_INT2_PIN, 1, HW_WKUP_PIN_STATE_LOW); hw_wkup_set_counter_threshold(1); hw_wkup_set_debounce_time(1); hw_wkup_register_interrupt(accel_interrupt_cb, 1);
This is the code used to stop the interrupt on the deletion of the task.