Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Testing
Commits
a5387ec0
Commit
a5387ec0
authored
Mar 14, 2013
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alpha-pts: LED now stop between color testing
parent
32423ccc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
10 deletions
+22
-10
002-LED_Checking.sh
sw/alpha-pts/002-LED_Checking.sh
+22
-10
No files found.
sw/alpha-pts/002-LED_Checking.sh
View file @
a5387ec0
...
...
@@ -24,17 +24,29 @@ printf "======: $0\n"
load-virtex
${
APTS_HDL_18P
}
load-lm32
${
APTS_FW_RTCPU
}
led_pattern
=
"green, orange, yellow, none"
ret0
=
0
ret1
=
0
ret2
=
0
ret3
=
0
retstr
=
""
user_echoasking
"y/N"
"Ready for the led pattern? (
${
led_pattern
}
)"
"ready"
shw_tool
--led
user_echoasking
"y/N"
"Did you see the LEDs pattern (
${
led_pattern
}
)"
"LEDS"
ret0
=
-
$?
if
[
$ans
==
"n"
]
;
then
read
-p
"Write the failing LED: "
ans
echo
"
$ans
"
fi
led_pattern
=
"green orange yellow none"
exit_multierr
$ret0
iled_id
=
0
for
nled
in
${
led_pattern
}
;
do
shw_tool
--led
-i
${
iled_id
}
iled_id
=
$((
$iled_id
+
1
))
user_echoasking
"y/N"
"Did you see the LEDs in
${
nled
}
"
"LEDS_
${
nled
}
"
retstr
=
"
$retstr
-
$?
"
if
[
$ans
==
"n"
]
;
then
read
-p
"Write the failing LED for color : "
ans
echo
"
$ans
"
fi
done
exit_multierr
$retstr
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