self.writecmd(self.MSP430APP,0x03,6,self.data);
written=ord(self.data[0])+(ord(self.data[1])<<8);
if(written!=val):
self.writecmd(self.MSP430APP,0x03,6,self.data);
written=ord(self.data[0])+(ord(self.data[1])<<8);
if(written!=val):
return written;
def MSP430pokeflash(self,adr,val):
"""Write the contents of flash memory at an address."""
return written;
def MSP430pokeflash(self,adr,val):
"""Write the contents of flash memory at an address."""