mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 11:18:27 +08:00
artiq_devtool: add load action.
This commit is contained in:
parent
8d62ea2288
commit
87c2f119a5
@ -65,7 +65,7 @@ def get_argparser():
|
|||||||
parser.add_argument("actions", metavar="ACTION",
|
parser.add_argument("actions", metavar="ACTION",
|
||||||
type=str, default=[], nargs="+",
|
type=str, default=[], nargs="+",
|
||||||
help="actions to perform, sequence of: "
|
help="actions to perform, sequence of: "
|
||||||
"build clean reset flash flash+log connect hotswap")
|
"build clean reset flash flash+log load connect hotswap")
|
||||||
|
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
@ -199,6 +199,10 @@ def main():
|
|||||||
flash("start")
|
flash("start")
|
||||||
client.drain(flterm)
|
client.drain(flterm)
|
||||||
|
|
||||||
|
elif action == "load":
|
||||||
|
logger.info("Loading gateware")
|
||||||
|
flash("load")
|
||||||
|
|
||||||
elif action == "connect":
|
elif action == "connect":
|
||||||
lock()
|
lock()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user