Add ALLOW_TRAINER_MULTI to enable Multi-trainer on targets with PXX2 internal module

Please note that this requires the S.PORT connection to the internal ISRM to be cut, as it would otherwise be pulled low by the ISRM (without using it otherwise).
This commit is contained in:
Raphael Coeffic
2021-11-02 14:26:40 +01:00
committed by Raphael Coeffic
parent 3247b59f5e
commit 74ea7812e2
+6
View File
@@ -212,6 +212,8 @@ endif()
if(INTERNAL_MODULE_PXX1)
add_definitions(-DHARDWARE_INTERNAL_MODULE)
add_definitions(-DINTERNAL_MODULE_PXX1)
else()
option(ALLOW_TRAINER_MULTI "Allow multimodule to be use as trainer input" OFF)
endif()
if(INTERNAL_MODULE_PXX2)
@@ -229,6 +231,10 @@ if(INTERNAL_MODULE_MULTI)
add_definitions(-DINTERNAL_MODULE_MULTI)
endif()
if(ALLOW_TRAINER_MULTI)
add_definitions(-DALLOW_TRAINER_MULTI)
endif()
if(DISK_CACHE)
set(SRC ${SRC} disk_cache.cpp)
add_definitions(-DDISK_CACHE)