def assertReset(self, asserted): if asserted: dapSWJPins(self.interface, 0, 'nRESET') else: dapSWJPins(self.interface, 0x80, 'nRESET')
def reset(self): dapSWJPins(self.interface, 0, 'nRESET') sleep(0.1) dapSWJPins(self.interface, 0x80, 'nRESET') sleep(0.1)