From 5a91b4d09aaca5a7f8a28ef9fd6e8c5b56f0459e Mon Sep 17 00:00:00 2001 From: erikOrqa Date: Tue, 3 Nov 2026 07:56:38 +0100 Subject: [PATCH 1/4] Added ORQAH743WING target --- src/main/target/ORQAH743WING/CMakeLists.txt | 1 + src/main/target/ORQAH743WING/config.c | 44 +++++ src/main/target/ORQAH743WING/target.c | 66 ++++++++ src/main/target/ORQAH743WING/target.h | 179 ++++++++++++++++++++ 4 files changed, 290 insertions(+) create mode 100644 src/main/target/ORQAH743WING/CMakeLists.txt create mode 100644 src/main/target/ORQAH743WING/config.c create mode 100644 src/main/target/ORQAH743WING/target.c create mode 100644 src/main/target/ORQAH743WING/target.h diff --git a/src/main/target/ORQAH743WING/CMakeLists.txt b/src/main/target/ORQAH743WING/CMakeLists.txt new file mode 100644 index 00000000000..3d0833d5e10 --- /dev/null +++ b/src/main/target/ORQAH743WING/CMakeLists.txt @@ -0,0 +1 @@ +target_stm32h743xi(ORQAH743WING) diff --git a/src/main/target/ORQAH743WING/config.c b/src/main/target/ORQAH743WING/config.c new file mode 100644 index 00000000000..c4f82c7ffd4 --- /dev/null +++ b/src/main/target/ORQAH743WING/config.c @@ -0,0 +1,44 @@ +/* + * This file is part of Cleanflight. + * + * Cleanflight is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Cleanflight is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Cleanflight. If not, see . + */ + +#include +#include "platform.h" + +#include "fc/fc_msp_box.h" +#include "fc/config.h" +#include "drivers/sound_beeper.h" + +#include "rx/rx.h" + +#include "io/piniobox.h" +#include "drivers/serial.h" +#include "io/serial.h" + +void targetConfiguration(void) +{ + serialConfigMutable()->portConfigs[1].functionMask = FUNCTION_GPS; + serialConfigMutable()->portConfigs[1].gps_baudrateIndex = BAUD_115200; + + serialConfigMutable()->portConfigs[2].functionMask = FUNCTION_MSP; + serialConfigMutable()->portConfigs[2].msp_baudrateIndex = BAUD_57600; + + pinioBoxConfigMutable()->permanentId[0] = BOX_PERMANENT_ID_USER1; + pinioBoxConfigMutable()->permanentId[1] = BOX_PERMANENT_ID_USER2; + pinioBoxConfigMutable()->permanentId[2] = BOX_PERMANENT_ID_USER3; + pinioBoxConfigMutable()->permanentId[3] = BOX_PERMANENT_ID_USER4; + beeperConfigMutable()->pwmMode = true; +} diff --git a/src/main/target/ORQAH743WING/target.c b/src/main/target/ORQAH743WING/target.c new file mode 100644 index 00000000000..7f07e75c007 --- /dev/null +++ b/src/main/target/ORQAH743WING/target.c @@ -0,0 +1,66 @@ +/* + * This file is part of INAV. + * + * INAV is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * INAV is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with INAV. If not, see . + */ + +#include + +#include "platform.h" + +#include "drivers/bus.h" +#include "drivers/io.h" +#include "drivers/pwm_mapping.h" +#include "drivers/timer.h" +#include "drivers/pinio.h" +#include "drivers/sensor.h" + +BUSDEV_REGISTER_SPI_TAG(busdev_icm42688, DEVHW_ICM42605, IMU1_SPI_BUS, IMU1_CS_PIN, NONE, 0, DEVFLAGS_NONE, IMU1_ALIGN); +BUSDEV_REGISTER_SPI_TAG(busdev_icm42688_2, DEVHW_ICM42605, IMU2_SPI_BUS, IMU2_CS_PIN, NONE, 1, DEVFLAGS_NONE, IMU2_ALIGN); + +BUSDEV_REGISTER_SPI(busdev_max7456, DEVHW_MAX7456, MAX7456_SPI_BUS, MAX7456_CS_PIN, NONE, DEVFLAGS_USE_RAW_REGISTERS, 0); + +BUSDEV_REGISTER_I2C(busdev_bmp085, DEVHW_BMP085, BARO_I2C_BUS, 0x77, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_ms5607, DEVHW_MS5607, BARO_I2C_BUS, 0x77, NONE, DEVFLAGS_USE_RAW_REGISTERS, 0); +BUSDEV_REGISTER_I2C(busdev_spl06, DEVHW_SPL06, BARO_I2C_BUS, 0x76, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_dps310_0, DEVHW_DPS310_0, BARO_I2C_BUS, 0x76, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_dps310_1, DEVHW_DPS310_1, BARO_I2C_BUS, 0x77, NONE, DEVFLAGS_NONE, 0); + +BUSDEV_REGISTER_I2C(busdev_lis2mdl, DEVHW_LIS2MDL, MAG_I2C_BUS, 0x1E, NONE, DEVFLAGS_NONE, 0); + +BUSDEV_REGISTER_I2C(busdev_ms4525, DEVHW_MS4525, PITOT_I2C_BUS, 0x28, NONE, DEVFLAGS_USE_RAW_REGISTERS, 0); + + +timerHardware_t timerHardware[] = { + DEF_TIM(TIM3, CH2, PB5, TIM_USE_OUTPUT_AUTO, 0, 0), // S2 + DEF_TIM(TIM2, CH1, PA15, TIM_USE_OUTPUT_AUTO, 0, 0), // S1 + DEF_TIM(TIM3, CH3, PB0, TIM_USE_OUTPUT_AUTO, 0, 0), // S4 + DEF_TIM(TIM3, CH4, PB1, TIM_USE_OUTPUT_AUTO, 0, 0), // S3 + DEF_TIM(TIM5, CH1, PA0, TIM_USE_OUTPUT_AUTO, 0, 5), // S7 + DEF_TIM(TIM5, CH2, PA1, TIM_USE_OUTPUT_AUTO, 0, 6), // S8 + DEF_TIM(TIM4, CH4, PD15, TIM_USE_OUTPUT_AUTO, 0, 0), // S5 + DEF_TIM(TIM4, CH3, PD14, TIM_USE_OUTPUT_AUTO, 0, 4), // S6 + DEF_TIM(TIM15,CH2, PE6, TIM_USE_OUTPUT_AUTO, 0, 0), // S10 + DEF_TIM(TIM15,CH1, PE5, TIM_USE_OUTPUT_AUTO, 0, 7), // S9 + + DEF_TIM(TIM1, CH1, PA8, TIM_USE_OUTPUT_AUTO, 0, 0), // M1 + DEF_TIM(TIM1, CH4, PE14, TIM_USE_OUTPUT_AUTO, 0, 3), // M2 + DEF_TIM(TIM1, CH2, PE11, TIM_USE_OUTPUT_AUTO, 0, 1), // M3 + DEF_TIM(TIM1, CH3, PE13, TIM_USE_OUTPUT_AUTO, 0, 2), // M4 + + DEF_TIM(TIM8, CH4, PC9, TIM_USE_OUTPUT_AUTO, 0, 0), // PWM + DEF_TIM(TIM17, CH1, PB9, TIM_USE_BEEPER, 0, 0) // BEEPER +}; + +const int timerHardwareCount = sizeof(timerHardware) / sizeof(timerHardware[0]); diff --git a/src/main/target/ORQAH743WING/target.h b/src/main/target/ORQAH743WING/target.h new file mode 100644 index 00000000000..439ce45e424 --- /dev/null +++ b/src/main/target/ORQAH743WING/target.h @@ -0,0 +1,179 @@ +/* + * This file is part of INAV. + * + * INAV is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * INAV is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with INAV. If not, see . + */ + + +#pragma once + +#define TARGET_BOARD_IDENTIFIER "ORH7W" +#define USBD_PRODUCT_STRING "ORQAH743WING" + +#define USE_TARGET_CONFIG +#define USE_TARGET_HARDWARE_DESCRIPTORS + +#define LED0 PC14 +#define LED1 PC15 + +// *************** Beeper ********************** +#define BEEPER PB9 +#define BEEPER_PWM_FREQUENCY 2700 + +// *************** IMU generic *********************** +#define USE_DUAL_GYRO +#define USE_TARGET_IMU_HARDWARE_DESCRIPTORS +#define USE_IMU_ICM42605 + +// *************** SPI1 IMU1 ICM42688 ****************** +#define USE_SPI +#define USE_SPI_DEVICE_1 +#define SPI1_SCK_PIN PA5 +#define SPI1_MISO_PIN PA6 +#define SPI1_MOSI_PIN PA7 + +#define IMU1_ALIGN CW180_DEG +#define IMU1_SPI_BUS BUS_SPI1 +#define IMU1_CS_PIN PC8 + +// *************** SPI3 IMU2 ICM42688 ****************** +#define USE_SPI_DEVICE_3 +#define SPI3_SCK_PIN PC10 +#define SPI3_MISO_PIN PC11 +#define SPI3_MOSI_PIN PC12 + +#define IMU2_ALIGN CW0_DEG +#define IMU2_SPI_BUS BUS_SPI2 +#define IMU2_CS_PIN PE12 + +// *************** SPI2 OSD *********************** +#define USE_SPI_DEVICE_2 +#define SPI2_SCK_PIN PD3 +#define SPI2_MISO_PIN PC2 +#define SPI2_MOSI_PIN PC3 + +#define USE_MAX7456 +#define MAX7456_SPI_BUS BUS_SPI2 +#define MAX7456_CS_PIN PB12 +#define MAX7456_SPI_SPEED BUS_SPEED_INITIALIZATION + + +// *************** SDIO SD BLACKBOX******************* +#define USE_SDCARD +#define USE_SDCARD_SDIO +#define SDCARD_SDIO_DEVICE SDIODEV_2 +#define SDCARD_SDIO_4BIT +#define SDCARD_SDIO_NORMAL_SPEED +#define SDCARD_SDIO2_CMD_ALT + +#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT + +// *************** I2C /Baro/Mag ********************* +#define USE_I2C +#define USE_I2C_DEVICE_1 +#define I2C1_SCL PB8 +#define I2C1_SDA PB7 + +#define USE_I2C_DEVICE_2 +#define I2C2_SCL PB10 +#define I2C2_SDA PB11 + +#define USE_I2C_DEVICE_4 +#define I2C4_SCL PD12 +#define I2C4_SDA PD13 + +#define USE_BARO +#define BARO_I2C_BUS BUS_I2C4 +#define USE_BARO_BMP280 +#define USE_BARO_MS5611 +#define USE_BARO_SPL06 +#define USE_BARO_DPS310 + +#define USE_MAG +#define MAG_I2C_BUS BUS_I2C1 +#define USE_MAG_LIS2MDL + +#define TEMPERATURE_I2C_BUS BUS_I2C2 +#define PITOT_I2C_BUS BUS_I2C2 + +#define USE_RANGEFINDER +#define RANGEFINDER_I2C_BUS BUS_I2C1 + +// *************** UART ***************************** +#define USE_VCP + +#define USE_UART1 +#define UART1_TX_PIN PB6 +#define UART1_RX_PIN PA10 + +#define USE_UART2 +#define UART2_TX_PIN PD5 +#define UART2_RX_PIN PD6 + +#define USE_UART6 +#define UART6_TX_PIN PC6 +#define UART6_RX_PIN PC7 + +#define USE_UART7 +#define UART7_TX_PIN PE8 +#define UART7_RX_PIN PE7 + +#define USE_UART8 +#define UART8_TX_PIN PE1 +#define UART8_RX_PIN PE0 + +#define SERIAL_PORT_COUNT 6 + +#define DEFAULT_RX_TYPE RX_TYPE_SERIAL +#define SERIALRX_PROVIDER SERIALRX_GHST +#define SERIALRX_UART SERIAL_PORT_USART6 + +// *************** ADC ***************************** +#define USE_ADC +#define ADC_INSTANCE ADC1 + +#define ADC_CHANNEL_1_PIN PC5 //VBAT1 +#define ADC_CHANNEL_2_PIN PC4 //CURR1 +#define ADC_CHANNEL_3_PIN PC0 //RSSI +#define ADC_CHANNEL_5_PIN PA3 //VB2 +#define ADC_CHANNEL_6_PIN PA2 //CU2 + +#define VBAT_ADC_CHANNEL ADC_CHN_1 +#define CURRENT_METER_ADC_CHANNEL ADC_CHN_2 +#define RSSI_ADC_CHANNEL ADC_CHN_3 + +// *************** PINIO *************************** +#define USE_PINIO +#define USE_PINIOBOX +#define PINIO1_PIN PC13 //Camera Switch +#define PINIO2_PIN PE3 +#define PINIO3_PIN PD4 +#define PINIO4_PIN PE4 + +// *************** LEDSTRIP ************************ +#define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_TELEMETRY | FEATURE_CURRENT_METER | FEATURE_VBAT | FEATURE_TX_PROF_SEL | FEATURE_BLACKBOX | FEATURE_GPS) +#define CURRENT_METER_SCALE 220 +#define VBAT_SCALE_DEFAULT 1792 + +#define USE_SERIAL_4WAY_BLHELI_INTERFACE + +#define TARGET_IO_PORTA 0xffff +#define TARGET_IO_PORTB 0xffff +#define TARGET_IO_PORTC 0xffff +#define TARGET_IO_PORTD 0xffff +#define TARGET_IO_PORTE 0xffff + +#define MAX_PWM_OUTPUT_PORTS 14 +#define USE_DSHOT +#define USE_ESC_SENSOR From fe60508b87c7f6c3b7ed5a41aabe37f41647cf60 Mon Sep 17 00:00:00 2001 From: erikOrqa Date: Tue, 3 Nov 2026 08:18:26 +0100 Subject: [PATCH 2/4] Removed unused Baros, added Mags --- src/main/target/ORQAH743WING/target.c | 20 +++++++++++++++----- src/main/target/ORQAH743WING/target.h | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/main/target/ORQAH743WING/target.c b/src/main/target/ORQAH743WING/target.c index 7f07e75c007..f68824b583a 100644 --- a/src/main/target/ORQAH743WING/target.c +++ b/src/main/target/ORQAH743WING/target.c @@ -31,13 +31,23 @@ BUSDEV_REGISTER_SPI_TAG(busdev_icm42688_2, DEVHW_ICM42605, IMU2_SPI_BUS, IMU2_ BUSDEV_REGISTER_SPI(busdev_max7456, DEVHW_MAX7456, MAX7456_SPI_BUS, MAX7456_CS_PIN, NONE, DEVFLAGS_USE_RAW_REGISTERS, 0); -BUSDEV_REGISTER_I2C(busdev_bmp085, DEVHW_BMP085, BARO_I2C_BUS, 0x77, NONE, DEVFLAGS_NONE, 0); -BUSDEV_REGISTER_I2C(busdev_ms5607, DEVHW_MS5607, BARO_I2C_BUS, 0x77, NONE, DEVFLAGS_USE_RAW_REGISTERS, 0); -BUSDEV_REGISTER_I2C(busdev_spl06, DEVHW_SPL06, BARO_I2C_BUS, 0x76, NONE, DEVFLAGS_NONE, 0); -BUSDEV_REGISTER_I2C(busdev_dps310_0, DEVHW_DPS310_0, BARO_I2C_BUS, 0x76, NONE, DEVFLAGS_NONE, 0); -BUSDEV_REGISTER_I2C(busdev_dps310_1, DEVHW_DPS310_1, BARO_I2C_BUS, 0x77, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_dps310_0, DEVHW_DPS310, BARO_I2C_BUS, 0x76, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_dps310_1, DEVHW_DPS310, BARO_I2C_BUS, 0x77, NONE, DEVFLAGS_NONE, 0); BUSDEV_REGISTER_I2C(busdev_lis2mdl, DEVHW_LIS2MDL, MAG_I2C_BUS, 0x1E, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_qmc5883, DEVHW_QMC5883, MAG_I2C_BUS, 0x0D, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_hmc5883, DEVHW_HMC5883, MAG_I2C_BUS, 0x1E, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_qmc5883p, DEVHW_QMC5883P, MAG_I2C_BUS, 0x2C, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_ak8963, DEVHW_AK8963, MAG_I2C_BUS, 0x0C, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_ak8975, DEVHW_AK8975, MAG_I2C_BUS, 0x0C, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_mag3110, DEVHW_MAG3110, MAG_I2C_BUS, 0x0E, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_lis3mdl, DEVHW_LIS3MDL, MAG_I2C_BUS, 0x1E, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_ist8310_0, DEVHW_IST8310_0, MAG_I2C_BUS, 0x0C, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_ist8310_1, DEVHW_IST8310_1, MAG_I2C_BUS, 0x0E, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_ist8308, DEVHW_IST8308, MAG_I2C_BUS, 0x0C, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_vcm5883, DEVHW_VCM5883, MAG_I2C_BUS, 0x0C, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_mlx90393, DEVHW_MLX90393, MAG_I2C_BUS, 0x0C, NONE, DEVFLAGS_NONE, 0); + BUSDEV_REGISTER_I2C(busdev_ms4525, DEVHW_MS4525, PITOT_I2C_BUS, 0x28, NONE, DEVFLAGS_USE_RAW_REGISTERS, 0); diff --git a/src/main/target/ORQAH743WING/target.h b/src/main/target/ORQAH743WING/target.h index 439ce45e424..0d6e2ca83e1 100644 --- a/src/main/target/ORQAH743WING/target.h +++ b/src/main/target/ORQAH743WING/target.h @@ -102,7 +102,7 @@ #define USE_MAG #define MAG_I2C_BUS BUS_I2C1 -#define USE_MAG_LIS2MDL +#define USE_MAG_ALL #define TEMPERATURE_I2C_BUS BUS_I2C2 #define PITOT_I2C_BUS BUS_I2C2 From 1e79c21e7884d346625bb93b47043604f43e0011 Mon Sep 17 00:00:00 2001 From: erikOrqa Date: Tue, 3 Nov 2026 09:05:26 +0100 Subject: [PATCH 3/4] Fixed bugs --- src/main/target/ORQAH743WING/target.c | 4 ++-- src/main/target/ORQAH743WING/target.h | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/target/ORQAH743WING/target.c b/src/main/target/ORQAH743WING/target.c index f68824b583a..903686ac125 100644 --- a/src/main/target/ORQAH743WING/target.c +++ b/src/main/target/ORQAH743WING/target.c @@ -31,8 +31,8 @@ BUSDEV_REGISTER_SPI_TAG(busdev_icm42688_2, DEVHW_ICM42605, IMU2_SPI_BUS, IMU2_ BUSDEV_REGISTER_SPI(busdev_max7456, DEVHW_MAX7456, MAX7456_SPI_BUS, MAX7456_CS_PIN, NONE, DEVFLAGS_USE_RAW_REGISTERS, 0); -BUSDEV_REGISTER_I2C(busdev_dps310_0, DEVHW_DPS310, BARO_I2C_BUS, 0x76, NONE, DEVFLAGS_NONE, 0); -BUSDEV_REGISTER_I2C(busdev_dps310_1, DEVHW_DPS310, BARO_I2C_BUS, 0x77, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_dps310_0, DEVHW_DPS310_0, BARO_I2C_BUS, 0x76, NONE, DEVFLAGS_NONE, 0); +BUSDEV_REGISTER_I2C(busdev_dps310_1, DEVHW_DPS310_1, BARO_I2C_BUS, 0x77, NONE, DEVFLAGS_NONE, 0); BUSDEV_REGISTER_I2C(busdev_lis2mdl, DEVHW_LIS2MDL, MAG_I2C_BUS, 0x1E, NONE, DEVFLAGS_NONE, 0); BUSDEV_REGISTER_I2C(busdev_qmc5883, DEVHW_QMC5883, MAG_I2C_BUS, 0x0D, NONE, DEVFLAGS_NONE, 0); diff --git a/src/main/target/ORQAH743WING/target.h b/src/main/target/ORQAH743WING/target.h index 0d6e2ca83e1..01e2673e649 100644 --- a/src/main/target/ORQAH743WING/target.h +++ b/src/main/target/ORQAH743WING/target.h @@ -18,7 +18,7 @@ #pragma once -#define TARGET_BOARD_IDENTIFIER "ORH7W" +#define TARGET_BOARD_IDENTIFIER "ORWG" #define USBD_PRODUCT_STRING "ORQAH743WING" #define USE_TARGET_CONFIG @@ -54,7 +54,7 @@ #define SPI3_MOSI_PIN PC12 #define IMU2_ALIGN CW0_DEG -#define IMU2_SPI_BUS BUS_SPI2 +#define IMU2_SPI_BUS BUS_SPI3 #define IMU2_CS_PIN PE12 // *************** SPI2 OSD *********************** @@ -95,9 +95,6 @@ #define USE_BARO #define BARO_I2C_BUS BUS_I2C4 -#define USE_BARO_BMP280 -#define USE_BARO_MS5611 -#define USE_BARO_SPL06 #define USE_BARO_DPS310 #define USE_MAG From 75f6535e33b144abef9f3b444eb46ce882754202 Mon Sep 17 00:00:00 2001 From: erikOrqa Date: Thu, 19 Nov 2026 07:48:01 +0100 Subject: [PATCH 4/4] Few more fixes --- src/main/target/ORQAH743WING/target.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/target/ORQAH743WING/target.c b/src/main/target/ORQAH743WING/target.c index 903686ac125..f940b74e2d9 100644 --- a/src/main/target/ORQAH743WING/target.c +++ b/src/main/target/ORQAH743WING/target.c @@ -53,22 +53,22 @@ BUSDEV_REGISTER_I2C(busdev_ms4525, DEVHW_MS4525, PITOT_I2C_BUS, 0 timerHardware_t timerHardware[] = { - DEF_TIM(TIM3, CH2, PB5, TIM_USE_OUTPUT_AUTO, 0, 0), // S2 - DEF_TIM(TIM2, CH1, PA15, TIM_USE_OUTPUT_AUTO, 0, 0), // S1 - DEF_TIM(TIM3, CH3, PB0, TIM_USE_OUTPUT_AUTO, 0, 0), // S4 - DEF_TIM(TIM3, CH4, PB1, TIM_USE_OUTPUT_AUTO, 0, 0), // S3 - DEF_TIM(TIM5, CH1, PA0, TIM_USE_OUTPUT_AUTO, 0, 5), // S7 - DEF_TIM(TIM5, CH2, PA1, TIM_USE_OUTPUT_AUTO, 0, 6), // S8 - DEF_TIM(TIM4, CH4, PD15, TIM_USE_OUTPUT_AUTO, 0, 0), // S5 - DEF_TIM(TIM4, CH3, PD14, TIM_USE_OUTPUT_AUTO, 0, 4), // S6 - DEF_TIM(TIM15,CH2, PE6, TIM_USE_OUTPUT_AUTO, 0, 0), // S10 - DEF_TIM(TIM15,CH1, PE5, TIM_USE_OUTPUT_AUTO, 0, 7), // S9 - DEF_TIM(TIM1, CH1, PA8, TIM_USE_OUTPUT_AUTO, 0, 0), // M1 DEF_TIM(TIM1, CH4, PE14, TIM_USE_OUTPUT_AUTO, 0, 3), // M2 DEF_TIM(TIM1, CH2, PE11, TIM_USE_OUTPUT_AUTO, 0, 1), // M3 - DEF_TIM(TIM1, CH3, PE13, TIM_USE_OUTPUT_AUTO, 0, 2), // M4 - + DEF_TIM(TIM1, CH3, PE13, TIM_USE_OUTPUT_AUTO, 0, 2), // M4 + + DEF_TIM(TIM3, CH2, PB5, TIM_USE_SERVO, 0, 0), // S2 + DEF_TIM(TIM2, CH1, PA15, TIM_USE_SERVO, 0, 0), // S1 + DEF_TIM(TIM3, CH3, PB0, TIM_USE_SERVO, 0, 0), // S4 + DEF_TIM(TIM3, CH4, PB1, TIM_USE_SERVO, 0, 0), // S3 + DEF_TIM(TIM5, CH1, PA0, TIM_USE_SERVO, 0, 5), // S7 + DEF_TIM(TIM5, CH2, PA1, TIM_USE_SERVO, 0, 6), // S8 + DEF_TIM(TIM4, CH4, PD15, TIM_USE_SERVO, 0, 0), // S5 + DEF_TIM(TIM4, CH3, PD14, TIM_USE_SERVO, 0, 4), // S6 + DEF_TIM(TIM15,CH2, PE6, TIM_USE_SERVO, 0, 0), // S10 + DEF_TIM(TIM15,CH1, PE5, TIM_USE_SERVO, 0, 7), // S9 + DEF_TIM(TIM8, CH4, PC9, TIM_USE_OUTPUT_AUTO, 0, 0), // PWM DEF_TIM(TIM17, CH1, PB9, TIM_USE_BEEPER, 0, 0) // BEEPER };