mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 11:13:27 +00:00
tools/gen-device/svd: auto-generate output directory
This commit is contained in:
@@ -371,6 +371,8 @@ Default_Handler:
|
|||||||
out.write(' IRQ {name}_IRQHandler\n'.format(**intr))
|
out.write(' IRQ {name}_IRQHandler\n'.format(**intr))
|
||||||
|
|
||||||
def generate(indir, outdir):
|
def generate(indir, outdir):
|
||||||
|
if not os.path.isdir(outdir):
|
||||||
|
os.mkdir(outdir)
|
||||||
for filepath in sorted(glob(indir + '/*.svd')):
|
for filepath in sorted(glob(indir + '/*.svd')):
|
||||||
print(filepath)
|
print(filepath)
|
||||||
device = readSVD(filepath)
|
device = readSVD(filepath)
|
||||||
|
|||||||
Reference in New Issue
Block a user