Hi,
I have followed the tutorial at:http://lpccs-docs.dialog-semiconductor.com/da1468x_external_interruption/implementation.htmlto 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);
这是用于阻止interrup的代码t on the deletion of the task.
hw_wkup_reset_interrupt(); hw_wkup_unregister_interrupt();
Device:
Hi point85,
I assume that you are not running the example as it is, and you have done some modification in the freertos_retarget code. To do so, could you share me the modifications that you have done in order to replicate you issue? Also, could you indicate where the code gets stuck if you run it in debug mode?
Thanks, PM_Dialog