X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=decoders%2Fjtag%2Fpd.py;h=0bb4069d66cabc8fe27c8b093f8bfd382cf49db2;hb=780770f1295b7fdeb4481eb42623bad5da1e19a7;hp=26ddbac5fd9a7152e6287b370a4962c321689aae;hpb=c515eed7ef7a04a42b5b34abd308e08d6942835e;p=libsigrokdecode.git diff --git a/decoders/jtag/pd.py b/decoders/jtag/pd.py index 26ddbac..0bb4069 100644 --- a/decoders/jtag/pd.py +++ b/decoders/jtag/pd.py @@ -53,12 +53,6 @@ jtag_states = [ 'SHIFT-IR', 'EXIT1-IR', 'EXIT2-IR', ] -def get_annotation_classes(): - l = [] - for s in jtag_states: - l.append([s.lower(), s]) - return l - class Decoder(srd.Decoder): api_version = 1 id = 'jtag' @@ -79,8 +73,7 @@ class Decoder(srd.Decoder): {'id': 'srst', 'name': 'SRST#', 'desc': 'System reset'}, {'id': 'rtck', 'name': 'RTCK', 'desc': 'Return clock signal'}, ] - options = {} - annotations = get_annotation_classes() + annotations = [[s.lower(), s] for s in jtag_states] def __init__(self, **kwargs): # self.state = 'TEST-LOGIC-RESET'