-
Notifications
You must be signed in to change notification settings - Fork 2
/
board_define.h
49 lines (33 loc) · 1.19 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
#ifndef BOARD_DEFINE_H_
#define BOARD_DEFINE_H_
#define CC1312R1
#ifdef CC1312R1
#include <ti/devices/cc13x2_cc26x2/driverlib/ioc.h>
#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 I2C_SDA_GPIO IOID_4 //PinNumber 9
#define I2C_SCL_GPIO IOID_3 //PinNumber 8
#define UART_2_TX_GPIO IOID_17 //PinNumber 27
#define UART_2_RX_GPIO IOID_16 //PinNumber 26
#define UART_1_TX_GPIO IOID_9 //PinNumber 15
#define UART_1_RX_GPIO IOID_10 //PinNumber 16
#define ADC_0_GPIO IOID_24 //PinNumber 37
#define ADC_1_GPIO IOID_25 //PinNumber 38
#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 GPIO_WKUP_GPIO IOID_2 //PinNumber 7
#endif
//Application Board PinMap
#define GPIO_LED_0 SPI_MISO_GPIO
#define GPIO_LED_1 SPI_MOSI_GPIO
#define GPIO_BTN SPI_SCK_GPIO
#define GPIO_BAT_EN SPI_CS_GPIO
#define GPIO_BAT_LEVEL ADC_0_GPIO
#define GPIO_CELLUAR_EN GPIO_2_GPIO
#define GPIO_GPS_EN GPIO_3_GPIO
#define GPIO_CELLUAR_PWR GPIO_0_GPIO
#endif /* BOARD_DEFINE_H_ */