Hello,
What is GPIO uses bank interrupts?
A bnak has 16 gpio
If any one of the 16 gpio triggers an interrupt, will this bank trigger an interrupt?
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.
Hello,
What is GPIO uses bank interrupts?
A bnak has 16 gpio
If any one of the 16 gpio triggers an interrupt, will this bank trigger an interrupt?
Hi Zi Wang,
You can directly divide GPIO number by 16 to get the bank number. Each bank has 16 GPIOs.
Regards,
Brijesh
Hello Brijesh,
What is the difference between "GPIO bank interrupts" and a single GPIO interrupt?
For example, now I want to configure GPIO0_33's interrupt for R5FSS0_CORE0
GPIO0_33 -> GPIO4 bank2 pin1 //In the pinmux register, VGPIO_SEL field (BITS[5:4]) = 2
struct tisci_msg_rm_irq_set_req rmIrqReq;
rmIrqReq.src_id = TISCI_DEV_GPIO4;
rmIrqReq.src_index = 2;
rmIrqReq.dst_id = TISCI_DEV_R5FSS0_CORE0;
rmIrqReq.dst_host_irq = 176 + 2; //CSLR_R5FSS0_CORE0_INTR_GPIOMUX_INTRTR0_OUTP_16 + bank2
or
//I don't know if I need to configure the VGPIO_SEL field in this way?
rmIrqReq.src_id = TISCI_DEV_GPIOMUX_INTRTR0;
rmIrqReq.src_index = 33;
rmIrqReq.dst_id = TISCI_DEV_GPIOMUX_INTRTR0;
rmIrqReq.dst_host_irq = 18;
What is the difference between the above two methods?
Hi Zi Wang,
What is the difference between "GPIO bank interrupts" and a single GPIO interrupt?
didn't get this question. Bank interrupt would come whenever any one of the GPIO interrupt is triggered.. Whereas single GPIO interrupt would come only if that GPIO interrupt is triggered. You could find more information in the TRM.
Regards,
Brijesh
Hi Zi Wang,
You can find information on below links.
https://www.ti.com/product/TDA4VM
https://www.ti.com/lit/ds/symlink/tda4vm.pdf
Regards,
Brijesh