* Add PIO.h header verification to CI Ensure all PIO .pio.h headers match the .pio sources in the tree * Install all tools for Style check * Clean up mismatched PIO headers No functional changes, but the PDM pdm.pio file did not init a data pin while the pdm.pio.h (the one actually used in the core) did. Correct to match. * No need for submodules in the style check
21 lines
483 B
Python
Executable file
21 lines
483 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import os
|
|
import subprocess
|
|
|
|
PIOASM="system/pioasm/pioasm"
|
|
|
|
def recursivepioasm(path):
|
|
for root, dirs, files in os.walk(path):
|
|
for f in files:
|
|
if f.endswith(".pio"):
|
|
subprocess.run([PIOASM, "-o", "c-sdk", os.path.join(root, f), os.path.join(root, f) + ".h"])
|
|
print(os.path.join(root, f))
|
|
|
|
|
|
def main():
|
|
recursivepioasm("cores")
|
|
recursivepioasm("libraries")
|
|
|
|
if __name__ == "__main__":
|
|
main()
|