mlonmcu.platform.zephyr package

Submodules

mlonmcu.platform.zephyr.zephyr module

Zephyr Platform

class mlonmcu.platform.zephyr.zephyr.ZephyrPlatform(features=None, config=None)[source]

Bases: CompilePlatform, TargetPlatform

Zephyr Platform class.

DEFAULTS = {'baud': 115200, 'build_dir': None, 'debug': False, 'flash_only': False, 'num_threads': 4, 'optimize': None, 'port': None, 'print_outputs': False, 'project_dir': None, 'project_template': None, 'wait_for_user': True}
FEATURES = {'benchmark', 'debug'}
REQUIRED = {'zephyr.install_dir', 'zephyr.sdk_dir', 'zephyr.venv_dir'}
property baud
property build_dir
close()[source]
compile(target, src=None)[source]
create_target(name)[source]
flash(elf, target, timeout=120)[source]
property flash_only
generate(src, target, model=None) Tuple[dict, dict][source]
get_serial(target)[source]
get_supported_targets()[source]
get_west_cmake_args()[source]
init_directory(path=None, context=None)[source]
invoke_west(*args, **kwargs)[source]
monitor(target, timeout=60)[source]
property optimize
property port
prepare(target, src)[source]
property project_template
property wait_for_user
property zephyr_install_dir
property zephyr_sdk_dir
property zephyr_venv_dir
mlonmcu.platform.zephyr.zephyr.get_project_template(name='project2')[source]

mlonmcu.platform.zephyr.zephyr_target module

mlonmcu.platform.zephyr.zephyr_target.create_zephyr_platform_target(name, platform, base=<class 'mlonmcu.target.target.Target'>)[source]

Module contents

MLonMCU Zephyr platform

class mlonmcu.platform.zephyr.ZephyrPlatform(features=None, config=None)[source]

Bases: CompilePlatform, TargetPlatform

Zephyr Platform class.

DEFAULTS = {'baud': 115200, 'build_dir': None, 'debug': False, 'flash_only': False, 'num_threads': 4, 'optimize': None, 'port': None, 'print_outputs': False, 'project_dir': None, 'project_template': None, 'wait_for_user': True}
FEATURES = {'benchmark', 'debug'}
REQUIRED = {'zephyr.install_dir', 'zephyr.sdk_dir', 'zephyr.venv_dir'}
property baud
property build_dir
close()[source]
compile(target, src=None)[source]
create_target(name)[source]
flash(elf, target, timeout=120)[source]
property flash_only
generate(src, target, model=None) Tuple[dict, dict][source]
get_serial(target)[source]
get_supported_targets()[source]
get_west_cmake_args()[source]
init_directory(path=None, context=None)[source]
invoke_west(*args, **kwargs)[source]
monitor(target, timeout=60)[source]
property optimize
property port
prepare(target, src)[source]
property project_template
property wait_for_user
property zephyr_install_dir
property zephyr_sdk_dir
property zephyr_venv_dir