Subversion Repositories freemyipod

Rev

Rev 508 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 508 Rev 516
Line 436... Line 436...
436
            state = 0
436
            state = 0
437
        elif state == "suspended":
437
        elif state == "suspended":
438
            state = 1
438
            state = 1
439
        else:
439
        else:
440
            raise ArgumentError("State must be either 'ready' or 'suspended'")
440
            raise ArgumentError("State must be either 'ready' or 'suspended'")
441
        resp = self.lib.monitorcommand(struct.pack("IIIIIIII", 19, nameptr, entrypoint, stackptr, stacksize, threadtype, priority, state), "III", (id, None, None))
441
        resp = self.lib.monitorcommand(struct.pack("IIIIIIII", 19, nameptr, entrypoint, stackptr, stacksize, threadtype, priority, state), "III", ("threadptr", None, None))
442
        if resp.id < 0:
442
        if resp.threadptr < 0:
443
            raise DeviceError("The device returned the error code "+str(resp.id))
443
            raise DeviceError("The device returned the error code "+str(resp.threadptr))
444
        return resp
444
        return resp
445
    
445
    
446
    @command()
446
    @command()
447
    def flushcaches(self):
447
    def flushcaches(self):
448
        """ Flushes the CPU instruction and data cache """
448
        """ Flushes the CPU instruction and data cache """