Browse Source

Tools: add known Calibration tag to apm.pdef.xml

this will allow a GCS to hide anything that a user should never
ordinarily have to see in terms of calibration parameters
c415-sdk
Peter Barker 5 years ago committed by Peter Barker
parent
commit
16f4d33d00
  1. 1
      Tools/autotest/param_metadata/param.py
  2. 3
      Tools/autotest/param_metadata/xmlemit.py

1
Tools/autotest/param_metadata/param.py

@ -31,6 +31,7 @@ known_param_fields = [
'Bitmask', 'Bitmask',
'Volatile', 'Volatile',
'ReadOnly', 'ReadOnly',
'Calibration',
] ]
# Follow SI units conventions from: # Follow SI units conventions from:

3
Tools/autotest/param_metadata/xmlemit.py

@ -46,6 +46,9 @@ class XmlEmit(Emit):
if hasattr(param, 'User'): if hasattr(param, 'User'):
t += ' user=%s' % quoteattr(param.User) # i.e. Standard or Advanced t += ' user=%s' % quoteattr(param.User) # i.e. Standard or Advanced
if hasattr(param, 'Calibration'):
t += ' calibration=%s' % quoteattr(param.Calibration) # i.e. Standard or Advanced
t += ">\n" t += ">\n"
# Add values as chidren of this node # Add values as chidren of this node

Loading…
Cancel
Save