Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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 PCIe FMC carrier SPEC - Software
Commits
08064303
Commit
08064303
authored
Feb 21, 2017
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: use define for constant values
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
5f15d26e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
spec-vuart.c
tools/spec-vuart.c
+4
-2
No files found.
tools/spec-vuart.c
View file @
08064303
...
...
@@ -91,10 +91,12 @@ void term_main(int keep_term)
tcsetattr
(
STDIN_FILENO
,
TCSANOW
,
&
oldkey
);
}
#define __WR_VUART_OFFSET 0x20500
/* typical location */
int
main
(
int
argc
,
char
**
argv
)
{
int
bus
=
-
1
,
dev_fn
=
-
1
,
c
;
uint32_t
vuart_base
=
0x20500
;
uint32_t
vuart_base
=
__WR_VUART_OFFSET
;
int
keep_term
=
0
;
while
((
c
=
getopt
(
argc
,
argv
,
"b:d:u:kV"
))
!=
-
1
)
...
...
@@ -124,7 +126,7 @@ int main(int argc, char **argv)
"By default, the first available SPEC "
"is used and the VUART is assumed at 0x%x.
\n
"
"-k option keeps the prev terminal config
\n
"
,
vuart_base
);
__WR_VUART_OFFSET
);
exit
(
1
);
}
}
...
...
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