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
fd40a823
Commit
fd40a823
authored
Nov 22, 2021
by
Karol Adrianek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwr2rf: added support for the 'NONE' debug signal ('libwr2rf_configure_lemo_debug()')
parent
8b124566
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
board.c
software/libwr2rf/board.c
+4
-3
api.h
software/libwr2rf/libwr2rf/api.h
+2
-0
No files found.
software/libwr2rf/board.c
View file @
fd40a823
...
...
@@ -1327,7 +1327,7 @@ libwr2rf_configure_lemo_debug(struct libwr2rf_dev *dev, unsigned lemo, unsigned
unsigned
baddr
=
WR2RF_VME_REGS_INIT
;
unsigned
addr
=
0
;
if
(
dbg
>
LIBWR2RF_LEMO_DBG_
WRS_SOFTSTART
)
if
(
dbg
>
LIBWR2RF_LEMO_DBG_
NONE
)
return
LIBWR2RF_ERROR_BAD_PARAM
;
switch
(
lemo
)
{
...
...
@@ -1352,8 +1352,9 @@ libwr2rf_configure_lemo_debug(struct libwr2rf_dev *dev, unsigned lemo, unsigned
default:
return
LIBWR2RF_ERROR_BAD_ID
;
}
libwr2rf_write16
(
dev
,
baddr
+
addr
,
(
1
<<
dbg
));
uint16_t
val
=
(
dbg
==
LIBWR2RF_LEMO_DBG_NONE
)
?
0x0
:
(
1
<<
dbg
);
libwr2rf_write16
(
dev
,
baddr
+
addr
,
val
);
return
0
;
}
...
...
software/libwr2rf/libwr2rf/api.h
View file @
fd40a823
...
...
@@ -162,6 +162,8 @@ int libwr2rf_read_diag(struct libwr2rf_dev *dev, unsigned id,
#define LIBWR2RF_LEMO_DBG_WRS_RF_RST 11
#define LIBWR2RF_LEMO_DBG_WRS_SOFTSTOP 12
#define LIBWR2RF_LEMO_DBG_WRS_SOFTSTART 13
#define LIBWR2RF_LEMO_DBG_NONE 14
/* LEMO front panel debug selection */
int
libwr2rf_configure_lemo_debug
(
struct
libwr2rf_dev
*
dev
,
...
...
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