Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void wait(int delay) {
- // if we try to delay greater than the timer ticks to we'll wait forever
- if (delay >= 65535) {
- delay = 65534;
- }
- TMR5 = 0;
- while (TMR5 < delay) {}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement