其中没有相应的例程,
参考RTOS/AM5728: GPIO interrupt response is slow - Processors forum - Processors - TI E2E support forums
但无法运行,没有结果
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.
其中没有相应的例程,
参考RTOS/AM5728: GPIO interrupt response is slow - Processors forum - Processors - TI E2E support forums
但无法运行,没有结果
请问,有没有例程,配置后,无法进到中断内
CSL_FINS(regVal, CONTROL_CORE_PAD_IO_PAD_GPMC_BEN1_GPMC_BEN1_MUXMODE, 0xEU); ((CSL_padRegsOvly) CSL_DSP_CORE_PAD_IO_REGISTERS_REGS)->PAD_GPMC_BEN1 =regVal; // H6.gpmc_ben1.gpio2_27 CSL_xbarDspIrqConfigure(CSL_XBAR_IRQ_CPU_ID_DSP1, CSL_XBAR_INST_DSP1_IRQ_56, CSL_XBAR_GPIO2_IRQ_1); Hwi_Params hwiParams;//传入参数 Hwi_Handle myHwi;//句柄 Error_Block eb;//错误块 Error_init(&eb);//错误块初始化,注意必须初始化,否则易进入System_abort Hwi_Params_init(&hwiParams);//初始化传入参数 //hwiParams.enableInt = FALSE; hwiParams.eventId = 56; myHwi = Hwi_create(4, AppGpioCallbackFxn, &hwiParams, &eb); if (myHwi == NULL) { Log_print0(Diags_INFO, "--> user_debug_gpio_input_function: Hwi_create error!"); } else { Hwi_enableInterrupt(4); } /* GPIO initialization */ GPIO_init(); GPIOPinIntClear(SOC_GPIO2_BASE, GPIO_INT_LINE_1, (27)); GPIOPinIntEnable(SOC_GPIO2_BASE, GPIO_INT_LINE_1, (27));
我建议您观察一下GPIO相关的寄存器,例如引脚信号的变化,GPIO_IRQSTATUS_RAW的状态,排查一下问题。
详细可查看 27 章节的内容
https://www.ti.com.cn/cn/lit/ug/spruhz7j/spruhz7j.pdf
目前提供的完整的例程都在MyExampleProjects文件夹下:
\pdk_am57xx_1_0_15\packages\MyExampleProjects\GPIO_LedBlink_evmAM572x_c66xTestProject
我现在手头没有这款板子,从memory browser中查看一下。