Skip to content

Commit 9b9c728

Browse files
committed
moved pindefs from board to platformio.ini
1 parent 816bbf9 commit 9b9c728

File tree

2 files changed

+13
-25
lines changed

2 files changed

+13
-25
lines changed

variants/t1000-e/T1000eBoard.h

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,6 @@
33
#include <MeshCore.h>
44
#include <Arduino.h>
55

6-
// LoRa and SPI pins
7-
#define P_LORA_DIO_1 (32 + 1) // P1.1
8-
#define P_LORA_NSS (0 + 12) // P0.12
9-
#define P_LORA_RESET (32 + 10) // P1.10
10-
#define P_LORA_BUSY (0 + 7) // P0.7
11-
#define P_LORA_SCLK (0 + 11) // P0.11
12-
#define P_LORA_MISO (32 + 8) // P1.8
13-
#define P_LORA_MOSI (32 + 9) // P0.9
14-
15-
#define LR11X0_DIO_AS_RF_SWITCH true
16-
#define LR11X0_DIO3_TCXO_VOLTAGE 1.6
17-
18-
// built-ins
19-
//#define PIN_VBAT_READ 5
20-
//#define ADC_MULTIPLIER (3 * 1.73 * 1000)
21-
226
class T1000eBoard : public mesh::MainBoard {
237
protected:
248
uint8_t startup_reason;
@@ -75,11 +59,11 @@ class T1000eBoard : public mesh::MainBoard {
7559
pinMode(GPS_RESETB, OUTPUT);
7660
digitalWrite(GPS_RESETB, LOW);
7761
#endif
78-
62+
7963
#ifdef BUZZER_EN
8064
digitalWrite(BUZZER_EN, LOW);
8165
#endif
82-
66+
8367
#ifdef PIN_3V3_EN
8468
digitalWrite(PIN_3V3_EN, LOW);
8569
#endif

variants/t1000-e/platformio.ini

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ build_flags = ${nrf52_base.build_flags}
1515
-D RADIO_CLASS=CustomLR1110
1616
-D WRAPPER_CLASS=CustomLR1110Wrapper
1717
-D LORA_TX_POWER=22
18+
-D RF_SWITCH_TABLE
19+
-D RX_BOOSTED_GAIN=true
20+
-D P_LORA_BUSY=7 ; P0.7
21+
-D P_LORA_SCLK=11 ; P0.11
22+
-D P_LORA_NSS=12 ; P0.12
23+
-D P_LORA_DIO_1=33 ; P1.1
24+
-D P_LORA_MISO=40 ; P1.8
25+
-D P_LORA_MOSI=41 ; P0.9
26+
-D P_LORA_RESET=42 ; P1.10
27+
-D LR11X0_DIO_AS_RF_SWITCH=true
28+
-D LR11X0_DIO3_TCXO_VOLTAGE=1.6
1829
build_src_filter = ${nrf52_base.build_src_filter}
1930
+<helpers/*.cpp>
2031
+<helpers/nrf52/T1000eBoard.cpp>
@@ -33,8 +44,6 @@ build_flags = ${t1000-e.build_flags}
3344
-D MAX_NEIGHBOURS=8
3445
; -D MESH_PACKET_LOGGING=1
3546
; -D MESH_DEBUG=1
36-
-D RX_BOOSTED_GAIN=true
37-
-D RF_SWITCH_TABLE
3847
build_src_filter = ${t1000-e.build_src_filter}
3948
+<../examples/simple_repeater>
4049
lib_deps = ${t1000-e.lib_deps}
@@ -51,7 +60,6 @@ build_flags = ${t1000-e.build_flags}
5160
-D ROOM_PASSWORD='"hello"'
5261
; -D MESH_PACKET_LOGGING=1
5362
; -D MESH_DEBUG=1
54-
-D RX_BOOSTED_GAIN=true
5563
-D RF_SWITCH_TABLE
5664
build_src_filter = ${t1000-e.build_src_filter}
5765
+<../examples/simple_room_server>
@@ -67,8 +75,6 @@ build_flags = ${t1000-e.build_flags}
6775
; -D MESH_PACKET_LOGGING=1
6876
; -D MESH_DEBUG=1
6977
-D OFFLINE_QUEUE_SIZE=256
70-
-D RX_BOOSTED_GAIN=true
71-
-D RF_SWITCH_TABLE
7278
-D DISPLAY_CLASS=NullDisplayDriver
7379
-D PIN_BUZZER=25
7480
-D PIN_BUZZER_EN=37 ; P1/5 - required for T1000-E
@@ -92,8 +98,6 @@ build_flags = ${t1000-e.build_flags}
9298
; -D MESH_PACKET_LOGGING=1
9399
; -D MESH_DEBUG=1
94100
-D OFFLINE_QUEUE_SIZE=256
95-
-D RX_BOOSTED_GAIN=true
96-
-D RF_SWITCH_TABLE
97101
-D DISPLAY_CLASS=NullDisplayDriver
98102
-D PIN_BUZZER=25
99103
-D PIN_BUZZER_EN=37 ; P1/5 - required for T1000-E

0 commit comments

Comments
 (0)