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
2dddacb8
Commit
2dddacb8
authored
Apr 20, 2021
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwr2rf: also clear offline configuration in case of vtu reset
parent
9170c22d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
board.c
software/libwr2rf/board.c
+10
-0
No files found.
software/libwr2rf/board.c
View file @
2dddacb8
...
...
@@ -684,6 +684,16 @@ int libwr2rf_vtu_reset (struct libwr2rf_dev *dev, unsigned id, unsigned rst)
v
&=
~
TRIGUNIT_REGS_CONTROL_VTURESET
;
libwr2rf_write16
(
dev
,
addr
+
TRIGUNIT_REGS_CONTROL
,
v
);
if
(
rst
)
{
/* Also clear offline configuration in case of reset. */
v
=
libwr2rf_read16
(
dev
,
addr
+
TRIGUNIT_REGS_CONFIGOFFLINE
);
if
(
v
&
TRIGUNIT_REGS_CONFIGOFFLINE_VALID
)
{
v
&=
~
TRIGUNIT_REGS_CONFIGOFFLINE_VALID
;
libwr2rf_write16
(
dev
,
addr
+
TRIGUNIT_REGS_CONFIGOFFLINE
,
v
);
}
}
return
0
;
}
...
...
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