Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
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
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
Beam Positoning Monitor - Software
Commits
7d04ea7e
Commit
7d04ea7e
authored
Jul 16, 2014
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hal/dev_io/dev_io.c: use LLIO utility functions
parent
b318d922
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
dev_io.c
hal/dev_io/dev_io.c
+3
-8
No files found.
hal/dev_io/dev_io.c
View file @
7d04ea7e
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
#include "czmq.h"
#include "czmq.h"
#include "dev_io.h"
#include "dev_io.h"
#include "debug_print.h"
#include "debug_print.h"
#include "ll_io_utils.h"
void
print_help
(
char
*
program_name
)
void
print_help
(
char
*
program_name
)
{
{
...
@@ -87,15 +88,9 @@ int main (int argc, char *argv[])
...
@@ -87,15 +88,9 @@ int main (int argc, char *argv[])
}
}
}
}
llio_type_e
llio_type
;
llio_type_e
llio_type
=
llio_str_to_type
(
dev_type
)
;
/* Parse command-line options */
/* Parse command-line options */
if
(
streq
(
dev_type
,
"pcie"
))
{
if
(
llio_type
==
INVALID_DEV
)
{
llio_type
=
PCIE_DEV
;
}
else
if
(
streq
(
dev_type
,
"eth"
))
{
llio_type
=
ETH_DEV
;
}
else
{
DBE_DEBUG
(
DBG_DEV_IO
|
DBG_LVL_FATAL
,
"[dev_io] Dev_type parameter is invalid
\n
"
);
DBE_DEBUG
(
DBG_DEV_IO
|
DBG_LVL_FATAL
,
"[dev_io] Dev_type parameter is invalid
\n
"
);
goto
err_exit
;
goto
err_exit
;
}
}
...
...
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