Skip to content

Commit

Permalink
Merge branch 'master' into spracingh7neo
Browse files Browse the repository at this point in the history
  • Loading branch information
pkendall64 authored May 24, 2024
2 parents f72434f + 73c26f6 commit 2eb2d7d
Show file tree
Hide file tree
Showing 4 changed files with 268 additions and 7 deletions.
15 changes: 12 additions & 3 deletions .github/hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,15 @@ class FieldType(Enum):
"vtx_amp_vpd_25mW": FieldType.ARRAY,
"vtx_amp_vpd_100mW": FieldType.ARRAY,
"vtx_amp_pwm_25mW": FieldType.ARRAY,
"vtx_amp_pwm_100mW": FieldType.ARRAY
"vtx_amp_pwm_100mW": FieldType.ARRAY,
"ir_transponder": FieldType.OUTPUT,
"gyro_nss": FieldType.OUTPUT,
"gyro_miso": FieldType.INPUT,
"gyro_mosi": FieldType.OUTPUT,
"gyro_sck": FieldType.OUTPUT,
"gyro_int": FieldType.INPUT,
"adc_a1": FieldType.ADC,
"adc_a2": FieldType.ADC
}

field_groups = {
Expand All @@ -140,8 +148,9 @@ class FieldType(Enum):
[["vbat", "vbat_offset", "vbat_scale"], [], []],
[["power_pdet", "power_pdet_intercept", "power_pdet_slope"], [], []],
[["screen_sda"], ["screen_sck", "screen_type"], []],
[["screen_mosi"], ["screen_cs", "screen_dc", "screen_rst", "screen_type", "screen_sck"], []],
[["vtx_amp_pwm", "vtx_amp_vpd", "vtx_amp_vref", "vtx_nss", "vtx_miso", "vtx_mosi", "vtx_sck", "vtx_amp_vpd_25mW", "vtx_amp_vpd_100mW"], [], []]
[["screen_cs", "screen_dc", "screen_mosi"], ["screen_type", "screen_sck", "screen_rst"], []],
[["vtx_amp_pwm", "vtx_amp_vpd", "vtx_amp_vref", "vtx_nss", "vtx_miso", "vtx_mosi", "vtx_sck", "vtx_amp_vpd_25mW", "vtx_amp_vpd_100mW"], [], []],
[["gyro_nss", "gyro_miso", "gyro_mosi", "gyro_sck", "gyro_int"], [], []]
],
"2400": [
[["radio_dio1", "radio_miso", "radio_mosi", "radio_sck", "radio_nss"], [], ["radio_rst", "pwm_outputs"]],
Expand Down
81 changes: 81 additions & 0 deletions RX/SPRacing RXG1 Gyro 2400 RX GYRO.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"//": "GPIO Matrix Indexes, 0 = GPIO0, *not* 0 = pin 0",

"//": "BUTTON",
"//": "GPIO0 Strapping - Default: Pull-up - Button pressed pulls-down",
"button": 0,

"//": "SERIAL",
"serial_tx": 43,
"serial_rx": 44,

"//": "RADIO (2x 2.4Ghz + 2x PA)",

"//": "Single inductor fitted to first SX1280",
"radio_dcdc": true,

"//": "Radio SPI uses SUBSPI pins",
"radio_miso": 13,
"radio_mosi": 11,
"radio_sck": 12,

"//": "NRESET is active-low with 50k pull-up in SX1280",
"radio_rst": 9,
"radio_rst_2": 46,

"radio_busy": 7,
"radio_busy_2": 5,
"radio_dio1": 6,
"radio_dio1_2": 4,

"//": "NSS is active-low, SX1280 MISO is high-impedance when NSS is high.",
"//": "NSS 1/2 on SUBSPI pins with CS0/CS1 signals (respectively)",
"radio_nss": 10,
"radio_nss_2": 8,

"//": "On the RFX2401C RX active is FALSE when TXEN is HIGH/ON",
"power_txen": 14,
"power_txen_2": 45,

"//": "Unused RXEN, pull-ups fitted to both PAs, TXEN HIGH disables RX",
"/power_rxen": "N/A",
"/power_rxen_2": "N/A",

"power_lna_gain": 12,
"power_min": 0,
"power_high": 3,
"power_max": 3,
"power_default": 3,
"power_control": 0,
"power_values": [-10,-6,-3,1],

"//": "PWM",
"//": "PWM outputs on 4 pins which double as JTAG pins, on S3 JTAG pins are not strapping pins, no buffers needed!",
"//": "GPIO3 is pulled high via 10k resistor (located by IO_1 legend), which selects GPIO39-42 as the JTAG signal source",
"//": "However the efuses still need to be set to allow using GPIO pads for JTAG, see 8.5 JTAG Signal Source Control",
"//": "1 Corner Pad - GPIO39/MTCK - JTAG 1/4",
"//": "2 Corner Pad - GPIO42/MTMS - JTAG 2/4",
"//": "3 Corner Pad - GPIO40/MTDO - JTAG 3/4",
"//": "4 Corner Pad - GPIO41/MTDI - JTAG 4/4",
"pwm_outputs":[39,40,41,42,15,16,21,3,44,43,18,17],

"//": "VBAT",
"//": "ADC1_CH1 - ADC input via 100k/10k 10:1 voltage divider",
"vbat": 2,
"vbat_atten": 7,
"vbat_offset": -12,
"vbat_scale": 902,

"//": "LED",
"led_rgb": 38,
"led_rgb_isgrb": true,
"ledidx_rgb_status": [0],
"ledidx_rgb_vtx": [1],
"ledidx_rgb_boot": [0,1],

"gyro_nss": 34,
"gyro_sck": 36,
"gyro_miso": 37,
"gyro_mosi": 35,
"gyro_int": 33
}
85 changes: 85 additions & 0 deletions RX/SPRacing RXN1 Gyro 2400 RX GYRO IR D4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"//": "GPIO Matrix Indexes, 0 = GPIO0, *not* 0 = pin 0",

