diff --git a/mlonmcu/target/target.py b/mlonmcu/target/target.py index caba5169..25f33517 100644 --- a/mlonmcu/target/target.py +++ b/mlonmcu/target/target.py @@ -63,6 +63,7 @@ class Target: DEFAULTS = { "print_outputs": False, "repeat": None, + "fclk": None, } REQUIRED = set() @@ -101,6 +102,11 @@ def print_outputs(self): def repeat(self): return self.config["repeat"] + @property + def fclk(self): + value = self.config["fclk"] + return int(float(value)) if value is not None else None + def __repr__(self): return f"Target({self.name})"