Statistics
| Branch: | Tag: | Revision:

mongoose / examples / MSP432 / ccs / MSP432_MG_hello / MSP_EXP432P401R.h @ eaef5bd1

History | View | Annotate | Download (7.69 KB)

1
/* clang-format off */
2
/*
3
 * Copyright (c) 2015, Texas Instruments Incorporated
4
 * All rights reserved.
5
 *
6
 * Redistribution and use in source and binary forms, with or without
7
 * modification, are permitted provided that the following conditions
8
 * are met:
9
 *
10
 * *  Redistributions of source code must retain the above copyright
11
 *    notice, this list of conditions and the following disclaimer.
12
 *
13
 * *  Redistributions in binary form must reproduce the above copyright
14
 *    notice, this list of conditions and the following disclaimer in the
15
 *    documentation and/or other materials provided with the distribution.
16
 *
17
 * *  Neither the name of Texas Instruments Incorporated nor the names of
18
 *    its contributors may be used to endorse or promote products derived
19
 *    from this software without specific prior written permission.
20
 *
21
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
25
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
28
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
30
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
31
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
 */
33
/** ============================================================================
34
 *  @file       MSP_EXP432P401R.h
35
 *
36
 *  @brief      MSP_EXP432P401R Board Specific APIs
37
 *
38
 *  The MSP_EXP432P401R header file should be included in an application as
39
 *  follows:
40
 *  @code
41
 *  #include <MSP_EXP432P401R.h>
42
 *  @endcode
43
 *
44
 *  ============================================================================
45
 */