"//": "BUTTON",
"//": "GPIO0 Strapping - Default: Pull-up - Button pressed pulls-down",
"button": 0,

"//": "SERIAL",
"serial_tx": 1,
"serial_rx": 3,

"//": "RADIO (2x 2.4Ghz + 2x PA)",

"//": "No inductor fitted to the SX1280",
"radio_dcdc": false,

"//": "Radio SPI CLK/DATA pins are on same power domain",
"radio_miso": 4,
"radio_mosi": 32,
"radio_sck": 33,
"//": "NSS is active-low, SX1280 MISO is high-impedance when NSS is high.",
"radio_nss": 27,
"//": "NRESET is active-low with 50k pull-up in SX1280",
"radio_rst": 22,
"radio_busy": 36,
"radio_dio1": 37,

"power_min": 0,
"power_high": 0,
"power_max": 0,
"power_default": 0,
"power_control": 0,
"power_values": [13],

"//": "IR Transponder",
"//": "IR output must be OFF unless transmitting",
"ir_transponder": 21,

"//": "Gyro - Either ICM-42605/ICM-42688-P may be fitted",
"//": "VSPICS0",
"gyro_nss": 5,
"//": "VSPIQ",
"gyro_miso": 19,
"//": "VSPID",
"gyro_mosi": 23,
"//": "VSPICLK",
"gyro_sck": 18,
"//": "VSPICLK",
"gyro_int": 38,


"//": "PWM",
"//": "PWM outputs on remaining output pins",
"//": "PWM1 - GPIO25/DAC_1",
"//": "PWM2 - GPIO26/DAC_2",
"//": "PWM3 - GPIO10/U1TXD",
"//": "PWM4 - GPIO9/U1RXD",
"//": "PWM5 - GPIO3/U0RXD",
"//": "PWM6 - GPIO1/U0TXD",
"//": "JTAG/PWM",
"//": "PWM7 - GPIO14/MTMS",
"//": "PWM8 - GPIO13/MTCK",
"//": "PWM9 - GPIO12/MTDI Strapping - Default: Pull-down",
"//": "PWM10 - GPIO15/MTDO Strapping - Default: Pull-up",
"pwm_outputs":[25,26,10,9,1,3,14,13,12,15],

"//": "VBAT",
"//": "ADC1_CH3 - ADC input via 100k/10k 10:1 voltage divider",
"vbat": 39,
"vbat_atten": 7,
"vbat_offset": -12,
"vbat_scale": 902,
"//": "Analog IN",
"//": "A1 - GPIO34/ADC1_CH6",
"//": "A2 - GPIO35/ADC1_CH7",
"adc_a1": 34,
"adc_a2": 35,


