MSP430™CapTIvateSoftwareLibraryAPIGuide
1_83_00_05
imports
captivate
COMM
FunctionTimer_Definitions.h
Go to the documentation of this file.
1
//*****************************************************************************
2
// FunctionTimer_Definitions.h
3
//
11
//
14
//
15
//*****************************************************************************
16
//*****************************************************************************
19
//*****************************************************************************
20
21
#ifndef FUNCTIONTIMER_DEF_H_
22
#define FUNCTIONTIMER_DEF_H_
23
24
#include "driverlib.h"
25
26
//
28
//
29
#include "
CAPT_CommConfig.h
"
30
31
//*****************************************************************************
32
//
35
//
36
//*****************************************************************************
37
// NOTE: Rather than enabling here, the enable is controlled in
38
// CAPT_CommConfig.
39
//#define FUNCTIONTIMER__ENABLE (true)
40
41
42
//*****************************************************************************
43
//
46
//
47
//*****************************************************************************
48
#ifdef __MSP430_HAS_TA3__
49
#define FUNCTIONTIMER__PERIPHERAL (TIMER_A3_BASE)
50
#elif __MSP430_HAS_TA1__
51
#define FUNCTIONTIMER__PERIPHERAL (TIMER_A1_BASE)
52
#else
53
#define FUNCTIONTIMER__PERIPHERAL (TIMER_A0_BASE)
54
#endif
55
56
//*****************************************************************************
57
//
60
//
61
//*****************************************************************************
62
#define FUNCTIONTIMER__CLOCK (TASSEL__ACLK)
63
64
//*****************************************************************************
65
//
68
//
69
//*****************************************************************************
70
#define FUNCTIONTIMER__DIVIDER (ID__1)
71
72
//*****************************************************************************
73
//
76
//
77
//*****************************************************************************
78
#define FUNCTIONTIMER__EXDIVIDER (TAIDEX_0)
79
80
//*****************************************************************************
81
//
84
//
85
//*****************************************************************************
86
#define FUNCTIONTIMER__LPM_CLEAR (LPM3_bits)
87
88
#endif
/* FUNCTIONTIMER_DEF_H_ */
89
90
//*****************************************************************************
93
//*****************************************************************************
CAPT_CommConfig.h
© Copyright 1995-2020
, Texas Instruments Incorporated. All rights reserved.
Trademarks
|
Privacy policy
|
Terms of use
|
Terms of sale