esp-2014-15 / tp1g1 / 02TimerEvents / exer01.X / timer1.h @ 55
History | View | Annotate | Download (531 Bytes)
1 |
/*
|
---|---|
2 |
* File: timer1.h
|
3 |
* Author: z
|
4 |
*
|
5 |
* Created on September 30, 2014, 6:59 PM
|
6 |
*/
|
7 |
|
8 |
/*! \brief This library provides functions to access the timer1 module
|
9 |
*/
|
10 |
|
11 |
/** Initializing funtion
|
12 |
*
|
13 |
* Configure the timer1 parameters and frequency
|
14 |
*
|
15 |
* unsigned int frequency
|
16 |
*/
|
17 |
int initTimer1(unsigned int frequency); |
18 |
|
19 |
/** Start Function
|
20 |
*
|
21 |
* Starts the timer1
|
22 |
*/
|
23 |
int startTimer1(void); |
24 |
|
25 |
/** Stop Function
|
26 |
*
|
27 |
* Stops the timer1
|
28 |
*/
|
29 |
int stopTimer1(void); |
30 |
|
31 |
/** Reset Function
|
32 |
*
|
33 |
* Reset the timer1 counter
|
34 |
*/
|
35 |
int resetTimer1(void); |