Skip to content

Commit 33d4186

Browse files
jdieg0me-no-dev
authored andcommitted
Add board "SparkFun LoRa Gateway 1-Channel". (espressif#2664)
* Add board "SparkFun LoRa Gateway 1-Channel". * Extend boards.txt. Source: https://learn.sparkfun.com/tutorials/sparkfun-lora-gateway-1-channel-hookup-guide/all
1 parent 6dab3f6 commit 33d4186

File tree

2 files changed

+129
-0
lines changed

2 files changed

+129
-0
lines changed

boards.txt

+71
Original file line numberDiff line numberDiff line change
@@ -3451,4 +3451,75 @@ esp32cam.build.code_debug=0
34513451

34523452
##############################################################
34533453

3454+
sparkfun_lora_gateway_1-channel.name=SparkFun LoRa Gateway 1-Channel
3455+
3456+
sparkfun_lora_gateway_1-channel.upload.tool=esptool_py
3457+
sparkfun_lora_gateway_1-channel.upload.maximum_size=1310720
3458+
sparkfun_lora_gateway_1-channel.upload.maximum_data_size=294912
3459+
sparkfun_lora_gateway_1-channel.upload.wait_for_upload_port=true
3460+
3461+
sparkfun_lora_gateway_1-channel.serial.disableDTR=true
3462+
sparkfun_lora_gateway_1-channel.serial.disableRTS=true
3463+
3464+
sparkfun_lora_gateway_1-channel.build.mcu=esp32
3465+
sparkfun_lora_gateway_1-channel.build.core=esp32
3466+
sparkfun_lora_gateway_1-channel.build.variant=sparkfun_lora_gateway_1-channel
3467+
sparkfun_lora_gateway_1-channel.build.board=ESP32_DEV
3468+
3469+
sparkfun_lora_gateway_1-channel.build.f_cpu=240000000L
3470+
sparkfun_lora_gateway_1-channel.build.flash_size=4MB
3471+
sparkfun_lora_gateway_1-channel.build.flash_freq=40m
3472+
sparkfun_lora_gateway_1-channel.build.flash_mode=dio
3473+
sparkfun_lora_gateway_1-channel.build.boot=dio
3474+
sparkfun_lora_gateway_1-channel.build.partitions=default
3475+
3476+
sparkfun_lora_gateway_1-channel.menu.PartitionScheme.default=Default
3477+
sparkfun_lora_gateway_1-channel.menu.PartitionScheme.default.build.partitions=default
3478+
sparkfun_lora_gateway_1-channel.menu.PartitionScheme.minimal=Minimal (2MB FLASH)
3479+
sparkfun_lora_gateway_1-channel.menu.PartitionScheme.minimal.build.partitions=minimal
3480+
sparkfun_lora_gateway_1-channel.menu.PartitionScheme.no_ota=No OTA (Large APP)
3481+
sparkfun_lora_gateway_1-channel.menu.PartitionScheme.no_ota.build.partitions=no_ota
3482+
sparkfun_lora_gateway_1-channel.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
3483+
sparkfun_lora_gateway_1-channel.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
3484+
sparkfun_lora_gateway_1-channel.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
3485+
sparkfun_lora_gateway_1-channel.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
3486+
3487+
sparkfun_lora_gateway_1-channel.menu.FlashMode.qio=QIO
3488+
sparkfun_lora_gateway_1-channel.menu.FlashMode.qio.build.flash_mode=dio
3489+
sparkfun_lora_gateway_1-channel.menu.FlashMode.qio.build.boot=qio
3490+
sparkfun_lora_gateway_1-channel.menu.FlashMode.dio=DIO
3491+
sparkfun_lora_gateway_1-channel.menu.FlashMode.dio.build.flash_mode=dio
3492+
sparkfun_lora_gateway_1-channel.menu.FlashMode.dio.build.boot=dio
3493+
sparkfun_lora_gateway_1-channel.menu.FlashMode.qout=QOUT
3494+
sparkfun_lora_gateway_1-channel.menu.FlashMode.qout.build.flash_mode=dout
3495+
sparkfun_lora_gateway_1-channel.menu.FlashMode.qout.build.boot=qout
3496+
sparkfun_lora_gateway_1-channel.menu.FlashMode.dout=DOUT
3497+
sparkfun_lora_gateway_1-channel.menu.FlashMode.dout.build.flash_mode=dout
3498+
sparkfun_lora_gateway_1-channel.menu.FlashMode.dout.build.boot=dout
3499+
3500+
sparkfun_lora_gateway_1-channel.menu.FlashFreq.80=80MHz
3501+
sparkfun_lora_gateway_1-channel.menu.FlashFreq.80.build.flash_freq=80m
3502+
sparkfun_lora_gateway_1-channel.menu.FlashFreq.40=40MHz
3503+
sparkfun_lora_gateway_1-channel.menu.FlashFreq.40.build.flash_freq=40m
3504+
3505+
sparkfun_lora_gateway_1-channel.menu.FlashSize.4M=4MB (32Mb)
3506+
sparkfun_lora_gateway_1-channel.menu.FlashSize.4M.build.flash_size=4MB
3507+
3508+
sparkfun_lora_gateway_1-channel.menu.UploadSpeed.921600=921600
3509+
sparkfun_lora_gateway_1-channel.menu.UploadSpeed.921600.upload.speed=921600
3510+
sparkfun_lora_gateway_1-channel.menu.UploadSpeed.115200=115200
3511+
sparkfun_lora_gateway_1-channel.menu.UploadSpeed.115200.upload.speed=115200
3512+
sparkfun_lora_gateway_1-channel.menu.UploadSpeed.256000.windows=256000
3513+
sparkfun_lora_gateway_1-channel.menu.UploadSpeed.256000.upload.speed=256000
3514+
sparkfun_lora_gateway_1-channel.menu.UploadSpeed.230400.windows.upload.speed=256000
3515+
sparkfun_lora_gateway_1-channel.menu.UploadSpeed.230400=230400
3516+
sparkfun_lora_gateway_1-channel.menu.UploadSpeed.230400.upload.speed=230400
3517+
sparkfun_lora_gateway_1-channel.menu.UploadSpeed.460800.linux=460800
3518+
sparkfun_lora_gateway_1-channel.menu.UploadSpeed.460800.macosx=460800
3519+
sparkfun_lora_gateway_1-channel.menu.UploadSpeed.460800.upload.speed=460800
3520+
sparkfun_lora_gateway_1-channel.menu.UploadSpeed.512000.windows=512000
3521+
sparkfun_lora_gateway_1-channel.menu.UploadSpeed.512000.upload.speed=512000
3522+
3523+
##############################################################
3524+
34543525

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
#define EXTERNAL_NUM_INTERRUPTS 16
7+
#define NUM_DIGITAL_PINS 40
8+
#define NUM_ANALOG_INPUTS 16
9+
10+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
11+
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
12+
#define digitalPinHasPWM(p) (p < 34)
13+
14+
static const int LED_BUILTIN = 17;
15+
16+
static const uint8_t TX = 1;
17+
static const uint8_t RX = 3;
18+
19+
static const uint8_t SDA = 21;
20+
static const uint8_t SCL = 22;
21+
22+
static const uint8_t SS = 16;
23+
static const uint8_t MOSI = 13;
24+
static const uint8_t MISO = 12;
25+
static const uint8_t SCK = 14;
26+
27+
static const uint8_t A0 = 36;
28+
static const uint8_t A3 = 39;
29+
static const uint8_t A4 = 32;
30+
static const uint8_t A5 = 33;
31+
static const uint8_t A6 = 34;
32+
static const uint8_t A7 = 35;
33+
static const uint8_t A10 = 4;
34+
static const uint8_t A11 = 0;
35+
static const uint8_t A12 = 2;
36+
static const uint8_t A13 = 15;
37+
static const uint8_t A14 = 13;
38+
static const uint8_t A15 = 12;
39+
static const uint8_t A16 = 14;
40+
static const uint8_t A17 = 27;
41+
static const uint8_t A18 = 25;
42+
static const uint8_t A19 = 26;
43+
44+
static const uint8_t T0 = 4;
45+
static const uint8_t T1 = 0;
46+
static const uint8_t T2 = 2;
47+
static const uint8_t T3 = 15;
48+
static const uint8_t T4 = 13;
49+
static const uint8_t T5 = 12;
50+
static const uint8_t T6 = 14;
51+
static const uint8_t T7 = 27;
52+
static const uint8_t T8 = 33;
53+
static const uint8_t T9 = 32;
54+
55+
static const uint8_t DAC1 = 25;
56+
static const uint8_t DAC2 = 26;
57+
58+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)