Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr2rf-vme
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
wr2rf-vme
Commits
ff7b8a9a
Commit
ff7b8a9a
authored
Sep 12, 2023
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr2rf.c: fix nco-reset command
parent
b8c17bc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
wr2rf.c
software/libwr2rf/wr2rf.c
+6
-3
No files found.
software/libwr2rf/wr2rf.c
View file @
ff7b8a9a
...
...
@@ -414,13 +414,16 @@ nco_source (struct libwr2rf_dev *dev, int argc, char **argv)
static
void
nco_reset
(
struct
libwr2rf_dev
*
dev
,
int
argc
,
char
**
argv
)
{
unsigned
nco_ctrl_addr
;
unsigned
nco_ctrl_addr
=
WR2RF_VME_REGS_CTRL
+
WR2RF_CTRL_REGS_NCO_RESET_CTRL
;
unsigned
v
;
if
(
argc
!=
1
)
goto
usage
;
nco_ctrl_addr
=
WR2RF_VME_REGS_CTRL
+
WR2RF_CTRL_REGS_NCO_RESET_CTRL
;
libwr2rf_write16
(
dev
,
nco_ctrl_addr
,
0x7
);
v
=
libwr2rf_read16
(
dev
,
nco_ctrl_addr
);
v
|=
WR2RF_CTRL_REGS_NCO_RESET_CTRL_SOFT
;
libwr2rf_write16
(
dev
,
nco_ctrl_addr
,
v
);
return
;
usage:
...
...
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