remove tweak on i2c
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 23 Jul 2018 13:14:27 +0000 (14:14 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 23 Jul 2018 13:14:27 +0000 (14:14 +0100)
src/bsv/peripheral_gen/twi.py

index 4c0d815b3a9032334e4ad3ebe5fa7b0ff450f89a..2fcd6fed5c6d3cf2735212d37c837c9dc8ca94ac 100644 (file)
@@ -30,11 +30,6 @@ class twi(PBase):
         return {'sda': 'out.sda_out_en',
                 'scl': 'out.scl_out_en'}.get(pname, '')
 
-    def pinname_tweak(self, pname, typ, txt):
-        if typ == 'outen':
-            return "pack({0})".format(txt)
-        return txt
-
     def num_irqs(self):
         return 3