MSP430™CapTIvateSoftwareLibraryAPIGuide
1_70_00_03
imports
captivate
COMM
CAPT_CommConfig.h
Go to the documentation of this file.
1
//*****************************************************************************
4
//
7
//
8
//*****************************************************************************
9
//*****************************************************************************
12
//*****************************************************************************
13
14
#ifndef CAPT_COMMCONFIG_H_
15
#define CAPT_COMMCONFIG_H_
16
17
//*****************************************************************************
18
//
19
// CAPT_INTERFACE may be defined as one of the following options:
20
//
22
//
24
//
26
//
28
//
29
//*****************************************************************************
30
#define __CAPT_NO_INTERFACE__ (0)
31
#define __CAPT_UART_INTERFACE__ (1)
32
#define __CAPT_BULKI2C_INTERFACE__ (2)
33
#define __CAPT_REGISTERI2C_INTERFACE__ (3)
34
35
//*****************************************************************************
36
//
37
// Include the user's configuration selection options from the CAPT_UserConfig
38
// to integrate them into the library build.
39
//
40
//*****************************************************************************
41
#include "CAPT_UserConfig.h"
42
43
//*****************************************************************************
44
//
49
//
50
//*****************************************************************************
51
#define CAPT_TRANSMIT_BUFFER_SIZE (48)
52
53
//*****************************************************************************
54
//
56
//
57
//*****************************************************************************
58
#define CAPT_QUEUE_BUFFER_SIZE (256)
59
60
//*****************************************************************************
61
//
63
//
64
//*****************************************************************************
65
#define CAPT_I2C_RECEIVE_BUFFER_SIZE (32)
66
67
//*****************************************************************************
68
//
71
//
72
//*****************************************************************************
73
#define CAPT_I2C_REGISTER_RW_BUFFER_SIZE (32)
74
75
//*****************************************************************************
76
//
81
//
83
//
85
//
87
//
88
//*****************************************************************************
89
#ifdef __MSP430FR2522__ // MSP430FR2522
90
#define I2CSLAVE__REQ_POUT (P2OUT)
91
#define I2CSLAVE__REQ_PDIR (P2DIR)
92
#define I2CSLAVE__REQ_MASK (BIT4)
93
#else // MSP430FR2633, MSP430FR2533, MSP430FR2632, MSP430FR2532
94
#define I2CSLAVE__REQ_POUT (P1OUT)
95
#define I2CSLAVE__REQ_PDIR (P1DIR)
96
#define I2CSLAVE__REQ_MASK (BIT1)
97
#endif
98
99
//*****************************************************************************
100
//
105
//
106
//*****************************************************************************
107
#if (CAPT_INTERFACE==__CAPT_UART_INTERFACE__)
108
#define UART__ENABLE (true)
109
#define I2CSLAVE__ENABLE (false)
110
#define FUNCTIONTIMER__ENABLE (false)
111
#elif (CAPT_INTERFACE==__CAPT_BULKI2C_INTERFACE__)
112
#define UART__ENABLE (false)
113
#define I2CSLAVE__ENABLE (true)
114
#define FUNCTIONTIMER__ENABLE (true)
115
#elif (CAPT_INTERFACE==__CAPT_REGISTERI2C_INTERFACE__)
116
#define UART__ENABLE (false)
117
#define I2CSLAVE__ENABLE (true)
118
#define FUNCTIONTIMER__ENABLE (true)
119
#endif
120
121
#endif
/* CAPT_COMMCONFIG_H_ */
122
123
//*****************************************************************************
126
//*****************************************************************************
© Copyright 1995-2018
, Texas Instruments Incorporated. All rights reserved.
Trademarks
|
Privacy policy
|
Terms of use
|
Terms of sale