Created target/common_post.h to touch up configuration created by common.h and target.h

This commit is contained in:
jflyper 2016-12-31 14:30:45 +09:00
parent c8a8ee0655
commit 352d38500a
5 changed files with 28 additions and 11 deletions

View File

@ -73,4 +73,4 @@
#include "target/common.h"
#include "target.h"
#include "target/common_post.h"

View File

@ -106,11 +106,6 @@
//#define MAX7456_DMA_CHANNEL_RX DMA1_Channel2
//#define MAX7456_DMA_IRQ_HANDLER_ID DMA1_CH3_HANDLER
// VTX monitor task
#define VTX_CONTROL
// VTX device type
#define VTX_SMARTAUDIO
#define USE_SPI
#define USE_SPI_DEVICE_2 // PB12,13,14,15 on AF5

View File

@ -131,11 +131,6 @@
#define SERIAL_PORT_COUNT 4 //VCP, USART1, USART3, USART6
// VTX monitor task
#define VTX_CONTROL
// VTX device type
#define VTX_SMARTAUDIO
#define USE_SPI
#define USE_SPI_DEVICE_1

View File

@ -101,6 +101,7 @@
#define TELEMETRY_MAVLINK
#define USE_RX_MSP
#define USE_SERIALRX_JETIEXBUS
#define VTX_CONTROL
#define VTX_SMARTAUDIO
#else
#define SKIP_CLI_COMMAND_HELP

View File

@ -0,0 +1,26 @@
/*
* 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 <http://www.gnu.org/licenses/>.
*/
// Touch up configuration
#pragma once
// Targets with built-in vtx do not need external vtx
#if defined(VTX) || defined(USE_RTC6705)
# undef VTX_CONTROL
# undef VTX_SMARTAUDIO
#endif