-
Notifications
You must be signed in to change notification settings - Fork 0
/
board_define.h
81 lines (55 loc) · 2.06 KB
/
board_define.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#ifndef BOARD_DEFINE_H_
#define BOARD_DEFINE_H_
#include <ti/devices/cc13x2_cc26x2/driverlib/ioc.h>
//#define CC1312R1
#define CC1190_CC1312R1
#ifdef CC1312R1
#define SPI_MOSI_GPIO IOID_21 //PinNumber 31
#define SPI_MISO_GPIO IOID_20 //PinNumber 30
#define SPI_SCK_GPIO IOID_19 //PinNumber 29
#define SPI_CS_GPIO IOID_18 //PinNumber 28
#define UART_2_TX_GPIO IOID_17 //PinNumber 27
#define UART_2_RX_GPIO IOID_16 //PinNumber 26
#define ADC_0_GPIO IOID_24 //PinNumber 37
#define ADC_1_GPIO IOID_25 //PinNumber 38
#define UART_1_RX_GPIO IOID_10 //PinNumber 16
#define UART_1_TX_GPIO IOID_9 //PinNumber 15
#define GPIO_0_GPIO IOID_8 //PinNumber 14
#define GPIO_1_GPIO IOID_7 //PinNumber 12
#define GPIO_2_GPIO IOID_6 //PinNumber 11
#define GPIO_3_GPIO IOID_5 //PinNumber 10
#define I2C_SDA_GPIO IOID_4 //PinNumber 9
#define I2C_SCL_GPIO IOID_3 //PinNumber 8
#define GPIO_WKUP_GPIO IOID_2 //PinNumber 7
#endif
#ifdef CC1190_CC1312R1
#define CC1190_PA_EN IOID_1 //PinNumber 6
#define CC1190_LNA_EN IOID_2 //PinNumber 7
#define CC1190_HGM IOID_3 //PinNumber 8
#define SPI_MOSI_GPIO IOID_19 //PinNumber 29
#define SPI_MISO_GPIO IOID_18 //PinNumber 28
#define SPI_SCK_GPIO IOID_17 //PinNumber 27
#define SPI_CS_GPIO IOID_16 //PinNumber 26
#define UART_2_TX_GPIO IOID_14 //PinNumber 20
#define UART_2_RX_GPIO IOID_13 //PinNumber 19
#define ADC_0_GPIO IOID_24 //PinNumber 37
#define ADC_1_GPIO IOID_25 //PinNumber 38
#define UART_1_RX_GPIO IOID_12 //PinNumber 18
#define UART_1_TX_GPIO IOID_11 //PinNumber 17
#define GPIO_0_GPIO IOID_10 //PinNumber 16
#define GPIO_1_GPIO IOID_9 //PinNumber 15
#define GPIO_2_GPIO IOID_8 //PinNumber 14
#define GPIO_3_GPIO IOID_7 //PinNumber 12
#define I2C_SDA_GPIO IOID_6 //PinNumber 11
#define I2C_SCL_GPIO IOID_5 //PinNumber 10
#define GPIO_WKUP_GPIO IOID_4 //PinNumber 9
#endif
//Application Board PinMap
#define GPIO_LED_0 SPI_MISO_GPIO
#define GPIO_LED_1 SPI_SCK_GPIO
#define GPIO_LED_2 SPI_CS_GPIO
#define GPIO_0 GPIO_0_GPIO
#define GPIO_BUTTON_0 GPIO_1_GPIO
#define GPIO_BUTTON_1 GPIO_2_GPIO
#define GPIO_1 GPIO_3_GPIO
#endif /* BOARD_DEFINE_H_ */