Hi everyone,
How do i enable both rising and falling edge interrupt at the same time for a single GIO pin.
Thanks in advance.
regards,
Yuan Fa
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi everyone,
How do i enable both rising and falling edge interrupt at the same time for a single GIO pin.
Thanks in advance.
regards,
Yuan Fa
Please refer to GIOINTDET register in GIO module, if you set it to '1' for a particular a particular pin, then interrupt is generated for both the edges.
Hi Karthik,
Thanks for your help, it seems to be working after adding the following code in gio.c if i want bit 7 of gio to have both edge interrupts.
gioREG->INTDET = (uint32)((uint32)0U << 0U) /* Bit 0 */ | (uint32)((uint32)0U << 1U) /* Bit 1 */ | (uint32)((uint32)0U << 2U) /* Bit 2 */ | (uint32)((uint32)0U << 3U) /* Bit 3 */ | (uint32)((uint32)0U << 4U) /* Bit 4 */ | (uint32)((uint32)0U << 5U) /* Bit 5 */ | (uint32)((uint32)0U << 6U) /* Bit 6 */ | (uint32)((uint32)1U << 7U); /* Bit 7 */
regards,
Yuan Fa