Hi,
I've tried to do an example of FOC control from Sys/Bios SDK (named: motor control). At the stage of PRU-ICSS initialization, the appropriate struct pruss0_intc_initdata generated in main.c is equal to constant PRU_ICSS0_INTC_INITDATA defined in file pruss_intc_mapping.h. Most of the PRU System Events are detailed in Table 30-28. "PRU-ICSS0 System Event" from AM4379 TRM what seems preety easy so far. However, four interrupts (ICSS0_PRU_ENDAT_TRIGGER, ICSS0_PRU_ADC_MAN_TRIG, ICSS0_PRU_ARM_FOC_TRIG, ICSS0_PRU_ENDAT_COMPLETE) are of the numbers 16-19 so they should be generated by the PRU itself. I cannot find any hint where the signals from ADC or Encoder are connected to those events. Is there any function or definition in the code where those sources are set to activate the events 16-19 of the PRU?
I use the IDK AM437X together with SYS/BIOS SDK 2.1.1.2
Thank you in advance.
Jacek