-
Notifications
You must be signed in to change notification settings - Fork 0
/
PR_Timers.h
63 lines (49 loc) · 3.09 KB
/
PR_Timers.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
63
/*******************************************************************************************************************************//**
*
* @file PR_Timers.h
* @brief Breve descripción del objetivo del Módulo
* @date 2 de jun. de 2017
* @author Ing. Marcelo Trujillo
*
**********************************************************************************************************************************/
/***********************************************************************************************************************************
*** MODULO
**********************************************************************************************************************************/
#ifndef PRIMITIVAS_PR_TIMERS_H_
#define PRIMITIVAS_PR_TIMERS_H_
/***********************************************************************************************************************************
*** INCLUDES GLOBALES
**********************************************************************************************************************************/
#include "DR_tipos.h"
/***********************************************************************************************************************************
*** DEFINES GLOBALES
**********************************************************************************************************************************/
#define DEC 0
#define SEG 1
#define MIN 2
#define RUN 0
#define PAUSE 1
#define N_TIMERS 30
/***********************************************************************************************************************************
*** MACROS GLOBALES
**********************************************************************************************************************************/
/***********************************************************************************************************************************
*** TIPO DE DATOS GLOBALES
**********************************************************************************************************************************/
typedef void ( *TmrHandler )( void );
/***********************************************************************************************************************************
*** VARIABLES GLOBALES
**********************************************************************************************************************************/
// extern tipo nombreVariable;
/***********************************************************************************************************************************
*** PROTOTIPOS DE FUNCIONES GLOBALES
**********************************************************************************************************************************/
void TimerStart ( uint8_t event , uint32_t time , uint8_t base , TmrHandler handler ) ;
void TimerSet ( uint8_t event , uint32_t time ) ;
void TimerStop ( uint8_t event ) ;
void TimerClose ( void ) ;
void TimerCheck ( void ) ;
void TimerEvent ( void ) ;
void TimerStandBy ( uint8_t event , uint8_t accion ) ;
uint32_t TimerGet ( uint8_t event ) ;
#endif /* PRIMITIVAS_PR_TIMERS_H_ */