Horus internal GPS: cmake changes, more CLI options, ability to send commands to the module
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
set(PCBREV "13" CACHE STRING "PCB Revision")
|
||||
set(INTERNAL_GPS_BAUDRATE "9600" CACHE STRING "Baud rate for internal GPS")
|
||||
option(INTERNAL_GPS_INSTALLED "Internal GPS installed in beta hardware version" NO)
|
||||
option(DISK_CACHE "Enable SD card disk cache" YES)
|
||||
if(${PCBREV} GREATER 10)
|
||||
option(INTERNAL_GPS "Internal GPS installed" YES)
|
||||
else()
|
||||
option(INTERNAL_GPS "Internal GPS installed" NO)
|
||||
if(NOT INTERNAL_GPS)
|
||||
message("Internal GPS is optional, use INTERNAL_GPS=YES option to enable it")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(CPU_TYPE STM32F4)
|
||||
set(HSE_VALUE 12000000)
|
||||
@@ -52,8 +59,9 @@ if(DISK_CACHE)
|
||||
set(SRC ${SRC} disk_cache.cpp)
|
||||
add_definitions(-DDISK_CACHE)
|
||||
endif()
|
||||
if(INTERNAL_GPS_INSTALLED)
|
||||
add_definitions(-DINTERNAL_GPS_INSTALLED)
|
||||
if(INTERNAL_GPS)
|
||||
add_definitions(-DINTERNAL_GPS)
|
||||
message("Internal GPS enabled")
|
||||
endif()
|
||||
set(SERIAL2_DRIVER serial2_driver.cpp)
|
||||
set(TARGET_SRC
|
||||
|
||||
Reference in New Issue
Block a user