Prusa MINI Firmware overview
generic_create_variant Namespace Reference

Variables

 env = DefaultEnvironment()
 
 platform = env.PioPlatform()
 
 board = env.BoardConfig()
 
 FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoststm32")
 
 CMSIS_DIR = os.path.join(FRAMEWORK_DIR, "CMSIS", "CMSIS")
 
 mcu_type = board.get("build.mcu")[:-2]
 
 variant = board.get("build.variant")
 
string series = mcu_type[:7].upper() + "xx"
 
 variant_dir = os.path.join(FRAMEWORK_DIR, "variants", variant)
 
 source_dir = os.path.join("buildroot/share/PlatformIO/variants", variant)
 
 full_file_name = os.path.join(source_dir, file_name)
 

Variable Documentation

◆ env

generic_create_variant.env = DefaultEnvironment()

◆ platform

generic_create_variant.platform = env.PioPlatform()

◆ board

generic_create_variant.board = env.BoardConfig()

◆ FRAMEWORK_DIR

generic_create_variant.FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoststm32")

◆ CMSIS_DIR

generic_create_variant.CMSIS_DIR = os.path.join(FRAMEWORK_DIR, "CMSIS", "CMSIS")

◆ mcu_type

generic_create_variant.mcu_type = board.get("build.mcu")[:-2]

◆ variant

generic_create_variant.variant = board.get("build.variant")

◆ series

string generic_create_variant.series = mcu_type[:7].upper() + "xx"

◆ variant_dir

generic_create_variant.variant_dir = os.path.join(FRAMEWORK_DIR, "variants", variant)

◆ source_dir

generic_create_variant.source_dir = os.path.join("buildroot/share/PlatformIO/variants", variant)

◆ full_file_name

generic_create_variant.full_file_name = os.path.join(source_dir, file_name)