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
8b550c3a
Commit
8b550c3a
authored
Apr 09, 2021
by
John Robert Gill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing page setup sequence to access wishbone bus behind WRC memory map.
parent
589ee702
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
init.c
software/libwr2rf/init.c
+2
-0
No files found.
software/libwr2rf/init.c
View file @
8b550c3a
...
...
@@ -267,6 +267,7 @@ libwr2rf_set_wrs_fixed_latency (struct libwr2rf_dev *dev, unsigned wr_cycles)
unsigned
cfg5_addr
=
0x74
;
// STREAMERS_RX_CFG5 - fixed latency, # of 8ns clock cycles
unsigned
cfg_addr
=
0x78
;
// STREAMERS_CFG for accessing Tx/Rx overide
libwr2rf_be_write32
(
dev
,
WR2RF_VME_REGS_INIT
+
WR2RF_INIT_REGS_WRC_PAGE0
,
0x48000
);
libwr2rf_wrc_write32
(
dev
,
cfg5_addr
,
wr_cycles
);
libwr2rf_wrc_write32
(
dev
,
cfg_addr
,
(
1
<<
21
));
}
...
...
@@ -286,6 +287,7 @@ libwr2rf_set_wrs_timeout_latency (struct libwr2rf_dev *dev, unsigned wr_cycles)
unsigned
cfg6_addr
=
0xa4
;
// STREAMERS_RX_CFG6 - fixed latency timeout
unsigned
cfg_addr
=
0x78
;
// STREAMERS_CFG for accessing Tx/Rx overide
libwr2rf_be_write32
(
dev
,
WR2RF_VME_REGS_INIT
+
WR2RF_INIT_REGS_WRC_PAGE0
,
0x48000
);
libwr2rf_wrc_write32
(
dev
,
cfg6_addr
,
wr_cycles
);
libwr2rf_wrc_write32
(
dev
,
cfg_addr
,
(
1
<<
21
));
}
...
...
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