Update IAR template.

This commit is contained in:
HiFiPhile
2024-04-26 14:54:16 +02:00
parent 085bd3c9d5
commit 6c3a60e5f2
2 changed files with 99 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ def Main():
def ListPath(path, blacklist=[]):
# Get all .c files
files = glob.glob(f'../{path}/**/*.c', recursive=True)
files.extend(glob.glob(f'../{path}/**/*.h', recursive=True))
# Filter
files = [x for x in files if all(y not in x for y in blacklist)]
# Get common dir list
@@ -77,6 +78,8 @@ def List():
ListPath('lib/SEGGER_RTT')
if __name__ == "__main__":
if os.path.dirname(os.getcwd()) != 'tools':
os.chdir('tools')
if (len(sys.argv) > 1):
if (sys.argv[1] == 'l'):
List()