diff python/stm32.py @ 129:9e350a7dde98

Changed architecture and updated the util
author Windel Bouwman
date Fri, 18 Jan 2013 12:52:11 +0100
parents 51cc127648e4
children 654093a9a1e3
line wrap: on
line diff
--- a/python/stm32.py	Sun Jan 13 17:31:35 2013 +0100
+++ b/python/stm32.py	Fri Jan 18 12:52:11 2013 +0100
@@ -55,9 +55,9 @@
 @registerDevice(0x10016413)
 class Stm32F4(Device):
    def __init__(self, iface):
-      super().__init__()
-      assert isinstance(iface, Interface)
-      self.iface = iface
+      super().__init__(iface)
+   def __str__(self):
+      return 'STM32F4 device'
    # flashing commands:
    def writeFlash(self, address, content):
       # TODO: