Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x393_sata
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
x393_sata
Commits
ff022d6b
Commit
ff022d6b
authored
Oct 06, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control sata switch
parent
1ede10e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
x393sata_control.py
py393sata/x393sata_control.py
+27
-0
No files found.
py393sata/x393sata_control.py
0 → 100644
View file @
ff022d6b
#!/usr/bin/env python
from
__future__
import
print_function
from
__future__
import
division
import
x393sata
import
x393_mem
import
sys
mem
=
x393_mem
.
X393Mem
(
1
,
0
,
1
)
sata
=
x393sata
.
x393sata
()
# 1,0,"10389B")
if
len
(
sys
.
argv
)
>
1
:
cmd
=
sys
.
argv
[
1
]
else
:
cmd
=
"donothing"
if
cmd
==
"set_zynq_ssd"
:
sata
.
set_zynq_ssd
()
elif
cmd
==
"set_zynq_esata"
:
sata
.
set_zynq_esata
()
elif
cmd
==
"set_esata_ssd"
:
sata
.
set_esata_ssd
()
else
:
print
(
"Usage:"
)
print
(
" * camera <-> internal SSD : x393sata_control.py set_zynq_ssd"
)
print
(
" * camera <-> external disk : x393sata_control.py set_zynq_esata"
)
print
(
" * PC <-> internal SSD) : x393sata_control.py set_esata_ssd"
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment