mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
Tidied target.h files
This commit is contained in:
parent
fcfebd82d4
commit
bca171723a
6 changed files with 13 additions and 12 deletions
|
@ -43,5 +43,6 @@
|
|||
|
||||
#endif // STM32F10X
|
||||
|
||||
#include "target/common.h"
|
||||
#include "target.h"
|
||||
|
||||
|
|
|
@ -145,7 +145,6 @@
|
|||
#undef TELEMETRY
|
||||
#undef TELEMETRY_LTM
|
||||
#undef SERIAL_RX
|
||||
//#define SKIP_RX_MSP
|
||||
#endif
|
||||
|
||||
// DEBUG
|
||||
|
|
|
@ -20,17 +20,19 @@
|
|||
#define TARGET_BOARD_IDENTIFIER "CJM1" // CJMCU
|
||||
#define USE_HARDWARE_REVISION_DETECTION
|
||||
|
||||
#define LED0
|
||||
#define LED0_GPIO GPIOC
|
||||
#define LED0_PIN Pin_14 // PC14 (LED)
|
||||
#define LED0
|
||||
#define LED0_PERIPHERAL RCC_APB2Periph_GPIOC
|
||||
|
||||
#define LED1
|
||||
#define LED1_GPIO GPIOC
|
||||
#define LED1_PIN Pin_13 // PC13 (LED)
|
||||
#define LED1
|
||||
#define LED1_PERIPHERAL RCC_APB2Periph_GPIOC
|
||||
|
||||
#define LED2
|
||||
#define LED2_GPIO GPIOC
|
||||
#define LED2_PIN Pin_15 // PC15 (LED)
|
||||
#define LED2
|
||||
#define LED2_PERIPHERAL RCC_APB2Periph_GPIOC
|
||||
|
||||
|
||||
|
@ -40,8 +42,8 @@
|
|||
#define GYRO
|
||||
#define USE_GYRO_MPU6050
|
||||
|
||||
//#define MAG
|
||||
//#define USE_MAG_HMC5883
|
||||
#define MAG
|
||||
#define USE_MAG_HMC5883
|
||||
|
||||
#define BRUSHED_MOTORS
|
||||
|
||||
|
@ -66,7 +68,7 @@
|
|||
#define USE_QUAD_MIXER_ONLY
|
||||
|
||||
|
||||
#if (FLASH_SIZE <=> 64)
|
||||
#if (FLASH_SIZE <= 64)
|
||||
#undef BLACKBOX
|
||||
#define SKIP_TASK_STATISTICS
|
||||
#endif
|
||||
|
@ -77,7 +79,7 @@
|
|||
#undef GPS_PROTO_UBLOX
|
||||
#undef GPS_PROTO_I2C_NAV
|
||||
#undef GPS_PROTO_NAZA
|
||||
#undef SKIP_RX_MSP
|
||||
|
||||
//#undef USE_CLI
|
||||
//#define BLACKBOX
|
||||
|
||||
|
|
|
@ -149,7 +149,6 @@
|
|||
#define BIND_PORT GPIOC
|
||||
#define BIND_PIN Pin_5
|
||||
|
||||
#define GTUNE
|
||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
#undef GPS_PROTO_NMEA
|
||||
#undef GPS_PROTO_UBLOX
|
||||
|
|
|
@ -23,18 +23,18 @@
|
|||
//#define OLIMEXINO_UNCUT_LED2_E_JUMPER
|
||||
|
||||
#ifdef OLIMEXINO_UNCUT_LED1_E_JUMPER
|
||||
#define LED0
|
||||
#define LED0_GPIO GPIOA
|
||||
#define LED0_PIN Pin_5 // D13, PA5/SPI1_SCK/ADC5 - "LED1" on silkscreen, Green
|
||||
#define LED0_PERIPHERAL RCC_APB2Periph_GPIOA
|
||||
#define LED0
|
||||
#endif
|
||||
|
||||
#ifdef OLIMEXINO_UNCUT_LED2_E_JUMPER
|
||||
// "LED2" is using one of the PWM pins (CH2/PWM2), so we must not use PWM2 unless the jumper is cut. @See pwmInit()
|
||||
#define LED1
|
||||
#define LED1_GPIO GPIOA
|
||||
#define LED1_PIN Pin_1 // D3, PA1/USART2_RTS/ADC1/TIM2_CH3 - "LED2" on silkscreen, Yellow
|
||||
#define LED1_PERIPHERAL RCC_APB2Periph_GPIOA
|
||||
#define LED1
|
||||
#endif
|
||||
|
||||
#define GYRO
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#define DISPLAY_ARMED_BITMAP
|
||||
#else
|
||||
#define SKIP_CLI_COMMAND_HELP
|
||||
#define SKIP_RX_MSP
|
||||
#define DISABLE_UNCOMMON_MIXERS
|
||||
#endif
|
||||
|
||||
|
@ -44,4 +45,3 @@
|
|||
#define TELEMETRY_SMARTPORT
|
||||
#define TELEMETRY_LTM
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue