Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPRacingRXG1 - Initial target support. #62

Merged
merged 3 commits into from
May 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
6 changes: 3 additions & 3 deletions RX/SPRacing RXN1 Gyro 2400 RX GYRO IR D4.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
"//": "VBAT",
"//": "ADC1_CH3 - ADC input via 100k/10k 10:1 voltage divider",
"vbat": 39,
"vbat_atten": 4,
"vbat_offset": -3,
"vbat_scale": 905,
"vbat_atten": 7,
"vbat_offset": -12,
"vbat_scale": 902,
"//": "Analog IN",
"//": "A1 - GPIO34/ADC1_CH6",
"//": "A2 - GPIO35/ADC1_CH7",
Expand Down
9 changes: 9 additions & 0 deletions targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2475,6 +2475,15 @@
"spracing": {
"name": "SPRacing",
"rx_2400": {
"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",
Expand Down