@@ -221,17 +221,21 @@ void beginBoard()
221
221
222
222
else if (productVariant == RTK_EVK)
223
223
{
224
+ #ifdef EVKv1point1
225
+ // Pin defs etc. for EVK v1.1
224
226
present.psram_4mb = true ;
225
227
present.lband_neo = true ;
226
228
present.cellular_lara = true ;
227
229
present.ethernet_ws5500 = true ;
228
230
present.microSd = true ;
229
231
present.microSdCardDetectLow = true ;
230
232
present.button_mode = true ;
231
- present.peripheralPowerControl = true ; // Peripheral power controls the OLED, SD, ZED, NEO, USB Hub,
233
+ // Peripheral power controls the OLED, SD, ZED, NEO, USB Hub, LARA - if the SPWR & TPWR jumpers have been changed
234
+ present.peripheralPowerControl = true ;
232
235
present.laraPowerControl = true ; // Tertiary power controls the LARA
233
236
present.antennaShortOpen = true ;
234
237
present.timePulseInterrupt = true ;
238
+ present.gnss_to_uart = true ;
235
239
present.i2c0BusSpeed_400 = true ; // Run bus at higher speed
236
240
present.i2c1 = true ;
237
241
present.display_i2c1 = true ;
@@ -246,39 +250,109 @@ void beginBoard()
246
250
pin_modeButton = 0 ;
247
251
// 24, D2 : Status LED
248
252
pin_baseStatusLED = 2 ;
249
- // 29, D5 : ESP5 test point
250
- // 14, D12 : I2C1 SDA
253
+ // 29, D5 : GNSS TP via 74LVC4066 switch
254
+ pin_GNSS_TimePulse = 5 ;
255
+ // 14, D12 : I2C1 SDA via 74LVC4066 switch
251
256
pin_I2C1_SDA = 12 ;
252
- // 23, D15 : I2C1 SCL --> OLED after switch
257
+ // 23, D15 : I2C1 SCL via 74LVC4066 switch
253
258
pin_I2C1_SCL = 15 ;
254
259
255
260
// 26, D4 : microSD card select bar
256
261
pin_microSD_CS = 4 ;
257
262
// 16, D13 : LARA_TXDI
263
+ pin_Cellular_TX = 13 ;
258
264
// 13, D14 : LARA_RXDO
265
+ pin_Cellular_RX = 14 ;
259
266
260
267
// 30, D18 : SPI SCK --> Ethernet, microSD card
261
268
// 31, D19 : SPI POCI
262
- // 33, D21 : I2C0 SDA
269
+ // 33, D21 : I2C0 SDA --> ZED, NEO, USB2514B, TP, I/O connector
263
270
pin_I2C0_SDA = 21 ;
264
- // 36, D22 : I2C0 SCL --> ZED, NEO, USB2514B, TP, I/O connector
271
+ // 36, D22 : I2C0 SCL
265
272
pin_I2C0_SCL = 22 ;
266
273
// 37, D23 : SPI PICO
267
- // 10, D25 : TP/2
274
+ // 10, D25 : GNSS RX --> ZED UART1 TXO
275
+ pin_GnssUart_RX = 25 ;
276
+ // 11, D26 : LARA_PWR_ON
277
+ pin_Cellular_PWR_ON = 26 ;
278
+ // 12, D27 : Ethernet Chip Select
279
+ pin_Ethernet_CS = 27 ;
280
+ // 8, D32 : PWREN
281
+ pin_peripheralPowerControl = 32 ;
282
+ // 9, D33 : GNSS TX --> ZED UART1 RXI
283
+ pin_GnssUart_TX = 33 ;
284
+ // 6, A34 : LARA_NI
285
+ pin_Cellular_Network_Indicator = 34 ;
286
+ // 7, A35 : Board Detect (1.1V)
287
+ // 4, A36 : microSD card detect
288
+ pin_microSD_CardDetect = 36 ;
289
+ // 5, A39 : Ethernet Interrupt
290
+ pin_Ethernet_Interrupt = 39 ;
291
+ #else
292
+ // EVK v1.0 - TODO: delete this once all five EVK v1.0's have been upgraded / replaced
293
+ present.psram_4mb = true ;
294
+ present.lband_neo = true ;
295
+ present.cellular_lara = true ;
296
+ present.ethernet_ws5500 = true ;
297
+ present.microSd = true ;
298
+ present.microSdCardDetectLow = true ;
299
+ present.button_mode = true ;
300
+ // Peripheral power controls the OLED, SD, ZED, NEO, USB Hub, LARA - if the SPWR & TPWR jumpers have been changed
301
+ present.peripheralPowerControl = true ;
302
+ present.laraPowerControl = true ; // Tertiary power controls the LARA
303
+ present.antennaShortOpen = true ;
304
+ present.timePulseInterrupt = true ;
305
+ present.i2c0BusSpeed_400 = true ; // Run bus at higher speed
306
+ present.i2c1 = true ;
307
+ present.display_i2c1 = true ;
308
+ present.display_type = DISPLAY_128x64;
309
+ present.i2c1BusSpeed_400 = true ; // Run display bus at higher speed
310
+
311
+ // Pin Allocations:
312
+ // 35, D1 : Serial TX (CH340 RX)
313
+ // 34, D3 : Serial RX (CH340 TX)
314
+
315
+ // 25, D0 : Boot + Boot Button
316
+ pin_modeButton = 0 ;
317
+ // 24, D2 : Status LED
318
+ pin_baseStatusLED = 2 ;
319
+ // 29, D5 : LARA_ON - not used
320
+ // 14, D12 : I2C1 SDA via 74LVC4066 switch
321
+ pin_I2C1_SDA = 12 ;
322
+ // 23, D15 : I2C1 SCL via 74LVC4066 switch
323
+ pin_I2C1_SCL = 15 ;
324
+
325
+ // 26, D4 : microSD card select bar
326
+ pin_microSD_CS = 4 ;
327
+ // 16, D13 : LARA_TXDI
328
+ pin_Cellular_TX = 13 ;
329
+ // 13, D14 : LARA_RXDO
330
+ pin_Cellular_RX = 14 ;
331
+
332
+ // 30, D18 : SPI SCK --> Ethernet, microSD card
333
+ // 31, D19 : SPI POCI
334
+ // 33, D21 : I2C0 SDA --> ZED, NEO, USB2514B, TP, I/O connector
335
+ pin_I2C0_SDA = 21 ;
336
+ // 36, D22 : I2C0 SCL
337
+ pin_I2C0_SCL = 22 ;
338
+ // 37, D23 : SPI PICO
339
+ // 10, D25 : GNSS TP
268
340
pin_GNSS_TimePulse = 25 ;
269
- // 11, D26 : LARA_ON
341
+ // 11, D26 : LARA_PWR_ON
342
+ pin_Cellular_PWR_ON = 26 ;
270
343
// 12, D27 : Ethernet Chip Select
271
344
pin_Ethernet_CS = 27 ;
272
345
// 8, D32 : PWREN
273
346
pin_peripheralPowerControl = 32 ;
274
347
// 9, D33 : Ethernet Interrupt
275
348
pin_Ethernet_Interrupt = 33 ;
276
349
// 6, A34 : LARA_NI
350
+ pin_Cellular_Network_Indicator = 34 ;
277
351
// 7, A35 : Board Detect (1.1V)
278
352
// 4, A36 : microSD card detect
279
353
pin_microSD_CardDetect = 36 ;
280
- // 5, A39 : Unused analog pin - used to generate random values for SSL
281
-
354
+ // 5, A39 : Not used
355
+ # endif
282
356
// Select the I2C 0 data structure
283
357
if (i2c_0 == nullptr )
284
358
i2c_0 = new TwoWire (0 );
@@ -300,10 +374,19 @@ void beginBoard()
300
374
pinMode (pin_baseStatusLED, OUTPUT);
301
375
baseStatusLedOff ();
302
376
303
- // Turn on power to the I2C_1 bus
377
+ DMW_if systemPrintf (" pin_Cellular_Network_Indicator: %d\r\n " , pin_Cellular_Network_Indicator);
378
+ pinMode (pin_Cellular_Network_Indicator, INPUT);
379
+
380
+ // In the fullness of time, pin_Cellular_PWR_ON will (probably) be controlled by the Cellular Library
381
+ DMW_if systemPrintf (" pin_Cellular_PWR_ON: %d\r\n " , pin_Cellular_PWR_ON);
382
+ digitalWrite (pin_Cellular_PWR_ON, LOW);
383
+ pinMode (pin_Cellular_PWR_ON, OUTPUT);
384
+ digitalWrite (pin_Cellular_PWR_ON, LOW);
385
+
386
+ // Turn on power to the peripherals
304
387
DMW_if systemPrintf (" pin_peripheralPowerControl: %d\r\n " , pin_peripheralPowerControl);
305
388
pinMode (pin_peripheralPowerControl, OUTPUT);
306
- peripheralsOn (); // Turn on power to OLED, SD, ZED, NEO, USB Hub,
389
+ peripheralsOn (); // Turn on power to OLED, SD, ZED, NEO, USB Hub, LARA - if SPWR & TPWR jumpers have been changed
307
390
}
308
391
309
392
else if (productVariant == RTK_FACET_V2)
0 commit comments