Add new option f_boot (#1331)

This commit is contained in:
Jason2866
2024-03-18 13:03:31 +01:00
committed by GitHub
parent 0f5033b2fc
commit 159f06dc87
+9
View File
@@ -77,6 +77,14 @@ def _get_board_f_image(env):
return _get_board_f_flash(env)
def _get_board_f_boot(env):
board_config = env.BoardConfig()
if "build.f_boot" in board_config:
return _normalize_frequency(board_config.get("build.f_boot"))
return _get_board_f_flash(env)
def _get_board_flash_mode(env):
if ["arduino"] == env.get("PIOFRAMEWORK") and _get_board_memory_type(env) in (
"opi_opi",
@@ -238,6 +246,7 @@ env.Replace(
__get_board_boot_mode=_get_board_boot_mode,
__get_board_f_flash=_get_board_f_flash,
__get_board_f_image=_get_board_f_image,
__get_board_f_boot=_get_board_f_boot,
__get_board_flash_mode=_get_board_flash_mode,
__get_board_memory_type=_get_board_memory_type,