Merge pull request #728 from EdgeTX/nv14-internal-module

Nv14 internal module
This commit is contained in:
Raphael Coeffic
2021-09-21 08:18:47 +02:00
committed by GitHub
25 changed files with 1327 additions and 296 deletions
@@ -159,9 +159,11 @@ endif()
if(MULTIMODULE OR AFHDS3)
set(SRC ${SRC} telemetry/flysky_ibus.cpp)
endif()
if(AFHDS2)
add_definitions(-DAFHDS2)
set(SRC ${SRC} telemetry/flysky_nv14.cpp)
set(PULSES_SRC ${PULSES_SRC} flysky.cpp)
endif()
if(AFHDS3)
@@ -187,5 +187,13 @@ void intmoduleSendNextFrame()
intmoduleSendBuffer(intmodulePulsesData.multi.getData(), intmodulePulsesData.multi.getSize());
break;
#endif
#if defined(AFHDS2)
case PROTOCOL_CHANNELS_AFHDS2A: {
uint8_t* data = (uint8_t*)intmodulePulsesData.flysky.pulses;
uint16_t size = intmodulePulsesData.flysky.ptr - data;
intmoduleSendBuffer(data, size);
} break;
#endif
}
}
+3 -1
View File
@@ -97,7 +97,9 @@ if(NOT UNEXPECTED_SHUTDOWN)
endif()
set(AFHDS2 ON)
set(AFHDS3 ON)
# disable for now as it crashes on radio
#set(AFHDS3 ON)
include_directories(${RADIO_SRC_DIR}/fonts/colorlcd gui/${GUI_DIR} gui/${GUI_DIR}/layouts)
-1
View File
@@ -413,7 +413,6 @@
#define INTMODULE_USART_IRQHandler UART7_IRQHandler
#define INTMODULE_DMA_STREAM DMA1_Stream1
#define INTMODULE_DMA_STREAM_IRQ DMA1_Stream1_IRQn
#define INTMODULE_DMA_STREAM_IRQHandler DMA2_Stream7_IRQHandler
#define INTMODULE_DMA_FLAG_TC DMA_IT_TCIF1
#define INTMODULE_DMA_CHANNEL DMA_Channel_5