Rename new LUX to LUXV2

This commit is contained in:
borisbstyle 2016-11-04 15:31:04 +01:00
parent 54c4be8419
commit 3cff93e868
3 changed files with 12 additions and 12 deletions

View File

@ -29,7 +29,7 @@ const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = {
{ TIM8, IO_TAG(PC7), TIM_Channel_2, TIM8_CC_IRQn, TIM_USE_MOTOR, 1, GPIO_AF_4, DMA2_Channel5, DMA2_CH5_HANDLER }, // PWM3 - PC7
{ TIM8, IO_TAG(PC8), TIM_Channel_3, TIM8_CC_IRQn, TIM_USE_MOTOR, 1, GPIO_AF_4, DMA2_Channel1, DMA2_CH1_HANDLER }, // PMW4 - PC8
{ TIM8, IO_TAG(PC9), TIM_Channel_4, TIM8_CC_IRQn, TIM_USE_MOTOR, 1, GPIO_AF_4, DMA2_Channel2, DMA2_CH2_HANDLER }, // PWM5 - PC9
#ifndef LUXR_RACE
#ifndef LUXV2_RACE
{ TIM2, IO_TAG(PA0), TIM_Channel_1, TIM2_IRQn, TIM_USE_MOTOR, 1, GPIO_AF_1, NULL, 0 }, // PWM6 - PA0
{ TIM2, IO_TAG(PA1), TIM_Channel_2, TIM2_IRQn, TIM_USE_MOTOR, 1, GPIO_AF_1, NULL, 0 }, // PWM7 - PA1
{ TIM2, IO_TAG(PA2), TIM_Channel_3, TIM2_IRQn, TIM_USE_MOTOR, 1, GPIO_AF_1, NULL, 0 }, // PWM8 - PA2

View File

@ -17,7 +17,7 @@
#pragma once
#ifdef LUXR_RACE
#ifdef LUXV2_RACE
#define TARGET_BOARD_IDENTIFIER "LUXR"
#else
#define TARGET_BOARD_IDENTIFIER "LUX"
@ -28,11 +28,11 @@
#define LED0 PC15
#define LED1 PC14
#ifndef LUXR_RACE
#ifndef LUXV2_RACE
#define LED2 PC13
#endif
#ifdef LUXR_RACE
#ifdef LUXV2_RACE
#define BEEPER PB9
#else
#define BEEPER PB13
@ -50,18 +50,18 @@
#define USE_SPI
#define USE_SPI_DEVICE_1
#ifdef LUXR_RACE
#ifdef LUXV2_RACE
#define USE_SPI_DEVICE_2
#endif
#define SPI1_SCK_PIN PB3
#define SPI1_MISO_PIN PB4
#define SPI1_MOSI_PIN PB5
//#ifndef LUXR_RACE
//#ifndef LUXV2_RACE
#define SPI1_NSS_PIN PA4
//#endif
#ifdef LUXR_RACE
#ifdef LUXV2_RACE
#define SPI2_NSS_PIN PB12
#define SPI2_SCK_PIN PB13
#define SPI2_MISO_PIN PB14
@ -92,7 +92,7 @@
#define MPU6500_SPI_INSTANCE SPI1
#define GYRO
#ifdef LUXR_RACE
#ifdef LUXV2_RACE
#define USE_GYRO_MPU6000
#define USE_GYRO_SPI_MPU6000
#define GYRO_MPU6000_ALIGN CW270_DEG
@ -103,7 +103,7 @@
#endif
#define ACC
#ifdef LUXR_RACE
#ifdef LUXV2_RACE
#define USE_ACC_MPU6000
#define USE_ACC_SPI_MPU6000
#define ACC_MPU6000_ALIGN CW270_DEG
@ -119,7 +119,7 @@
#define USE_UART1
#define USE_UART2
#define USE_UART3
#ifdef LUXR_RACE
#ifdef LUXV2_RACE
#define USE_UART4
#define USE_UART5
#define SERIAL_PORT_COUNT 6
@ -156,7 +156,7 @@
#define DEFAULT_RX_FEATURE FEATURE_RX_PPM
#ifdef LUXR_RACE
#ifdef LUXV2_RACE
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
#define DEFAULT_FEATURES FEATURE_BLACKBOX
#endif
@ -174,7 +174,7 @@
#define TARGET_IO_PORTD (BIT(2))
#define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
#ifdef LUXR_RACE
#ifdef LUXV2_RACE
#define USABLE_TIMER_CHANNEL_COUNT 5
#else
#define USABLE_TIMER_CHANNEL_COUNT 11