projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e052d7f
)
litex_term: make sure to unconfigure console when board is unplugged
author
Florent Kermarrec
<florent@enjoy-digital.fr>
Tue, 6 Aug 2019 06:46:25 +0000
(08:46 +0200)
committer
Florent Kermarrec
<florent@enjoy-digital.fr>
Tue, 6 Aug 2019 06:46:25 +0000
(08:46 +0200)
litex/tools/litex_term.py
patch
|
blob
|
history
diff --git
a/litex/tools/litex_term.py
b/litex/tools/litex_term.py
index 1cd9a5131b02acac6c6aaf5e64ae28f2b5da3078..a075615e386ecb50becd83efd88bf5a4d7564b3d 100755
(executable)
--- a/
litex/tools/litex_term.py
+++ b/
litex/tools/litex_term.py
@@
-268,6
+268,7
@@
class LiteXTerm:
except serial.SerialException:
self.reader_alive = False
+ self.console.unconfigure()
raise
def start_reader(self):
@@
-292,6
+293,7
@@
class LiteXTerm:
self.port.write(b)
except:
self.writer_alive = False
+ self.console.unconfigure()
raise
def start_writer(self):
@@
-334,8
+336,8
@@
def _get_args():
def main():
args = _get_args()
term = LiteXTerm(args.serial_boot, args.kernel, args.kernel_adr, args.images)
- term.console.configure()
term.open(args.port, int(float(args.speed)))
+ term.console.configure()
term.start()
term.join(True)