hello
I want to know the way to configure gpio interrupts for mcu2_0 in vision_apps
I see pdk_jacinto_08_00_00_37/packages/ti/board/diag/led/src/led_test.c has a way to configure, but I don't know how to do something like this in vision_apps
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
I want to know the way to configure gpio interrupts for mcu2_0 in vision_apps
I see pdk_jacinto_08_00_00_37/packages/ti/board/diag/led/src/led_test.c has a way to configure, but I don't know how to do something like this in vision_apps
Hi Zi Wang,
Yes, we can use GPIO module in vision apps. That's possible. For which GPIO do you want to get the interrupt?
Regards,
Brijesh
Hello Brijesh,
For example, I want to get the interrupt on the falling edge of W25(GPIO0_108), and then print "Hello World",
are there any examples?
thanks
Hi Zi Wang,
Can you please refer to below FAQ? You could use most of the stuff from this FAQ to get the interrupt. If you want just interrupt, please ignore/remove code related to DMA.
Regards,
Brijesh
Hi Zi Wang,
Can you please refer to attached sample example?
/cfs-file/__key/communityserver-discussions-components-files/791/app_5F00_gpio.c
Regards,
Brijesh
Hello Brijesh,
I don't understand this structure tisci_msg_rm_irq_set_req
Hi Zi Wang,
This is GPIO interrupt router which connects GPIO interrupt line to the irq line of the different cores.. It supports multiple GPIO input IRQ and 64output irq lines.. It is a configurable mux, so needs to be configured to connect GPIO irq to the one of the output irq. This is what is done by this API..
Regards,
Brijesh
Hello Brijesh,
thank you for your reply.
Below is the code you provided before.
I know that src_id, src_index means:
But I don't know that dst_id, dst_host_irq means here,I didn't find this "rmIrqReq.dst_host_irq = 24" definition?
Hi Zi Wang,
In this case, please refer below link. It provides the dst_host_irq number.
software-dl.ti.com/.../interrupt_cfg.html
Regards,
Brijesh
Hello Brijesh,
thanks for your help!
But I didn't find a definition of “24” in "GPIOMUX_INTRTR0 Interrupt Router Input Sources" and "GPIOMUX_INTRTR0 Interrupt Router Output Destinations"
and I don't understand what the link of this route looks like,in this code? GPIO1_35 -> GPIOMUX_INTRTR0_IN_163 -> ?
Hi Zi Wang,
did not get it, where am i using "24"?
GPIO Mux is multiplexer, which connects n inputs to m outputs..
GPIO1_35 -> GPIOMUX_INTRTR0_IN_163 -> ?
what is GPIOMUX_INTRTR0_IN_163?
Regards,
Brijesh
Hello Brijesh,
here i see GPIOMUX_INTRTR0_OUTP_START_R5FSS0 = 24
Hi Zi Wang,
That is 24th output line of GPIOMUX, which is connected to the irq line 184 of R5F.
GPIO_START=35 , src_index=35+128=163,I think it's GPIOMUX_INTRTR0_IN_163
Yes, this is correct, GPIO1_35 is input to 128+35 number on GPIOMUX.
Regards,
Brijesh
Hello Brijesh,
Thanks, this helped a lot in my understanding of IR
I have another question:
How to determine which destination to route when J721E_DEV_GPIOMUX_INTRTR0's "IR Output Index" are all 24
If this interrupt number 184 is used on R5FSS0_CORE0, can 184 still be used in R5FSS1_CORE0?
Can I understand this, for different CPUs, their registers for interrupts may be the same, but the actual physical link is different?
Hello Zi Wang,
As such, we can use any of the 16 interrupts on any core, but in the resource manager, out of 16 output interrupts, we have allocated 4 interrupts to each R5F, so that there is no conflict.
Regards,
Brijesh