def test_010_program_fuses(self): lockFuses = 0x3f eFuses = 0xcb hFuses = 0xd8 lFuses = 0xff returnCode = IcspUtils.writeFuses(self.port, lockFuses, eFuses, hFuses, lFuses) self.assertEqual(returnCode, 0) self.stopMe = False
def test_010_program_fuses(self): lockFuses = 0x2F eFuses = 0xCB hFuses = 0xD8 lFuses = 0xFF returnCode = IcspUtils.writeFuses(self.port, lockFuses, eFuses, hFuses, lFuses) self.assertEqual(returnCode, 0) self.stopMe = False
def test_010_program_fuses(self): self.i.DisplayMessage("Programming fuses...") self.testRig.resetState() self.testRig.enableRelay('EN_USB_VCC') self.testRig.enableRelay('EN_USB_GND') self.testRig.setProgrammerSpeed(0) self.testRig.disconnect() lockFuses = 0x2F eFuses = 0xCB hFuses = 0xD8 lFuses = 0xFF # lFuses = 0x5E #default result = IcspUtils.writeFuses(self.port, lockFuses, eFuses, hFuses, lFuses) self.LogDataPoint('fuses stdout', result[1]) self.LogDataPoint('fuses stderr', result[2]) self.assertEqual(result[0], 0) self.stopMe = False