I am experiencing the sample application ecat_appl located in \am335x_sysbios_ind_sdk_1.0.0.6\sdk\protocols\ethercat_slave\ In tiescappl.c there is the handling of the interrupt coming from Ethercat master:
Void PDItask(UArg arg1, UArg arg2)
{
Task_sleep(10*OS_TICKS_IN_MILLI_SEC);
#if AL_EVENT_ENABLED
while(1)
{
PRUSSDRVPruWaitEvent(HOST_AL_EVENT);
/* ISR processing */
HW_EcatIsr();
}
#endif
}
It seems to me that the interrupt from PRU is polled, so I kindly ask if someone knows the way to handle the interrupt in a faster and more deterministic way, accessing directly a HWI. Thans in advance Lamberto.