diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-07-24 16:53:40 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-07-24 16:53:40 -0400 |
commit | babc82aa582b3949bdb425429c1f486eafa336b2 (patch) | |
tree | 7defb8f25cd0fb69423b8e922803ba894198af20 /support | |
parent | f1d5322279328a2a176e43056f78a50812db55f1 (diff) | |
download | librambutan-babc82aa582b3949bdb425429c1f486eafa336b2.tar.gz librambutan-babc82aa582b3949bdb425429c1f486eafa336b2.zip |
stm32loader.py: Remove unused code.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'support')
-rwxr-xr-x | support/stm32loader.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/support/stm32loader.py b/support/stm32loader.py index b0df7c0..737e403 100755 --- a/support/stm32loader.py +++ b/support/stm32loader.py @@ -425,8 +425,6 @@ if __name__ == "__main__": conf['address'] = eval(a) elif o == '-l': conf['len'] = eval(a) -# elif o == '-f': -# conf['fname'] = a else: assert False, "unhandled option" @@ -471,12 +469,6 @@ if __name__ == "__main__": if len(id) < 2 or id[0] != 0x04: raise Exception('Unrecognised chip ID') -# cmd.cmdGetVersion() -# cmd.cmdGetID() -# cmd.cmdReadoutUnprotect() -# cmd.cmdWriteUnprotect() -# cmd.cmdWriteProtect([0, 1]) - if conf['erase']: cmd.cmdEraseMemory() @@ -496,10 +488,8 @@ if __name__ == "__main__": if not conf['write'] and conf['read']: rdata = cmd.readMemory(conf['address'], conf['len']) -# file(conf['fname'], 'wb').write(rdata) file(args[0], 'wb').write(''.join(map(chr,rdata))) -# cmd.cmdGo(addr + 0x04) finally: cmd.releaseChip() |