X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fjtag_stm32%2Fpd.py;h=5aac07f7a4e3dbba2be6e548a506864833d77da2;hb=0e501c70cf26f208d7e523b7fe737d0e8d565109;hp=7d6a71d2ba8180707830359020eb50ac3b674cfc;hpb=c515eed7ef7a04a42b5b34abd308e08d6942835e;p=libsigrokdecode.git diff --git a/decoders/jtag_stm32/pd.py b/decoders/jtag_stm32/pd.py index 7d6a71d..5aac07f 100644 --- a/decoders/jtag_stm32/pd.py +++ b/decoders/jtag_stm32/pd.py @@ -119,7 +119,7 @@ def data_out(bits): % (data_hex, ack_meaning) class Decoder(srd.Decoder): - api_version = 1 + api_version = 2 id = 'jtag_stm32' name = 'JTAG / STM32' longname = 'Joint Test Action Group / ST STM32' @@ -127,19 +127,15 @@ class Decoder(srd.Decoder): license = 'gplv2+' inputs = ['jtag'] outputs = ['jtag_stm32'] - probes = [] - optional_probes = [] - options = {} - annotations = [ - ['text', 'Human-readable text'], - ] + annotations = ( + ('text', 'Human-readable text'), + ) def __init__(self, **kwargs): self.state = 'IDLE' # self.state = 'BYPASS' def start(self): - # self.out_python = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) def handle_reg_bypass(self, cmd, bits):