-
Notifications
You must be signed in to change notification settings - Fork 1
/
board_define.h
84 lines (58 loc) · 1.41 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
82
83
84
#ifndef BOARD_DEFINE_H_
#define BOARD_DEFINE_H_
#define NRF528XX
//#define NRF528XX_FEM
#ifdef NRF528XX
#define SPI_MOSI_GPIO 11
#define SPI_MISO_GPIO 10
#define SPI_SCK_GPIO 9
#define SPI_CS_GPIO 8
#define UART_2_TX_GPIO 7
#define UART_2_RX_GPIO 6
#define ADC_0_GPIO 5 // AIN3
#define ADC_1_GPIO 4 // AIN2
#define UART_1_RX_GPIO 3
#define UART_1_TX_GPIO 2
#define GPIO_0_GPIO 31
#define GPIO_1_GPIO 30
#define GPIO_2_GPIO 29
#define GPIO_3_GPIO 28
#define I2C_SDA_GPIO 27
#define I2C_SCL_GPIO 26
#define GPIO_WKUP_GPIO 25
#endif
#ifdef NRF528XX_FEM
#define FEM_CPS 27
#define FEM_CTX 26
#define FEM_CHL 25
#define FEM_ANT_SEL 18
#define FEM_CSD 19
#define FEM_CRX 20
#define SPI_MOSI_GPIO 16
#define SPI_MISO_GPIO 15
#define SPI_SCK_GPIO 14
#define SPI_CS_GPIO 13
#define UART_2_TX_GPIO 12
#define UART_2_RX_GPIO 11
#define ADC_0_GPIO 4 // AIN2
#define ADC_1_GPIO 3 // AIN1
#define UART_1_RX_GPIO 2
#define UART_1_TX_GPIO 8
#define GPIO_0_GPIO 7
#define GPIO_1_GPIO 6
#define GPIO_2_GPIO 5
#define GPIO_3_GPIO 31
#define I2C_SDA_GPIO 30
#define I2C_SCL_GPIO 29
#define GPIO_WKUP_GPIO 28
#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_CELLUAR_PWR GPIO_0_GPIO
#define GPIO_GPS_EN GPIO_3_GPIO
#endif /* BOARD_DEFINE_H_ */