Contiki-NG
arch
platform
simplelink
cc13xx-cc26xx
sensortag
cc1350
Board.h
1
/*
2
* Copyright (c) 2015-2018, Texas Instruments Incorporated
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
*
9
* * Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
*
12
* * Redistributions in binary form must reproduce the above copyright
13
* notice, this list of conditions and the following disclaimer in the
14
* documentation and/or other materials provided with the distribution.
15
*
16
* * Neither the name of Texas Instruments Incorporated nor the names of
17
* its contributors may be used to endorse or promote products derived
18
* from this software without specific prior written permission.
19
*
20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
*/
32
33
#ifndef __BOARD_H
34
#define __BOARD_H
35
36
#define Board_CC1350STK
37
#define BOARD_STRING "TI CC1350 SensorTag"
38
39
#ifdef __cplusplus
40
extern
"C"
{
41
#endif
42
43
#include "
CC1350STK.h
"
44
45
#define Board_initGeneral() CC1350STK_initGeneral()
46
#define Board_shutDownExtFlash() CC1350STK_shutDownExtFlash()
47
#define Board_wakeUpExtFlash() CC1350STK_wakeUpExtFlash()
48
49
/* These #defines allow us to reuse TI-RTOS across other device families */
50
51
#define Board_BUZZER CC1350STK_BUZZER
52
#define Board_BUZZER_ON CC1350STK_LED_ON
53
#define Board_BUZZER_OFF CC1350STK_LED_OFF
54
55
#define Board_CRYPTO0 CC1350STK_CRYPTO0
56
57
#define Board_GPIO_BUTTON0 CC1350STK_GPIO_S1
58
#define Board_GPIO_BUTTON1 CC1350STK_GPIO_S2
59
#define Board_GPIO_LED0 CC1350STK_GPIO_LED0
60
#define Board_GPIO_LED1 CC1350STK_GPIO_LED0
61
#define Board_GPIO_LED_ON CC1350STK_GPIO_LED_ON
62
#define Board_GPIO_LED_OFF CC1350STK_GPIO_LED_OFF
63
64
#define Board_GPTIMER0A CC1350STK_GPTIMER0A
65
#define Board_GPTIMER0B CC1350STK_GPTIMER0B
66
#define Board_GPTIMER1A CC1350STK_GPTIMER1A
67
#define Board_GPTIMER1B CC1350STK_GPTIMER1B
68
#define Board_GPTIMER2A CC1350STK_GPTIMER2A
69
#define Board_GPTIMER2B CC1350STK_GPTIMER2B
70
#define Board_GPTIMER3A CC1350STK_GPTIMER3A
71
#define Board_GPTIMER3B CC1350STK_GPTIMER3B
72
73
#define Board_I2C0 CC1350STK_I2C0
74
#define Board_I2C0_SDA1 CC1350STK_I2C0_SDA1
75
#define Board_I2C0_SCL1 CC1350STK_I2C0_SCL1
76
#define Board_I2C_TMP CC1350STK_I2C0
77
78
#define Board_KEY_LEFT CC1350STK_KEY_LEFT
79
#define Board_KEY_RIGHT CC1350STK_KEY_RIGHT
80
#define Board_RELAY CC1350STK_RELAY
81
82
#define Board_MIC_POWER CC1350STK_MIC_POWER
83
#define Board_MIC_POWER_OM CC1350STK_MIC_POWER_ON
84
#define Board_MIC_POWER_OFF CC1350STK_MIC_POWER_OFF
85
86
#define Board_MPU_INT CC1350STK_MPU_INT
87
#define Board_MPU_POWER CC1350STK_MPU_POWER
88
#define Board_MPU_POWER_OFF CC1350STK_MPU_POWER_OFF
89
#define Board_MPU_POWER_ON CC1350STK_MPU_POWER_ON
90
91
#define Board_TMP_RDY CC1350STK_TMP_RDY
92
93
#define Board_NVSINTERNAL CC1350STK_NVSCC26XX0
94
#define Board_NVSEXTERNAL CC1350STK_NVSSPI25X0
95
96
#define Board_PDM0 CC2650STK_PDM0
97
98
#define Board_PIN_BUTTON0 CC1350STK_KEY_LEFT
99
#define Board_PIN_BUTTON1 CC1350STK_KEY_RIGHT
100
#define Board_PIN_BTN1 CC1350STK_KEY_LEFT
101
#define Board_PIN_BTN2 CC1350STK_KEY_RIGHT
102
#define Board_PIN_LED0 CC1350STK_PIN_LED1
103
#define Board_PIN_LED1 CC1350STK_PIN_LED1
104
#define Board_PIN_LED2 CC1350STK_PIN_LED1
105
106
#define Board_PWM0 CC1350STK_PWM0
107
#define Board_PWM1 CC1350STK_PWM0
108
#define Board_PWM2 CC1350STK_PWM2
109
#define Board_PWM3 CC1350STK_PWM3
110
#define Board_PWM4 CC1350STK_PWM4
111
#define Board_PWM5 CC1350STK_PWM5
112
#define Board_PWM6 CC1350STK_PWM6
113
#define Board_PWM7 CC1350STK_PWM7
114
115
#define Board_SPI0 CC1350STK_SPI0
116
#define Board_SPI0_MISO CC1350STK_SPI0_MISO
117
#define Board_SPI0_MOSI CC1350STK_SPI0_MOSI
118
#define Board_SPI0_CLK CC1350STK_SPI0_CLK
119
#define Board_SPI0_CSN CC1350STK_SPI0_CSN
120
#define Board_SPI1 CC1350STK_SPI1
121
#define Board_SPI1_MISO CC1350STK_SPI1_MISO
122
#define Board_SPI1_MOSI CC1350STK_SPI1_MOSI
123
#define Board_SPI1_CLK CC1350STK_SPI1_CLK
124
#define Board_SPI1_CSN CC1350STK_SPI1_CSN
125
#define Board_SPI_FLASH_CS CC1350STK_SPI_FLASH_CS
126
#define Board_FLASH_CS_ON CC1350STK_FLASH_CS_ON
127
#define Board_FLASH_CS_OFF CC1350STK_FLASH_CS_OFF
128
129
#define Board_UART0 CC1350STK_UART0
130
131
#define Board_WATCHDOG0 CC1350STK_WATCHDOG0
132
133
/* Board specific I2C addresses */
134
#define Board_BMP280_ADDR (0x77)
135
#define Board_HDC1000_ADDR (0x43)
136
#define Board_MPU9250_ADDR (0x68)
137
#define Board_MPU9250_MAG_ADDR (0x0C)
138
#define Board_OPT3001_ADDR (0x45)
139
#define Board_TMP_ADDR (0x44)
140
141
#ifdef __cplusplus
142
}
143
#endif
144
145
#endif
/* __BOARD_H */
CC1350STK.h
============================================================================
Generated on Sat May 30 2020 17:57:35 for Contiki-NG by
1.8.13