Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void delay(uint16_t wait)
- {
- uint32_t tmp;
- while(wait != 0)
- {
- //this block code realises 1ms delay
- tmp = 1;
- while(tmp != 9000)
- ++tmp;
- --wait;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement