X12S fixes
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
option(DISK_CACHE "Enable SD card disk cache" YES)
|
option(DISK_CACHE "Enable SD card disk cache" YES)
|
||||||
option(UNEXPECTED_SHUTDOWN "Enable the Unexpected Shutdown screen" YES)
|
option(UNEXPECTED_SHUTDOWN "Enable the Unexpected Shutdown screen" YES)
|
||||||
set(PWR_BUTTON "PRESS" CACHE STRING "Pwr button type (PRESS/SWITCH)")
|
option(PXX1 "PXX1 protocol support" ON)
|
||||||
|
option(PXX2 "PXX2 protocol support" ON)
|
||||||
|
|
||||||
|
set(PWR_BUTTON "PRESS" CACHE STRING "Pwr button type (PRESS/SWITCH)")
|
||||||
set(CPU_TYPE STM32F4)
|
set(CPU_TYPE STM32F4)
|
||||||
set(HSE_VALUE 12000000)
|
set(HSE_VALUE 12000000)
|
||||||
set(SDCARD YES)
|
set(SDCARD YES)
|
||||||
@@ -14,7 +16,7 @@ set(LINKER_SCRIPT targets/horus/stm32f4_flash.ld)
|
|||||||
set(RAMBACKUP YES)
|
set(RAMBACKUP YES)
|
||||||
set(LUA YES)
|
set(LUA YES)
|
||||||
set(PPM_LIMITS_SYMETRICAL YES)
|
set(PPM_LIMITS_SYMETRICAL YES)
|
||||||
SET(USB_SERIAL ON CACHE BOOL "Enable USB serial (CDC)")
|
set(USB_SERIAL ON CACHE BOOL "Enable USB serial (CDC)")
|
||||||
|
|
||||||
# for size report script
|
# for size report script
|
||||||
set(CPU_TYPE_FULL STM32F429xI)
|
set(CPU_TYPE_FULL STM32F429xI)
|
||||||
|
|||||||
@@ -222,7 +222,9 @@ void SDRAM_Init(void);
|
|||||||
void init_ppm(uint8_t module);
|
void init_ppm(uint8_t module);
|
||||||
void disable_ppm(uint8_t module);
|
void disable_ppm(uint8_t module);
|
||||||
void init_pxx1_pulses(uint8_t module);
|
void init_pxx1_pulses(uint8_t module);
|
||||||
|
void init_pxx1_serial(uint8_t module);
|
||||||
void disable_pxx1_pulses(uint8_t module);
|
void disable_pxx1_pulses(uint8_t module);
|
||||||
|
void disable_pxx1_serial(uint8_t module);
|
||||||
void init_pxx2(uint8_t module);
|
void init_pxx2(uint8_t module);
|
||||||
void disable_pxx2(uint8_t module);
|
void disable_pxx2(uint8_t module);
|
||||||
void disable_serial(uint8_t module);
|
void disable_serial(uint8_t module);
|
||||||
|
|||||||
@@ -58,6 +58,14 @@ void init_pxx1_pulses(uint8_t module)
|
|||||||
extmodulePxxStart();
|
extmodulePxxStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void init_pxx1_serial(uint8_t module)
|
||||||
|
{
|
||||||
|
if (module == INTERNAL_MODULE)
|
||||||
|
intmodulePxxStart();
|
||||||
|
else
|
||||||
|
extmodulePxxStart();
|
||||||
|
}
|
||||||
|
|
||||||
void disable_pxx1_pulses(uint8_t module)
|
void disable_pxx1_pulses(uint8_t module)
|
||||||
{
|
{
|
||||||
if (module == INTERNAL_MODULE)
|
if (module == INTERNAL_MODULE)
|
||||||
@@ -66,6 +74,14 @@ void disable_pxx1_pulses(uint8_t module)
|
|||||||
extmoduleStop();
|
extmoduleStop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void disable_pxx1_serial(uint8_t module)
|
||||||
|
{
|
||||||
|
if (module == INTERNAL_MODULE)
|
||||||
|
intmoduleStop();
|
||||||
|
else
|
||||||
|
extmoduleStop();
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(DSM2)
|
#if defined(DSM2)
|
||||||
void disable_serial(uint8_t module)
|
void disable_serial(uint8_t module)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ option(MODULE_R9M_FULLSIZE "xlite option to use full size R9M instead of mini" O
|
|||||||
option(PXX1 "PXX1 protocol support" ON)
|
option(PXX1 "PXX1 protocol support" ON)
|
||||||
option(PXX2 "PXX2 protocol support" ON)
|
option(PXX2 "PXX2 protocol support" ON)
|
||||||
|
|
||||||
|
|
||||||
if(PCB STREQUAL X9E)
|
if(PCB STREQUAL X9E)
|
||||||
set(PWR_BUTTON "PRESS" CACHE STRING "Pwr button type (PRESS/SWITCH)")
|
set(PWR_BUTTON "PRESS" CACHE STRING "Pwr button type (PRESS/SWITCH)")
|
||||||
set(STICKS "STANDARD" CACHE STRING "Sticks type (STANDARD/HORUS)")
|
set(STICKS "STANDARD" CACHE STRING "Sticks type (STANDARD/HORUS)")
|
||||||
|
|||||||
Reference in New Issue
Block a user