This example executes optimized memory to memory transfers on the PRU. The following three cases are tests:
Case 1: Source and destination addresses are aligned.
Case 2: Source and destination addresses are not aligned though the
offsets of source and destination addresses from next aligned addresses are
same.
Case 3: Source and destination addresses are not aligned, and the offsets
of source and destination addresses from next aligned addresses are not same.
See the PRU Software examples project in the SDK under example-applications. The source code for both the ARM and the PRU can be found there.