mlonmcu.platform.espidf package

Submodules

mlonmcu.platform.espidf.espidf module

ESP-IDF Platform

class mlonmcu.platform.espidf.espidf.EspIdfPlatform(features=None, config=None)[source]

Bases: CompilePlatform, TargetPlatform

ESP-IDF Platform class.

DEFAULTS = {'baud': 115200, 'build_dir': None, 'debug': False, 'flash_only': False, 'num_threads': 4, 'port': None, 'print_outputs': False, 'project_dir': None, 'project_template': None, 'use_idf_monitor': True, 'wait_for_user': True}
FEATURES = {'benchmark', 'debug'}
REQUIRED = {'espidf.install_dir', 'espidf.src_dir'}
property baud
check()[source]
close()[source]
compile(target, src=None)[source]
create_target(name)[source]
property espidf_install_dir
property espidf_src_dir
flash(elf, target, timeout=120)[source]
property flash_only
generate(src, target, model=None)[source]
get_idf_cmake_args()[source]
get_idf_serial_args(monitor=False)[source]
get_supported_targets()[source]
property idf_exe
init_directory(path=None, context=None)[source]
invoke_idf_exe(*args, **kwargs)[source]
monitor(target, timeout=60)[source]
property port
prepare(target, src)[source]
property project_template
property use_idf_monitor
property wait_for_user
mlonmcu.platform.espidf.espidf.get_project_template(name='project')[source]

mlonmcu.platform.espidf.espidf_target module

class mlonmcu.platform.espidf.espidf_target.Esp32C3PerfCount(value)[source]

Bases: Enum

An enumeration.

BRANCH = 256
BRANCH_TAKEN = 512
CYCLE = 1
IDLE = 16
INST = 2
INST_COMP = 1024
JMP_HAZARD = 8
JMP_UNCOND = 128
LD_HAZARD = 4
LOAD = 32
STORE = 64
class mlonmcu.platform.espidf.espidf_target.Esp32C3Target(name: str, features: List[Feature] | None = None, config: dict | None = None)[source]

Bases: Target

DEFAULTS = {'abi': None, 'arch': None, 'attr': '', 'count': Esp32C3PerfCount.CYCLE, 'extensions': ['i', 'm', 'c'], 'fpu': 'none', 'print_outputs': False, 'repeat': None, 'xlen': 32}
property abi
add_backend_config(backend, config, optimized_layouts=False, optimized_schedules=False)[source]
property arch
property attr
property count
property extensions
property fpu
get_arch()[source]
get_backend_config(backend, optimized_layouts=False, optimized_schedules=False)[source]
get_platform_defs(platform)[source]
get_target_system()[source]
property has_fpu
property xlen
mlonmcu.platform.espidf.espidf_target.create_espidf_platform_target(name, platform, base=<class 'mlonmcu.target.target.Target'>)[source]
mlonmcu.platform.espidf.espidf_target.get_espidf_platform_targets()[source]
mlonmcu.platform.espidf.espidf_target.register_espidf_platform_target(target_name, t, override=False)[source]

Module contents

MLonMCU ESP-IDF platform

class mlonmcu.platform.espidf.EspIdfPlatform(features=None, config=None)[source]

Bases: CompilePlatform, TargetPlatform

ESP-IDF Platform class.

DEFAULTS = {'baud': 115200, 'build_dir': None, 'debug': False, 'flash_only': False, 'num_threads': 4, 'port': None, 'print_outputs': False, 'project_dir': None, 'project_template': None, 'use_idf_monitor': True, 'wait_for_user': True}
FEATURES = {'benchmark', 'debug'}
REQUIRED = {'espidf.install_dir', 'espidf.src_dir'}
property baud
check()[source]
close()[source]
compile(target, src=None)[source]
create_target(name)[source]
property espidf_install_dir
property espidf_src_dir
flash(elf, target, timeout=120)[source]
property flash_only
generate(src, target, model=None)[source]
get_idf_cmake_args()[source]
get_idf_serial_args(monitor=False)[source]
get_supported_targets()[source]
property idf_exe
init_directory(path=None, context=None)[source]
invoke_idf_exe(*args, **kwargs)[source]
monitor(target, timeout=60)[source]
property port
prepare(target, src)[source]
property project_template
property use_idf_monitor
property wait_for_user