Autopilot-CVS: onboard/rev2 timer.h,2.0,2.1
Status: Alpha
Brought to you by:
tramm
|
From: Trammell H. <tr...@us...> - 2003-02-28 03:11:16
|
Update of /cvsroot/autopilot/onboard/rev2 In directory sc8-pr-cvs1:/tmp/cvs-serv30428 Modified Files: timer.h Log Message: Added global system clock value. Should be in <config.h>, but it is not ready Index: timer.h =================================================================== RCS file: /cvsroot/autopilot/onboard/rev2/timer.h,v retrieving revision 2.0 retrieving revision 2.1 diff -u -d -r2.0 -r2.1 --- timer.h 22 Sep 2002 02:10:18 -0000 2.0 +++ timer.h 28 Feb 2003 03:11:13 -0000 2.1 @@ -32,6 +32,16 @@ #include <sig-avr.h> /* + * System clock in MHz. This is used for UART baud rate generation, + * servo pulse timing, PPM sync frame detection, etc. + * + * You probably want 8 MHz for a 2.2 board. Custom 2.4 boards + * have 16 MHz clocks, but they are not stable yet. + */ +#define CLOCK 8ul + + +/* * Enable Timer1 (16-bit) running at Clk/1 for the global system * clock. This will be used for computing the servo pulse widths, * PPM decoding, etc. |