refactor: rename uses_3v3 to uses_vapwr

The flag enables a second power supply (VAPWR), not necessarily 3.3V (gf180's core is already 3v3), so "uses_3v3" no longer accurately describes its purpose.
Rename it across project_info, precheck, project and shuttle, and update the validation message accordingly.

The legacy "uses_3v3" key is still accepted when reading info.yaml, so existing project configs keep working.
This commit is contained in:
Uri Shaked
2026-05-31 16:18:24 +03:00
parent d5b156e241
commit ed26854793
8 changed files with 64 additions and 43 deletions
+7 -4
View File
@@ -131,10 +131,13 @@ class ProjectInfo:
self.analog_pins: int = analog_pins
self.is_analog: bool = self.analog_pins > 0
uses_3v3: bool = project_section.get("uses_3v3", False)
self.uses_3v3: bool = uses_3v3
if uses_3v3 and not self.is_analog:
errors.append("Projects with 3v3 power need at least one analog pin")
# "uses_3v3" is the legacy name for "uses_vapwr"; still accepted for compat.
uses_vapwr: bool = project_section.get(
"uses_vapwr", project_section.get("uses_3v3", False)
)
self.uses_vapwr: bool = uses_vapwr
if uses_vapwr and not self.is_analog:
errors.append("Projects with VAPWR power need at least one analog pin")
language = project_section.get("language")
if language is None: