Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main()
- {
- InitTimer0();
- while(1);
- }
- void InitTimer0()
- {
- //setup timer0 interrupt
- //...
- }
- void Interrupt() //will be fired every x ms
- {
- //perform some time-critical tasks
- //e.g. increase internal clock
- //...
- }
Add Comment
Please, Sign In to add comment