Fixes for X7

This commit is contained in:
Bertrand Songis
2019-02-07 17:27:21 +01:00
parent 27601c3f18
commit 89bdf9085b
9 changed files with 61 additions and 31 deletions
@@ -94,7 +94,7 @@ extern "C" void INTMODULE_USART_IRQHandler(void)
}
}
void intmoduleSendNextFrame()
void intmoduleSendNextPXX2Frame()
{
if (moduleSettings[INTERNAL_MODULE].protocol == PROTOCOL_CHANNELS_PXX2) {
DMA_InitTypeDef DMA_InitStructure;
+12 -2
View File
@@ -116,6 +116,7 @@ elseif(PCB STREQUAL XLITES)
set(FONTS_TARGET 9x_fonts_1bit)
set(LCD_DRIVER lcd_driver_spi.cpp)
set(GVAR_SCREEN model_gvars.cpp)
set(RADIO_SPECTRUM YES)
endif()
if(PCB STREQUAL XLITE OR PCB STREQUAL XLITES)
@@ -168,14 +169,15 @@ endif()
add_definitions(-DPCBTARANIS)
add_definitions(-DAUDIO -DVOICE -DRTCLOCK)
set(GUI_SRC ${GUI_SRC}
set(GUI_SRC
${GUI_SRC}
model_input_edit.cpp
model_mix_edit.cpp
model_display.cpp
radio_diagkeys.cpp
radio_diaganas.cpp
radio_hardware.cpp
radio_spectrum.cpp
view_channels.cpp
view_telemetry.cpp
view_about.cpp
@@ -183,6 +185,14 @@ set(GUI_SRC ${GUI_SRC}
../screenshot.cpp
)
if(RADIO_SPECTRUM)
add_definitions(-DRADIO_SPECTRUM)
set(GUI_SRC
${GUI_SRC}
radio_spectrum.cpp
)
endif()
if(PCB STREQUAL X7 OR PCB STREQUAL XLITE OR PCB STREQUAL XLITES)
set(LED_DRIVER led_driver.cpp)
endif()
+1 -1
View File
@@ -184,7 +184,7 @@ void init_no_pulses(uint8_t module);
void disable_no_pulses(uint8_t module);
void init_ppm(uint8_t module);
void disable_ppm(uint8_t module);
void intmoduleSendNextFrame();
void intmoduleSendNextPXX2Frame();
void init_pxx2(uint8_t module);
void disable_pxx2(uint8_t module);
void init_pxx(uint8_t module);
@@ -92,6 +92,16 @@ void intmoduleSendNextFrame()
}
}
void intmodulePxx2Start()
{
// TODO
}
void intmoduleSendNextPXX2Frame()
{
// TODO
}
void intmodulePxxStart()
{
INTERNAL_MODULE_ON();