From f72434f0be7eadc3f3018c00f9ff8566421b2d72 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Sun, 14 Apr 2024 23:23:44 +0200 Subject: [PATCH] SPRacingH7NEO - Initial target support. --- RX/SPRacing H7NEO 2400 True Diversity RX.json | 68 +++++++++++++++++++ targets.json | 14 ++++ 2 files changed, 82 insertions(+) create mode 100644 RX/SPRacing H7NEO 2400 True Diversity RX.json diff --git a/RX/SPRacing H7NEO 2400 True Diversity RX.json b/RX/SPRacing H7NEO 2400 True Diversity RX.json new file mode 100644 index 0000000..9875c8a --- /dev/null +++ b/RX/SPRacing H7NEO 2400 True Diversity RX.json @@ -0,0 +1,68 @@ +{ + "//": "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 low via 10k resistor (located by IO_1 legend), which selects USB as the JTAG signal source", + "//": "See 8.5 JTAG Signal Source Control", + "//": "J15:6 - GPIO41/MTDI - JTAG 1/4", + "//": "J15:5 - GPIO42/MTMS - JTAG 2/4", + "//": "J15:4 - GPIO39/MTCK - JTAG 3/4", + "//": "J15:3 - GPIO40/MTDO - JTAG 4/4", + "pwm_outputs":[41,42,40,39], + + "//": "LED", + "led_rgb": 38, + "led_rgb_isgrb": true, + "ledidx_rgb_status": [0], + "ledidx_rgb_vtx": [1], + "ledidx_rgb_boot": [0,1] +} diff --git a/targets.json b/targets.json index 74554a6..19bbba3 100644 --- a/targets.json +++ b/targets.json @@ -2428,6 +2428,20 @@ } } }, + "spracing": { + "name": "SPRacing", + "rx_2400": { + "h7neo": { + "product_name": "SPRacingH7NEO 2.4GHz FC True Diversity RX (H7/S3)", + "lua_name": "SPR_H7NEO_S3", + "layout_file": "SPRacing H7NEO 2400 True Diversity RX.json", + "upload_methods": ["uart", "wifi", "betaflight"], + "platform": "esp32-s3", + "min_version": "3.3.0", + "firmware": "Unified_ESP32S3_2400_RX" + } + } + }, "atomrc": { "name": "atomrc", "rx_2400": {