Part Number: AM3352
Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
hello!
In our hardware design, EDMA events are triggered by GPIO interrupts to read FPGA data.
What configuration do I need for GPIO interrupts and EDMA triggers?
the PDK version is pdk_am335x_1_0_13,
Here are my GPIO Settings:
GPIODirModeSet(SOC_GPIO_0_REGS,20,GPIO_DIR_INPUT);
GPIOIntTypeSet(SOC_GPIO_0_REGS, 20, GPIO_INT_TYPE_RISE_EDGE);
GPIOPinIntEnable(SOC_GPIO_0_REGS, GPIO_INT_LINE_1, 0);
GPIODirModeSet(SOC_GPIO_0_REGS,19,GPIO_DIR_INPUT);
GPIOIntTypeSet(SOC_GPIO_0_REGS, 19, GPIO_INT_TYPE_RISE_EDGE);
GPIOPinIntEnable(SOC_GPIO_0_REGS, GPIO_INT_LINE_2, 0);
How can I set an interrupt callback function for this method of setting GPIO interrupts?
If sysbios hwi to implement, hwi id should be set?
/* ================ config hwi for GPIO,used for EDMA ================ */
var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
var hwiParams = new Hwi.Params;
hwiParams.arg = 5;
Program.global.hwi0 = Hwi.create(id, '&AppDMAInt0CallbackFxn', hwiParams);// is it 96 and 97 for GPIO0? and 96 is line 1, 97is lin 2?
In addition, I know how to call set the Trigger mode to Manual,
if I want to set the Trigger mode to Event, what configuration do I need to do with EDMA?
BR!