From 77b5cf5a300974bf84353fc7d8badbb5cc253a68 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Thu, 29 Apr 2010 23:04:09 +0200 Subject: digital/mimot/tools: add mimot tools --- digital/mimot/tools/write_eeprom.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 digital/mimot/tools/write_eeprom.py (limited to 'digital/mimot/tools/write_eeprom.py') diff --git a/digital/mimot/tools/write_eeprom.py b/digital/mimot/tools/write_eeprom.py new file mode 100644 index 00000000..ab2ae315 --- /dev/null +++ b/digital/mimot/tools/write_eeprom.py @@ -0,0 +1,16 @@ +import sys + +import mimot +import mimot.init +import proto.popen_io +import serial + +if sys.argv[1] == '!': + io = proto.popen_io.PopenIO (sys.argv[2:]) + init = mimot.init.host +else: + io = serial.Serial (sys.argv[1]) + init = mimot.init.target +a = mimot.Proto (io, **init) +a.write_eeprom () +a.close () -- cgit v1.2.3