-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmain_prv.h
48 lines (38 loc) · 1.59 KB
/
main_prv.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
/**************************************************************************
*
* FILE NAME: main_prv.h
* FILE DESCRIPTION: main private header
* FILE CREATION DATE: 9-01-2010
*
*==========================================================================
* This document contains confidential information which is protected by
* copyright and is proprietary to NIR Diagnostics Inc., Ontario, Canada. No part
* of this document may be used, copied, disclosed, or conveyed to another
* party without prior written consent of NIR Diagnostics Inc., Ontario, Canada.
***************************************************************************
*
* Modification history:
* --------------------
* 01a,9jan10 erd written
*
***************************************************************************/
#ifndef __MAIN_PRV_H_
#define __MAIN_PRV_H_
#include "main.h"
// ==========================================================================
// Constants
// submodules
typedef enum
{
TIMER_SM_UI, // user interface
// MUST be last: the number of submodules which require periodic 'tick's
TIMER_SM_COUNT
} TIMER_SUBMODULES;
// ==========================================================================
// Variables
// this array holds counters for each submodule - when the counter for the sub
// module will reach zero, the submodule's tick() routine will be called
static uint_16 timer_moduleTickLeft[TIMER_SM_COUNT];
// uS passed for 1 second timer
static uint_32 timer_oneSecondCorrection;
#endif /* __MAIN_PRV_H_ */