Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (4.09 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
#ifndef CS_MONGOOSE_EXAMPLES_MSP432_CCS_MG_HELLO_BOARD_H_
35
#define CS_MONGOOSE_EXAMPLES_MSP432_CCS_MG_HELLO_BOARD_H_
36

    
37
#ifdef __cplusplus
38
extern "C" {
39
#endif
40

    
41
#include "MSP_EXP432P401R.h"
42

    
43
#define Board_initGeneral           MSP_EXP432P401R_initGeneral
44
#define Board_initGPIO              MSP_EXP432P401R_initGPIO
45
#define Board_initI2C               MSP_EXP432P401R_initI2C
46
#define Board_initPWM               MSP_EXP432P401R_initPWM
47
#define Board_initSDSPI             MSP_EXP432P401R_initSDSPI
48
#define Board_initSPI               MSP_EXP432P401R_initSPI
49
#define Board_initUART              MSP_EXP432P401R_initUART
50
#define Board_initWatchdog          MSP_EXP432P401R_initWatchdog
51
#define Board_initWiFi              MSP_EXP432P401R_initWiFi
52

    
53
#define Board_LED_ON                MSP_EXP432P401R_LED_ON
54
#define Board_LED_OFF               MSP_EXP432P401R_LED_OFF
55

    
56
#define Board_BUTTON0               MSP_EXP432P401R_S1
57
#define Board_BUTTON1               MSP_EXP432P401R_S2
58
#define Board_LED0                  MSP_EXP432P401R_LED1
59
#define Board_LED1                  MSP_EXP432P401R_LED_RED
60
#define Board_LED2                  MSP_EXP432P401R_LED_RED
61

    
62
/*
63
 * MSP_EXP432P401R_LED_GREEN & MSP_EXP432P401R_LED_BLUE are used for
64
 * PWM examples.  Uncomment the following lines if you would like to control
65
 * the LEDs with the GPIO driver.
66
 */
67
//#define Board_LED2                  MSP_EXP432P401R_LED_GREEN
68
//#define Board_LED3                  MSP_EXP432P401R_LED_BLUE
69

    
70
#define Board_I2C0                  MSP_EXP432P401R_I2CB0
71
#define Board_I2C_TMP               MSP_EXP432P401R_I2CB0
72
#define Board_I2C_NFC               MSP_EXP432P401R_I2CB0
73
#define Board_I2C_TPL0401           MSP_EXP432P401R_I2CB0
74

    
75
#define Board_PWM0                  MSP_EXP432P401R_PWM_TA1_1
76
#define Board_PWM1                  MSP_EXP432P401R_PWM_TA1_2
77

    
78
#define Board_SDSPI0                MSP_EXP432P401R_SDSPIB0
79

    
80
#define Board_SPI0                  MSP_EXP432P401R_SPIB0
81
#define Board_SPI1                  MSP_EXP432P401R_SPIB2
82

    
83
#define Board_UART0                 MSP_EXP432P401R_UARTA0
84
#define Board_UART1                 MSP_EXP432P401R_UARTA2
85

    
86
#define Board_WATCHDOG0             MSP_EXP432P401R_WATCHDOG
87

    
88
#define Board_WIFI                  MSP_EXP432P401R_WIFI
89
#define Board_WIFI_SPI              MSP_EXP432P401R_SPIB0
90

    
91
/* Board specific I2C addresses */
92
#define Board_TMP006_ADDR           (0x40)
93
#define Board_RF430CL330_ADDR       (0x28)
94
#define Board_TPL0401_ADDR          (0x40)
95

    
96
#ifdef __cplusplus
97
}
98
#endif
99

    
100
#endif /* CS_MONGOOSE_EXAMPLES_MSP432_CCS_MG_HELLO_BOARD_H_ */