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
4
Merge Requests
4
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
be11da10
Commit
be11da10
authored
Jul 07, 2011
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix in minic driver - infinite waiting for timestamp
parent
43b877e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
minic.c
dev/minic.c
+4
-2
No files found.
dev/minic.c
View file @
be11da10
...
...
@@ -268,10 +268,12 @@ int minic_tx_frame(uint8_t *hdr, uint8_t *payload, uint32_t size, struct hw_time
uint32_t
counter_r
,
counter_f
;
uint32_t
utc
;
uint32_t
nsec
;
uint32_t
ts_tout
;
while
(
minic_readl
(
MINIC_REG_TSFIFO_CSR
)
&
MINIC_TSFIFO_CSR_EMPTY
);
ts_tout
=
0
;
while
(
(
minic_readl
(
MINIC_REG_TSFIFO_CSR
)
&
MINIC_TSFIFO_CSR_EMPTY
)
&&
ts_tout
<
10
)
ts_tout
++
;
raw_ts
=
minic_readl
(
MINIC_REG_TSFIFO_R0
);
fid
=
(
minic_readl
(
MINIC_REG_TSFIFO_R1
)
>>
5
)
&
0xffff
;
...
...
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