Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
14
Issues
14
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple VME FMC Carrier SVEC
Commits
c00f290c
Commit
c00f290c
authored
Nov 27, 2017
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_vme.c: add show-func.
parent
1fdb8ecb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
test_vme.c
software/vmecore_test/test_vme.c
+22
-0
No files found.
software/vmecore_test/test_vme.c
View file @
c00f290c
...
...
@@ -550,6 +550,26 @@ do_leds (void)
play_leds
(
pat3
,
sizeof
(
pat3
)
/
sizeof
(
unsigned
short
));
}
void
do_show_functions
(
void
)
{
int
i
;
for
(
i
=
0
;
i
<
8
;
i
++
)
{
int
j
;
struct
vme_function
fn
;
read_vme_function
(
&
fn
,
i
);
printf
(
"F%d: amcap=%016lx adem=%08x ader=%08x am=%02x
\n
"
,
i
,
fn
.
amcap
,
fn
.
adem
,
fn
.
ader
,
fn
.
am
);
for
(
j
=
0
;
j
<
64
;
j
++
)
if
((
fn
.
amcap
>>
j
)
&
1
)
printf
(
" %02x"
,
j
);
printf
(
"
\n
"
);
}
}
int
main
(
int
argc
,
char
**
argv
)
{
...
...
@@ -801,6 +821,8 @@ main (int argc, char **argv)
am
=
0x38
;
do_test_dma_with_len
(
am
,
0x10000
,
0x40000
);
}
else
if
(
strcmp
(
action
,
"show-func"
)
==
0
)
do_show_functions
();
else
printf
(
"unknown action
\n
"
);
...
...
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