1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Merge pull request #3235 from mikeller/fix_spracingf4neo

From cleanflight: Fix SPRACINGF4NEO.
This commit is contained in:
Michael Keller 2017-06-09 00:39:00 +12:00 committed by GitHub
commit a6d8816a98
3 changed files with 4 additions and 4 deletions

View file

@ -37,7 +37,7 @@ void targetConfiguration(void)
rxConfigMutable()->sbus_inversion = 1;
serialConfigMutable()->portConfigs[1].functionMask = FUNCTION_MSP; // So SPRacingF3OSD users don't have to change anything.
serialConfigMutable()->portConfigs[findSerialPortIndexByIdentifier(TELEMETRY_UART)].functionMask = FUNCTION_TELEMETRY_SMARTPORT;
telemetryConfigMutable()->telemetry_inversion = 0;
telemetryConfigMutable()->halfDuplex = 0;
telemetryConfigMutable()->telemetry_inversion = 0;
}
#endif

View file

@ -30,8 +30,8 @@
void targetConfiguration(void)
{
serialConfigMutable()->portConfigs[findSerialPortIndexByIdentifier(GPS_UART)].functionMask = FUNCTION_GPS;
serialConfigMutable()->portConfigs[findSerialPortIndexByIdentifier(TELEMETRY_UART)].functionMask = TELEMETRY_PROVIDER_DEFAULT
telemetryConfigMutable()->halfDuplex = TELEMETRY_DEFAULT_HALFDUPLEX;
serialConfigMutable()->portConfigs[findSerialPortIndexByIdentifier(TELEMETRY_UART)].functionMask = TELEMETRY_PROVIDER_DEFAULT;
telemetryConfigMutable()->halfDuplex = false;
}
#endif

View file

@ -18,6 +18,7 @@
#pragma once
#define TARGET_BOARD_IDENTIFIER "SP4N"
#define TARGET_CONFIG
#ifndef SPRACINGF4NEO_REV
#define SPRACINGF4NEO_REV 3
@ -203,7 +204,6 @@
#define SERIALRX_PROVIDER SERIALRX_SBUS
#define TELEMETRY_UART SERIAL_PORT_UART5
#define TELEMETRY_DEFAULT_HALFDUPLEX 0 // Both pins of UART5 are used for a telemetry circuit
#define TELEMETRY_PROVIDER_DEFAULT FUNCTION_TELEMETRY_SMARTPORT
#define BUTTONS // Physically located on the optional OSD/VTX board.