46
#ifndef CS_MONGOOSE_EXAMPLES_MSP432_CCS_MG_HELLO_MSP_EXP432P401R_H_
47
#define CS_MONGOOSE_EXAMPLES_MSP432_CCS_MG_HELLO_MSP_EXP432P401R_H_
48

    
49
#ifdef __cplusplus
50
extern "C" {
51
#endif
52

    
53
/* LEDs on MSP_EXP432P401R are active high. */
54
#define MSP_EXP432P401R_LED_OFF (0)
55
#define MSP_EXP432P401R_LED_ON  (1)
56

    
57
/*!
58
 *  @def    MSP_EXP432P401R_GPIOName
59
 *  @brief  Enum of GPIO names on the MSP_EXP432P401R dev board
60
 */
61
typedef enum MSP_EXP432P401R_GPIOName {
62
    MSP_EXP432P401R_S1 = 0,
63
    MSP_EXP432P401R_S2,
64
    MSP_EXP432P401R_LED1,
65
    MSP_EXP432P401R_LED_RED,
66

    
67
    /*
68
     * MSP_EXP432P401R_LED_GREEN & MSP_EXP432P401R_LED_BLUE are used for
69
     * PWM examples.  Uncomment the following lines if you would like to control
70
     * the LEDs with the GPIO driver.
71
     */
72
    //MSP_EXP432P401R_LED_GREEN,
73
    //MSP_EXP432P401R_LED_BLUE,
74

    
75
    MSP_EXP432P401R_GPIOCOUNT
76
} MSP_EXP432P401R_GPIOName;
77

    
78
/*!
79
 *  @def    MSP_EXP432P401R_I2CName
80
 *  @brief  Enum of I2C names on the MSP_EXP432P401R dev board
81
 */
82
typedef enum MSP_EXP432P401R_I2CName {
83
    MSP_EXP432P401R_I2CB0 = 0,
84

    
85
    MSP_EXP432P401R_I2CCOUNT
86
} MSP_EXP432P401R_I2CName;
87

    
88
/*!
89
 *  @def    MSP_EXP432P401R_PWMName
90
 *  @brief  Enum of PWM names on the MSP_EXP432P401R dev board
91
 */
92
typedef enum MSP_EXP432P401R_PWMName {
93
    MSP_EXP432P401R_PWM_TA1_1 = 0,
94
    MSP_EXP432P401R_PWM_TA1_2,
95

    
96
    MSP_EXP432P401R_PWMCOUNT
97
} MSP_EXP432P401R_PWMName;
98

    
99
/*!
100
 *  @def    MSP_EXP432P401R_SDSPIName
101
 *  @brief  Enum of SDSPI names on the MSP_EXP432P401R dev board
102
 */
103
typedef enum MSP_EXP432P401R_SDSPIName {
104
    MSP_EXP432P401R_SDSPIB0 = 0,
105

    
106
    MSP_EXP432P401R_SDSPICOUNT
107
} EMSP_EXP432P401R_SDSPIName;
108

    
109
/*!
110
 *  @def    MSP_EXP432P401R_SPIName
111
 *  @brief  Enum of SPI names on the MSP_EXP432P401R dev board
112
 */
113
typedef enum MSP_EXP432P401R_SPIName {
114
    MSP_EXP432P401R_SPIB0 = 0,
115
    MSP_EXP432P401R_SPIB2,
116

    
117
    MSP_EXP432P401R_SPICOUNT
118
} MSP_EXP432P401R_SPIName;
119

    
120
/*!
121
 *  @def    MSP_EXP432P401R_UARTName
122
 *  @brief  Enum of UART names on the MSP_EXP432P401R dev board
123
 */
124
typedef enum MSP_EXP432P401R_UARTName {
125
    MSP_EXP432P401R_UARTA0 = 0,
126
    MSP_EXP432P401R_UARTA2,
127

    
128
    MSP_EXP432P401R_UARTCOUNT
129
} MSP_EXP432P401R_UARTName;
130

    
131
/*!
132
 *  @def    MSP_EXP432P401R_WatchdogName
133
 *  @brief  Enum of Watchdog names on the MSP_EXP432P401R dev board
134
 */
135
typedef enum MSP_EXP432P401R_WatchdogName {
136
    MSP_EXP432P401R_WATCHDOG = 0,
137

    
138
    MSP_EXP432P401R_WATCHDOGCOUNT
139
} MSP_EXP432P401R_WatchdogName;
140

    
141
/*!
142
 *  @def    MSP_EXP432P401R_WiFiName
143
 *  @brief  Enum of WiFi names on the MSP_EXP432P401R dev board
144
 */
145
typedef enum MSP_EXP432P401R_WiFiName {
146
    MSP_EXP432P401R_WIFI = 0,
147

    
148
    MSP_EXP432P401R_WIFICOUNT
149
} MSP_EXP432P401R_WiFiName;
150

    
151
/*!
152
 *  @brief  Initialize the general board specific settings
153
 *
154
 *  This function initializes the general board specific settings.
155
 */
156
extern void MSP_EXP432P401R_initGeneral(void);
157

    
158
/*!
159
 *  @brief  Initialize board specific GPIO settings
160
 *
161
 *  This function initializes the board specific GPIO settings and
162
 *  then calls the GPIO_init API to initialize the GPIO module.
163
 *
164
 *  The GPIOs controlled by the GPIO module are determined by the GPIO_PinConfig
165
 *  variable.
166
 */
167
extern void MSP_EXP432P401R_initGPIO(void);
168

    
169
/*!
170
 *  @brief  Initialize board specific I2C settings
171
 *
172
 *  This function initializes the board specific I2C settings and then calls
173
 *  the I2C_init API to initialize the I2C module.
174
 *
175
 *  The I2C peripherals controlled by the I2C module are determined by the
176
 *  I2C_config variable.
177
 */
178
extern void MSP_EXP432P401R_initI2C(void);
179

    
180
/*!
181
 *  @brief  Initialize board specific PWM settings
182
 *
183
 *  This function initializes the board specific PWM settings and then calls
184
 *  the PWM_init API to initialize the PWM module.
185
 *
186
 *  The PWM peripherals controlled by the PWM module are determined by the
187
 *  PWM_config variable.
188
 */
189
extern void MSP_EXP432P401R_initPWM(void);
190

    
191
/*!
192
 *  @brief  Initialize board specific SDSPI settings
193
 *
194
 *  This function initializes the board specific SDSPI settings and then calls
195
 *  the SDSPI_init API to initialize the SDSPI module.
196
 *
197
 *  The SDSPI peripherals controlled by the SDSPI module are determined by the
198
 *  SDSPI_config variable.
199
 */
200
extern void MSP_EXP432P401R_initSDSPI(void);
201

    
202
/*!
203
 *  @brief  Initialize board specific SPI settings
204
 *
205
 *  This function initializes the board specific SPI settings and then calls
206
 *  the SPI_init API to initialize the SPI module.
207
 *
208
 *  The SPI peripherals controlled by the SPI module are determined by the
209
 *  SPI_config variable.
210
 */
211
extern void MSP_EXP432P401R_initSPI(void);
212

    
213
/*!
214
 *  @brief  Initialize board specific UART settings
215
 *
216
 *  This function initializes the board specific UART settings and then calls
217
 *  the UART_init API to initialize the UART module.
218
 *
219
 *  The UART peripherals controlled by the UART module are determined by the
220
 *  UART_config variable.
221
 */
222
extern void MSP_EXP432P401R_initUART(void);
223

    
224
/*!
225
 *  @brief  Initialize board specific Watchdog settings
226
 *
227
 *  This function initializes the board specific Watchdog settings and then
228
 *  calls the Watchdog_init API to initialize the Watchdog module.
229
 *
230
 *  The Watchdog peripherals controlled by the Watchdog module are determined
231
 *  by the Watchdog_config variable.
232
 */
233
extern void MSP_EXP432P401R_initWatchdog(void);
234

    
235
/*!
236
 *  @brief  Initialize board specific WiFi settings
237
 *
238
 *  This function initializes the board specific WiFi settings and then calls
239
 *  the WiFi_init API to initialize the WiFi module.
240
 *
241
 *  The hardware resources controlled by the WiFi module are determined by the
242
 *  WiFi_config variable.
243
 *
244
 *  A SimpleLink CC3100 device or module is required and must be connected to
245
 *  use the WiFi driver.
246
 */
247
extern void MSP_EXP432P401R_initWiFi(void);
248

    
249
#ifdef __cplusplus
250
}
251
#endif
252

    
253
#endif /* CS_MONGOOSE_EXAMPLES_MSP432_CCS_MG_HELLO_MSP_EXP432P401R_H_ */