Guest User

Untitled

a guest
Apr 24th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. stopwatch.cc File Reference
  2. #include <stdlib.h>
  3. #include <avr/io.h>
  4. #include <avr/interrupt.h>
  5. #include "rs232.h"
  6. #include "stl_us_timer.h"
  7. Defines
  8. 1#define BAUD_DIV  52
  9. Functions
  10. 2int main ()
  11.  
  12. Detailed Description
  13. This program implements a timer with lap timing capabilities on our microprocessor Revisions
  14. 301-05-08 JRR Original file
  15. 404-03-08 JW/MR Completed code
  16. 504-03-10 JW/MR Commented code
  17. Definition in file stopwatch.cc.
  18.  
  19. Define Documentation
  20. #define BAUD_DIV  52
  21. This is the baud rate divisor for the serial port. It should give 9600 baud for the CPU crystal speed in use; for example, 26 works for a 4MHz crystal
  22. Definition at line 23 of file stopwatch.cc.
  23. Referenced by main().
  24.  
  25. Function Documentation
  26. int main ()
  27. The main function is the "entry point" of every C program, the one which runs first (after standard setup code has finished). For mechatronics programs, main() runs an infinite loop and never exits.
  28. Returns:
  29. Although a mechatronics program never returns (there's no OS to return to), we generally have to return something, such as zero, to keep the compiler happy
  30. Definition at line 34 of file stopwatch.cc.
  31. References BAUD_DIV, rs232::check_for_char(), endl, task_timer::get_time_now(), rs232::getchar(), time_stamp::set_time(), and task_timer::set_time().
Add Comment
Please, Sign In to add comment