Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FXAS21002 FXOS8700Q
pal_make.py
00001 import sys 00002 import subprocess 00003 import re 00004 00005 pal_warn = re.compile("Warning.*pal") 00006 pal_dont_treat_as_warn = re.compile("Warning.*PAL_INSECURE") 00007 00008 proc = subprocess.Popen(sys.argv[1].split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT) 00009 00010 for line in proc.stdout: 00011 print line 00012 if len(pal_warn.findall(line)) > 0: 00013 if not len(pal_dont_treat_as_warn.findall(line)) > 0: 00014 raise Exception("No Warnings Allowed in Pal") 00015 proc.wait() 00016 print "mbed compile returned {}".format(proc.returncode) 00017 if not proc.returncode == 0: 00018 raise Exception("mbed compile failed") 00019
Generated on Tue Jul 12 2022 20:21:01 by
