[X9E] Option added to allow the usage of HORUS sticks
This commit is contained in:
@@ -113,6 +113,7 @@ elseif(PCB STREQUAL TARANIS)
|
|||||||
option(LCD_DUAL_BUFFER "Dual LCD Buffer" OFF)
|
option(LCD_DUAL_BUFFER "Dual LCD Buffer" OFF)
|
||||||
option(TARANIS_INTERNAL_PPM "Taranis internal module hack to output PPM" OFF)
|
option(TARANIS_INTERNAL_PPM "Taranis internal module hack to output PPM" OFF)
|
||||||
if(PCBREV STREQUAL REV9E)
|
if(PCBREV STREQUAL REV9E)
|
||||||
|
option(STICKS "Sticks type" STANDARD)
|
||||||
set(CPU_TYPE STM32F4)
|
set(CPU_TYPE STM32F4)
|
||||||
set(LINKER_SCRIPT targets/taranis/stm32f4_flash.ld)
|
set(LINKER_SCRIPT targets/taranis/stm32f4_flash.ld)
|
||||||
set(HAPTIC YES)
|
set(HAPTIC YES)
|
||||||
@@ -121,6 +122,9 @@ elseif(PCB STREQUAL TARANIS)
|
|||||||
add_definitions(-DSTM32F40_41xxx -DREVPLUS -DREV9E)
|
add_definitions(-DSTM32F40_41xxx -DREVPLUS -DREV9E)
|
||||||
add_definitions(-DEEPROM_VARIANT=32768)
|
add_definitions(-DEEPROM_VARIANT=32768)
|
||||||
set(FIRMWARE_TARGET_SRC ${FIRMWARE_TARGET_SRC} top_lcd_driver.cpp bluetooth_driver.cpp)
|
set(FIRMWARE_TARGET_SRC ${FIRMWARE_TARGET_SRC} top_lcd_driver.cpp bluetooth_driver.cpp)
|
||||||
|
if(STICKS STREQUAL HORUS)
|
||||||
|
add_definitions(-DHORUS_STICKS)
|
||||||
|
endif()
|
||||||
elseif(PCBREV STREQUAL REVPLUS)
|
elseif(PCBREV STREQUAL REVPLUS)
|
||||||
set(CPU_TYPE STM32F2)
|
set(CPU_TYPE STM32F2)
|
||||||
set(LINKER_SCRIPT targets/taranis/stm32f2_flash.ld)
|
set(LINKER_SCRIPT targets/taranis/stm32f2_flash.ld)
|
||||||
|
|||||||
@@ -29,7 +29,9 @@
|
|||||||
#define SAMPTIME 2 // sample time = 28 cycles
|
#define SAMPTIME 2 // sample time = 28 cycles
|
||||||
#define SAMPTIME_LONG 3 // sample time = 56 cycles
|
#define SAMPTIME_LONG 3 // sample time = 56 cycles
|
||||||
|
|
||||||
#if defined(REV9E)
|
#if defined(REV9E) && defined(HORUS_STICKS)
|
||||||
|
const int8_t ana_direction[NUMBER_ANALOG] = {1,-1,1,-1, -1,-1,-1,1, -1,1,1,1, -1};
|
||||||
|
#elif defined(REV9E)
|
||||||
const int8_t ana_direction[NUMBER_ANALOG] = {1,1,-1,-1, -1,-1,-1,1, -1,1,1,1, -1};
|
const int8_t ana_direction[NUMBER_ANALOG] = {1,1,-1,-1, -1,-1,-1,1, -1,1,1,1, -1};
|
||||||
#elif defined(REVPLUS)
|
#elif defined(REVPLUS)
|
||||||
const int8_t ana_direction[NUMBER_ANALOG] = {1,-1,1,-1, -1,1,-1, -1,1, 1};
|
const int8_t ana_direction[NUMBER_ANALOG] = {1,-1,1,-1, -1,1,-1, -1,1, 1};
|
||||||
|
|||||||
Reference in New Issue
Block a user