mlonmcu.platform package

Subpackages

Submodules

mlonmcu.platform.lookup module

mlonmcu.platform.lookup.get_platform_names(context)[source]
mlonmcu.platform.lookup.get_platforms_backends(context, config=None)[source]
mlonmcu.platform.lookup.get_platforms_targets(context, config=None)[source]
mlonmcu.platform.lookup.print_backends(platform_backends)[source]
mlonmcu.platform.lookup.print_platforms(platform_names)[source]
mlonmcu.platform.lookup.print_summary(context)[source]
mlonmcu.platform.lookup.print_targets(platform_targets)[source]

mlonmcu.platform.platform module

class mlonmcu.platform.platform.BuildPlatform(name, features=None, config=None)[source]

Bases: Platform

Abstract build platform class.

export_artifacts(path)[source]
property supports_build
class mlonmcu.platform.platform.CompilePlatform(name, features=None, config=None)[source]

Bases: Platform

Abstract compile platform class.

DEFAULTS = {'build_dir': None, 'debug': False, 'num_threads': 4, 'print_outputs': False}
FEATURES = {'debug'}
property debug
abstract generate(src, target, model=None) Tuple[dict, dict][source]
generate_artifacts(src, target, model=None) List[Artifact][source]
get_metrics(elf)[source]
property num_threads
property supports_compile
class mlonmcu.platform.platform.Platform(name, features=None, config=None)[source]

Bases: object

Abstract platform class.

DEFAULTS = {'print_outputs': False}
FEATURES = {}
OPTIONAL = {}
REQUIRED = {}
get_supported_backends()[source]
get_supported_targets()[source]
init_directory(path=None, context=None)[source]
property print_outputs
process_features(features)[source]
property supports_build
property supports_compile
property supports_flash
property supports_monitor
property supports_tune
class mlonmcu.platform.platform.TargetPlatform(name, features=None, config=None)[source]

Bases: Platform

Abstract target platform class.

create_target(name)[source]
flash(elf, target, timeout=120)[source]
monitor(target, timeout=60)[source]
run(elf, target, timeout=120)[source]
property supports_flash
property supports_monitor
class mlonmcu.platform.platform.TunePlatform(name, features=None, config=None)[source]

Bases: Platform

Abstract tune platform class.

export_artifacts(path)[source]
property supports_tune
tune_model(model_path, backend, target)[source]

Module contents

MLonMCU platform submodule

class mlonmcu.platform.Platform(name, features=None, config=None)[source]

Bases: object

Abstract platform class.

DEFAULTS = {'print_outputs': False}
FEATURES = {}
OPTIONAL = {}
REQUIRED = {}
get_supported_backends()[source]
get_supported_targets()[source]
init_directory(path=None, context=None)[source]
property print_outputs
process_features(features)[source]
property supports_build
property supports_compile
property supports_flash
property supports_monitor
property supports_tune
mlonmcu.platform.get_platforms()[source]
mlonmcu.platform.register_platform(platform_name, p, override=False)[source]