Organize firmware sources by responsibility

This commit is contained in:
Joey Yakimowich-Payne 2026-09-03 14:28:09 -06:00
commit 200ffc92be
101 changed files with 295 additions and 305 deletions

View file

@ -32,7 +32,7 @@ def compile_cpp(
command.append(f"-I{root / 'tests' / 'native_stubs'}")
command.extend(
[
f"-I{root}",
f"-I{root / 'src' / 'firmware'}",
*[str(source) for source in sources],
"-o",
str(output),
@ -98,7 +98,7 @@ def test_generic_hid_driver_contexts(tmp_path: Path) -> None:
host_compiler(),
executable,
[
root / "generic_hid_driver.cpp",
root / "src" / "firmware" / "usb" / "generic_hid" / "generic_hid_driver.cpp",
root / "tests" / "generic_hid_driver_test.cpp",
],
["SWITCH_PICO_HID_INSTANCE_COUNT=4"],