OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
config.runtime_target Namespace Reference

Runtime target detection shared by application composition. More...

Classes

class  RuntimeTarget
 Supported OpenRoadCode deployment targets. More...

Functions

RuntimeTarget detect_runtime_target (*, str|Path model_path="/proc/device-tree/model")
 Detect the deployment target, honoring an explicit override.

Detailed Description

Runtime target detection shared by application composition.

Function Documentation

◆ detect_runtime_target()

RuntimeTarget config.runtime_target.detect_runtime_target ( * ,
str | Path model_path = "/proc/device-tree/model" )

Detect the deployment target, honoring an explicit override.

Parameters
model_pathRaspberry Pi device-tree model path.
Returns
Detected or explicitly selected runtime target.
Exceptions
ValueErrorif `OPENROAD_RUNTIME_TARGET` is unsupported.