Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DIO 5ch TTL a
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
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
FMC DIO 5ch TTL a
Commits
0364074c
Commit
0364074c
authored
Oct 09, 2020
by
Jorge Machado
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add verbosity to update width error
parent
9bec167f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
fmc-dio-internal.c
sw/kernel/fmc-dio-internal.c
+1
-1
wr-dio-cmd.c
sw/tools/wr-dio-cmd.c
+2
-1
No files found.
sw/kernel/fmc-dio-internal.c
View file @
0364074c
...
...
@@ -236,7 +236,7 @@ static int fmc_dio_int_cmd_update_width(struct fmc_dio *dev,
writel
(
1
<<
ch
,
base
+
dio
.
latch_reg
);
}
else
return
-
1
;
return
-
EINVAL
;
return
0
;
}
...
...
sw/tools/wr-dio-cmd.c
View file @
0364074c
...
...
@@ -190,7 +190,8 @@ static int scan_width(int argc, char **argv)
}
if
(
ioctl
(
fd
,
PRIV_MEZZANINE_CMD
,
(
unsigned
long
)
cmd
)
<
0
)
{
fprintf
(
stderr
,
"%s: ioctl(PRIV_MEZZANINE_CMD(%s)): %s
\n
"
,
fprintf
(
stderr
,
"%s: ioctl(PRIV_MEZZANINE_CMD(%s)): %s.
\n
The new pulse width must be coherent with the previously programmed period
\n
"
,
prgname
,
devname
,
strerror
(
errno
));
return
-
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