SHARE
TWEET

Untitled

a guest Jun 16th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void wait(int delay) {
  2.     // if we try to delay greater than the timer ticks to we'll wait forever
  3.     if (delay >= 65535) {
  4.         delay = 65534;
  5.     }
  6.     TMR5 = 0;
  7.     while (TMR5 < delay) {}
  8. }
RAW Paste Data
Top