Brief: Timing Control Related Macros
Wait for specified number of cpu cycles
PEAK cycles: count cycles (1 for loop inst. + (count - 1) * NOP inst.)
Pseudo code:
wait(count-cycles);
count | number of cycles to wait |
Wait for specified number of nano seconds
PEAK cycles: $ceil(time/PRU_CLK_CYC_PRD_CONST) cycles
Pseudo code:
wait(time);
time | number of nano seconds to wait |