Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
c28d8537
Commit
c28d8537
authored
Nov 17, 2023
by
Tomasz Wlostowski
Committed by
Adam Wujek
Nov 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: spll-recorder should not try to read from an empty FIFO
parent
92b55882
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
wrpc.c
tools/wrpc.c
+9
-0
No files found.
tools/wrpc.c
View file @
c28d8537
...
...
@@ -1623,10 +1623,19 @@ void spll_readout_direct(struct board* board )
while
(
cnt
<
buf_size
-
max_record_size
)
{
uint32_t
fifo_sr
=
board
->
readl
(
board
,
OFFSET_SOFTPLL
+
offsetof
(
struct
SPLL_WB
,
DFR_HOST_CSR
)
);
if
(
got_a_full_record
&&
(
fifo_sr
&
SPLL_DFR_HOST_CSR_EMPTY
)
)
break
;
else
{
do
{
fifo_sr
=
board
->
readl
(
board
,
OFFSET_SOFTPLL
+
offsetof
(
struct
SPLL_WB
,
DFR_HOST_CSR
)
);
}
while
(
fifo_sr
&
SPLL_DFR_HOST_CSR_EMPTY
);
}
uint32_t
r
=
board
->
readl
(
board
,
OFFSET_SOFTPLL
+
offsetof
(
struct
SPLL_WB
,
DFR_HOST_R0
)
);
buf
[
cnt
++
]
=
r
;
...
...
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