add has_spi board property (#1153)

* always spi for h7

* disable for now
This commit is contained in:
Adeeb Shihadeh
2022-11-13 19:57:20 -08:00
committed by GitHub
parent c0632cd32b
commit c75c276301
14 changed files with 25 additions and 7 deletions

View File

@@ -152,7 +152,7 @@ for project_name in build_projects:
"-std=gnu11",
] + project["PROJECT_FLAGS"] + common_flags
if "ENABLE_SPI" in os.environ and not project_name.startswith('pedal'):
if ("ENABLE_SPI" in os.environ or "h7" in project_name) and not project_name.startswith('pedal'):
flags.append('-DENABLE_SPI')
project_env = Environment(