This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_encoder_pru_cleanup

Function Documentation

void rc_encoder_pru_cleanup(void)

Stops the PRU encoder counter and closes file descriptors. This is not strictly necessary but is recommended that the user calls this function at the end of their program.