]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/avr_isp/pd.py
All PDs: Only import the 'Decoder' object.
[libsigrokdecode.git] / decoders / avr_isp / pd.py
index 42ac48b7d6712f74d77878e39b658c8750e90c4f..3a7c86857c8cf2932c6075a5b581575d87d789f1 100644 (file)
@@ -24,17 +24,14 @@ from .parts import *
 VENDOR_CODE_ATMEL = 0x1e
 
 class Decoder(srd.Decoder):
-    api_version = 1
+    api_version = 2
     id = 'avr_isp'
     name = 'AVR ISP'
     longname = 'AVR In-System Programming'
     desc = 'Protocol for in-system programming Atmel AVR MCUs.'
     license = 'gplv2+'
-    inputs = ['spi', 'logic']
+    inputs = ['spi']
     outputs = ['avr_isp']
-    optional_probes = (
-        {'id': 'reset', 'name': 'RESET#', 'desc': 'Target AVR MCU reset'},
-    )
     annotations = (
         ('pe', 'Programming enable'),
         ('rsb0', 'Read signature byte 0'),
@@ -62,7 +59,6 @@ class Decoder(srd.Decoder):
         self.device_ss = None
 
     def start(self):
-        # self.out_python = self.register(srd.OUTPUT_PYTHON)
         self.out_ann = self.register(srd.OUTPUT_ANN)
 
     def putx(self, data):
@@ -212,4 +208,3 @@ class Decoder(srd.Decoder):
 
         self.mosi_bytes = []
         self.miso_bytes = []
-