Development mbed library for MAX32630FTHR

Dependents:   blinky_max32630fthr

Committer:
switches
Date:
Fri Dec 16 16:27:57 2016 +0000
Revision:
3:1198227e6421
Parent:
0:5c4d7b2438d3
Changed ADC scale for MAX32625 platforms to 1.2V full scale to match MAX32630 platforms

Who changed what in which revision?

UserRevisionLine numberNew contents of line
switches 0:5c4d7b2438d3 1 #!/usr/bin/env python
switches 0:5c4d7b2438d3 2
switches 0:5c4d7b2438d3 3 import os
switches 0:5c4d7b2438d3 4 import re
switches 0:5c4d7b2438d3 5
switches 0:5c4d7b2438d3 6 def main(path='.', pattern=r'#include\s+"([^"]*\.(?:c|cpp))"'):
switches 0:5c4d7b2438d3 7 pattern = re.compile(pattern)
switches 0:5c4d7b2438d3 8
switches 0:5c4d7b2438d3 9 for root, dirs, files in os.walk(path, followlinks=True):
switches 0:5c4d7b2438d3 10 for file in files:
switches 0:5c4d7b2438d3 11 with open(os.path.join(root, file)) as f:
switches 0:5c4d7b2438d3 12 for line in f.read().splitlines():
switches 0:5c4d7b2438d3 13 m = re.search(pattern, line)
switches 0:5c4d7b2438d3 14 if m:
switches 0:5c4d7b2438d3 15 print os.path.relpath(os.path.join(root, m.group(1)))
switches 0:5c4d7b2438d3 16
switches 0:5c4d7b2438d3 17
switches 0:5c4d7b2438d3 18 if __name__ == "__main__":
switches 0:5c4d7b2438d3 19 import sys
switches 0:5c4d7b2438d3 20 main(*sys.argv[1:])
switches 0:5c4d7b2438d3 21