Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/sitl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ endif()

set(SITL_DEFINITIONS
SITL_BUILD
MCU_FLASH_SIZE=2048
)

function (target_sitl name)
Expand Down
5 changes: 5 additions & 0 deletions src/main/target/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@

#pragma once

// The preprocessor reads an undefined MCU_FLASH_SIZE as 0, which would quietly build a target as a 512 KB board
#ifndef MCU_FLASH_SIZE
#error "MCU_FLASH_SIZE (KiB) must be defined by the MCU's cmake file"
#endif

#if defined(STM32F7) || defined(STM32H7)
#define USE_ITCM_RAM
#endif
Expand Down
5 changes: 5 additions & 0 deletions src/main/target/common_post.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ extern uint8_t __config_end;
# undef USE_OLED_UG2864
#endif

// HoTT text mode is part of HoTT telemetry
#if !defined(USE_TELEMETRY_HOTT)
# undef USE_HOTT_TEXTMODE
#endif


// Make sure DEFAULT_I2C_BUS is valid
#ifndef DEFAULT_I2C_BUS
Expand Down
Loading