"//": "LED",
"led_rgb": 2,
"led_rgb_isgrb": true,
"ledidx_rgb_status": [0],
"ledidx_rgb_boot": [0]
}
94 changes: 90 additions & 4 deletions targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@
"firmware": "Unified_ESP8285_2400_RX"
},
"geprc-dual": {
"product_name": "GEPRC Dual Diversity 2.4GHz RX",
"product_name": "GEPRC True Diversity 2.4GHz RX",
"lua_name": "GEPRC Dual RX",
"layout_file": "Generic 2400 True Diversity PA.json",
"overlay": {
Expand Down Expand Up @@ -1379,6 +1379,15 @@
"platform": "esp8285",
"firmware": "Unified_ESP8285_900_RX",
"prior_target_name": "HGLRC_Hermes_900_RX"
},
"dual": {
"product_name": "HGLRC Gemini 900M RX",
"lua_name": "HGL Gemini900RX",
"layout_file": "Generic 900 True Diversity.json",
"upload_methods": ["uart", "wifi", "betaflight"],
"min_version": "3.3.1",
"platform": "esp32",
"firmware": "Unified_ESP32_900_RX"
}
},
"tx_900": {
Expand Down Expand Up @@ -1639,6 +1648,19 @@
"firmware": "Unified_ESP32_2400_TX",
"prior_target_name": "Jumper_AION_2400_T-Pro_TX"
},
"t-15": {
"product_name": "Jumper AION T-15 2.4GHz TX",
"lua_name": "T-15 2G4 TX",
"layout_file": "Jumper T-20 2400.json",
"overlay": {
"use_backpack": true,
"misc_fan_en": 33
},
"upload_methods": ["uart", "wifi", "etx"],
"min_version": "3.3.0",
"platform": "esp32",
"firmware": "Unified_ESP32_2400_TX"
},
"t-14": {
"product_name": "Jumper AION T-14 2.4GHz TX",
"lua_name": "T-14 2G4 TX",
Expand Down Expand Up @@ -2324,8 +2346,23 @@
"upload_methods": ["uart", "wifi", "betaflight"],
"min_version": "3.0.0",
"platform": "esp8285",
"firmware": "Unified_ESP8285_2400_RX",
"prior_target_name": "MATEK_2400_RX_R24D"
"firmware": "Unified_ESP8285_2400_RX"
},
"rp3-h": {
"product_name": "Radiomaster RP3-H Diversity 2.4GHz RX",
"lua_name": "RM RP3-H 2400",
"layout_file": "Generic 2400 Diversity PA.json",
"overlay": {
"radio_dcdc": true,
"power_values": [-5,-4,-2,1],
"vbat": 17,
"vbat_offset": -10,
"vbat_scale": 292
},
"upload_methods": ["uart", "wifi", "betaflight"],
"min_version": "3.0.0",
"platform": "esp8285",
"firmware": "Unified_ESP8285_2400_RX"
},
"rp4": {
"product_name": "RadioMaster RP4-TD True Diversity 2.4GHz RX",
Expand All @@ -2339,6 +2376,37 @@
}
}
},
"sequre": {
"name": "SEQURE",
"rx_2400": {
"single": {
"product_name": "SEQURE 2.4GHz Single RX",
"lua_name": "SEQURE 2G4 RX",
"layout_file": "Generic 2400 PA.json",
"overlay": {
"radio_dcdc": true,
"power_values": [-12,-9,-6,1]
},
"upload_methods": ["uart", "wifi", "betaflight"],
"min_version": "3.3.0",
"platform": "esp8285",
"firmware": "Unified_ESP8285_2400_RX"
},
"dual": {
"product_name": "SEQURE 2.4GHz Dual RX",
"lua_name": "SEQURE 2G4 TDRX",
"layout_file": "Generic 2400 True Diversity PA.json",
"overlay": {
"radio_dcdc": true,
"power_values": [-12,-9,-6,1]
},
"upload_methods": ["uart", "wifi", "betaflight"],
"min_version": "3.3.0",
"platform": "esp32",
"firmware": "Unified_ESP32_2400_RX"
}
}
},
"siyi": {
"name": "SIYI",
"tx_2400": {
Expand Down Expand Up @@ -2439,6 +2507,24 @@
"platform": "esp32-s3",
"min_version": "3.3.0",
"firmware": "Unified_ESP32S3_2400_RX"
},
"rxg1": {
"product_name": "SPRacing RXG1 Gyro 2.4GHz RX/GYRO (S3)",
"lua_name": "SPR_RXG1_S3",
"layout_file": "SPRacing RXG1 Gyro 2400 RX GYRO.json",
"upload_methods": ["uart", "wifi", "betaflight"],
"platform": "esp32-s3",
"min_version": "3.3.0",
"firmware": "Unified_ESP32S3_2400_RX"
},
"rxn1": {
"product_name": "SPRacing RXN1 Gyro 2.4GHz RX/GYRO/IR (D4)",
"lua_name": "SPR_RXN1_D4",
"layout_file": "SPRacing RXN1 Gyro 2400 RX GYRO IR D4.json",
"upload_methods": ["uart", "wifi", "betaflight"],
"platform": "esp32",
"min_version": "3.3.0",
"firmware": "Unified_ESP32_2400_RX"
}
}
},
Expand Down Expand Up @@ -2506,7 +2592,7 @@
"lua_name": "FlyDragon R24D",
"layout_file": "Generic 2400 Diversity PA.json",
"upload_methods": ["uart", "wifi", "betaflight"],
"min_version": "3.0.0",
"min_version": "3.0.0",
"platform": "esp8285",
"firmware": "Unified_ESP8285_2400_RX",
"prior_target_name": "FD_2400_RX_R24D"
Expand Down

0 comments on commit 2eb2d7d

Please sign in to comment.