-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathinterrupts.h
36 lines (30 loc) · 1.07 KB
/
interrupts.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
/*
* -----------------------------------------------------------------------------
* ----- INTERRUPTS.H -----
* ----- EASYPAY -----
* -----------------------------------------------------------------------------
*
* File Description:
* This is the header file for interrupts.c, the setup file for interrupts.
*
* Assumptions:
* None
*
* Compiler:
* HI-TECH C Compiler for PIC18 MCUs (http://www.htsoft.com/)
*
* Revision History:
* Dec. 19, 2012 Nnoduka Eruchalu Initial Revision
* Apr. 26, 2013 Nnoduka Eruchalu Added Tmr2Init
*/
#ifndef INTERRUPTS_H
#define INTERRUPTS_H
/* TIMING CONSTANTS */
#define TMR0_FREQ 1125 /* 0.8889 ms period == 1125Hz */
#define TMR2_FREQ 2000 /* 0.5 ms period == 2000Hz */
/* FUNCTION PROTOTYPES */
/* initialize Timer 0 */
extern void Tmr0Init(void);
/* initialize Timer 2 */
extern void Tmr2Init(void);
#endif /* INTERRUPTS_H */