-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtimer.h
62 lines (56 loc) · 1.56 KB
/
timer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//******************************************************************************
//! @file $RCSfile: timer.h,v $
//!
//! Please read file license.txt for copyright notice.
//!
//! @brief This file contains the prototypes for timers and eventually any
//! macros, constants, and/or global variables.
//!
//! This file can be parsed by Doxygen for automatic documentation generation.
//!
//! @version $Revision: 0.00 $ $Name: John Fritz (jfri2) $
//!
//! @todo Add function def doc, more other doc, add more fns if necessary
//! @bug
//******************************************************************************
#ifndef _TIMER_H_
#define _TIMER_H_
#ifdef TIMER0_ACTIVE
#ifndef TIMER0_PRESCALE
#warning "Define TIMER0_PRESCALE in config.h"
#elif TIMER0_PRESCALE != 1
#warning "Timer0 Prescalar value not supported. Change prescale value to 1 in config.h"
#endif
#endif
#ifdef TIMER1_ACTIVE
#ifndef TIMER1_PRESCALE
#warning "Define TIMER1_PRESCALE in config.h"
#elif TIMER1_PRESCALE != 8
#warning "Timer1 Prescalar value not supported. Change prescale value to 8 in config.h"
#endif
#endif
//------------------------------------------------------------------------------
// @fn timer0_init
//!
//! This function
//!
//! @warning none.
//!
//! @param none.
//!
//! @return none.
//!
void timer0_init(void);
//------------------------------------------------------------------------------
// @fn timer1_init
//!
//! This function
//!
//! @warning none.
//!
//! @param none.
//!
//! @return none.
//!
void timer1_init(void);
#endif