This file is part of jallib https://github.com/jallib/jallib Released under the BSD license https://www.opensource.org/licenses/bsd-license.php Description: Script to convert XML file into a simple tree structure to better understand the contents of the MPLAB-X .pic (XML) files. Sources: N/A Notes: """ from pic2jal_environment import check_and_set_environment base, mplabxversion = check_and_set_environment( ) # obtain environment variables if (base == ""): exit(1) import sys import os import re import fnmatch from xml.dom.minidom import parse, Node picdir = os.path.join(base, "mplabx." + mplabxversion, "content", "edc") picdirs = ("16c5x", "16xxxx", "18xxxx" ) # directories with xml files of 8-bits pic # output (relative path) xmltreedir = os.path.join(base, "xmltree." +
Compiler: N/A This file is part of jallib https://github.com/jallib/jallib Released under the BSD license https://www.opensource.org/licenses/bsd-license.php Description: Simple list of all pins and their aliases. Sources: N/A Notes: """ from pic2jal_environment import check_and_set_environment base, mplabxversion = check_and_set_environment() # obtain environment variables if (base == ""): exit(1) import os import sys import re from xml.dom.minidom import parse, Node pinlist = os.path.join(base, "pinlist.txt") # destination picdir = os.path.join(base, "mplabx." + mplabxversion, "content", "edc") # base of .pic files portpin = re.compile(r"^R[A-L]{1}[0-7]{1}\Z") # Rx0..7 (x in range A..L) gpiopin = re.compile(r"^GP[0-5]{1}\Z") # GP0..5