Hello,
I want to program a 8-bit parallel interface with PRU1 on the AM3359 using the GPI pins. I have set up the remap and when I debug the PRU core with CCS6, I get the data in the R31 Register.
Now I want to send an interrupt to the ARM running Linux every time I get a new 8-Bit data input (triggered by a 9th input pin, which acts as a clock input). But I don't understand how the R31 register exactly works. It has three modes: Event out Mapping, Status Mapping and General Purpose Inputs. Is it even possible to use the GPIs AND the Interrupt Control? How does this work?
I also found out that I have to set up some interrupt mappings in the resource table. Is there any manual or guide available for the resource table file? Like a list of commands, what all those commands like
#pragma DATA_SECTION(am335x_pru_remoteproc_ResourceTable, ".resource_table")
#pragma RETAIN(am335x_pru_remoteproc_ResourceTable)
exactly do? I would like to know how this resource table for remoteproc works.
Best regards
Nicolas Dammin