|
22 | 22 | // Tracker platform
|
23 | 23 | //-----------------------------------------------------------------------------
|
24 | 24 |
|
25 |
| -#if ( (PLATFORM_ID != PLATFORM_TRACKER) ) |
| 25 | +#if (PLATFORM_ID != PLATFORM_TRACKER) |
26 | 26 | #error "Platform not supported"
|
27 | 27 | #endif
|
28 | 28 |
|
|
56 | 56 | //
|
57 | 57 | // Pin and interface mapping
|
58 | 58 | //
|
59 |
| -#if (PLATFORM_ID == PLATFORM_TRACKER) |
60 |
| - #define BMI_SPI_INTERFACE (SPI1) |
61 |
| - #define BMI_SPI_CS_PIN (SEN_CS) |
62 |
| - #define BMI_INT_PIN (SEN_INT) |
63 |
| -#endif |
| 59 | +#define BMI_SPI_INTERFACE (SPI1) |
| 60 | +#define BMI_SPI_CS_PIN (SEN_CS) |
| 61 | +#define BMI_INT_PIN (SEN_INT) |
64 | 62 | #define BMI_INT_MODE (FALLING)
|
65 | 63 |
|
66 | 64 | #define UBLOX_SPI_INTERFACE (SPI1)
|
67 |
| -#if (PLATFORM_ID == PLATFORM_TRACKER) |
68 |
| - #define UBLOX_CS_PIN (GPS_CS) |
69 |
| - #define UBLOX_PWR_EN_PIN (GPS_PWR) |
70 |
| - #define UBLOX_RESETN_PIN (GPS_RST) |
71 |
| - #define UBLOX_TX_READY_MCU_PIN (GPS_INT) |
72 |
| -#endif |
| 65 | +#define UBLOX_CS_PIN (GPS_CS) |
| 66 | +#define UBLOX_PWR_EN_PIN (GPS_PWR) |
| 67 | +#define UBLOX_RESETN_PIN (GPS_RST) |
| 68 | +#define UBLOX_TX_READY_MCU_PIN (GPS_INT) |
73 | 69 | #define UBLOX_TX_READY_GPS_PIN (14) // PIO 14 is EXTINT on GPS Module
|
74 | 70 |
|
75 |
| -#if (PLATFORM_ID == PLATFORM_TRACKER) |
76 |
| - #define QUECTEL_GNSS_I2C_INTERFACE (Wire1) |
77 |
| - #define QUECTEL_GNSS_PWR_EN_PIN (GPS_PWR) |
78 |
| - #define QUECTEL_GNSS_WAKEUP_PIN (GPS_RST) |
79 |
| -#endif |
80 |
| - |
81 | 71 | #define ESP32_SPI_INTERFACE (SPI1)
|
82 |
| -#if (PLATFORM_ID == PLATFORM_TRACKER) |
83 |
| - #define ESP32_CS_PIN (WIFI_CS) |
84 |
| - #define ESP32_BOOT_MODE_PIN (WIFI_BOOT) |
85 |
| - #define ESP32_PWR_EN_PIN (WIFI_EN) |
86 |
| - #define ESP32_INT_PIN (WIFI_INT) |
87 |
| -#endif |
| 72 | +#define ESP32_CS_PIN (WIFI_CS) |
| 73 | +#define ESP32_BOOT_MODE_PIN (WIFI_BOOT) |
| 74 | +#define ESP32_PWR_EN_PIN (WIFI_EN) |
| 75 | +#define ESP32_INT_PIN (WIFI_INT) |
88 | 76 |
|
89 |
| -#if (PLATFORM_ID == PLATFORM_TRACKER) |
90 |
| - #define MCP_CAN_SPI_INTERFACE (SPI1) |
91 |
| - #define MCP_CAN_PWR_EN_PIN (CAN_PWR) |
92 |
| - #define MCP_CAN_RESETN_PIN (CAN_RST) |
93 |
| - #define MCP_CAN_CS_PIN (CAN_CS) |
94 |
| - #define MCP_CAN_INT_PIN (CAN_INT) |
95 |
| - #define MCP_CAN_STBY_PIN (CAN_STBY) |
96 |
| -#endif |
| 77 | +#define MCP_CAN_SPI_INTERFACE (SPI1) |
| 78 | +#define MCP_CAN_PWR_EN_PIN (CAN_PWR) |
| 79 | +#define MCP_CAN_RESETN_PIN (CAN_RST) |
| 80 | +#define MCP_CAN_CS_PIN (CAN_CS) |
| 81 | +#define MCP_CAN_INT_PIN (CAN_INT) |
| 82 | +#define MCP_CAN_STBY_PIN (CAN_STBY) |
97 | 83 |
|
98 | 84 |
|
99 | 85 | //
|
100 | 86 | // Tracker One Specifc IO
|
101 | 87 | //
|
102 | 88 | #define TRACKER_THERMISTOR (A0)
|
103 | 89 | #define TRACKER_USER_BUTTON (D1)
|
104 |
| -#if (PLATFORM_ID == PLATFORM_TRACKER) |
105 |
| - #define TRACKER_GNSS_LOCK_LED (D2) |
106 |
| -#endif |
107 |
| - |
108 |
| -#if (PLATFORM_ID == PLATFORM_TRACKER) |
109 |
| - //#define RTC_WDT_DISABLE // Optional define for Tracker |
110 |
| -#endif |
111 |
| -#define TRACKER_89503_THERMISTOR (A3) |
112 |
| -#define TRACKER_89503_USER_BUTTON (D2) |
113 |
| -#define TRACKER_89503_VIN_EN_PIN (NFC_PIN2) |
114 |
| - |
115 |
| -#define TRACKER_89503_STS3X_I2C_INSTANCE (Wire) |
116 |
| -#define TRACKER_89503_STS3X_I2C_ADDR (0x4a) |
117 |
| - |
118 |
| -#define TRACKER_89503_ADP8866_I2C_INSTANCE (Wire) |
119 |
| -#define TRACKER_89503_ADP8866_I2C_ADDR (0x27) |
120 |
| -#define TRACKER_89503_ADP8866_RESETN_PIN (NFC_PIN1) |
| 90 | +#define TRACKER_GNSS_LOCK_LED (D2) |
121 | 91 |
|
122 |
| -//#define RTC_WDT_DISABLE |
| 92 | +//#define RTC_WDT_DISABLE // Optional define for Tracker |
0 commit comments