feat: Rationalise module size handling (#3624)

* Rationalise module size handling

* Compile fix

* DSM2 and DSMP exist only in JR size

* XJT Lite and R9MP require usart

* Fix comment

* Enable no external module choice

* Save some flash

* TProV2 does have a small module

* T20 has a small module

* chore: Define managed by cmake

* fix: X9D+2019 has a JR Micro bay

---------

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
3djc
2023-07-16 11:05:56 +10:00
committed by GitHub
co-authored by Peter Feerick
parent b1609eb484
commit a3ab20fe4b
6 changed files with 50 additions and 27 deletions
+1
View File
@@ -6,6 +6,7 @@ option(AFHDS2 "Support for AFHDS2" ON)
option(GHOST "Ghost TX Module" ON)
option(PXX1 "PXX1 protocol support" ON)
option(PXX2 "PXX2 protocol support" OFF)
option(MODULE_SIZE_STD "Standard size TX Module" ON)
set(PWR_BUTTON "PRESS" CACHE STRING "Pwr button type (PRESS/SWITCH)")
set(CPU_TYPE STM32F4)