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
35eca7da
Commit
35eca7da
authored
Mar 18, 2013
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/minic: cosmetics
parent
773a0042
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
minic.c
dev/minic.c
+11
-11
No files found.
dev/minic.c
View file @
35eca7da
...
...
@@ -325,8 +325,8 @@ int minic_tx_frame(uint8_t * hdr, uint8_t * payload, uint32_t size,
mcr
=
minic_readl
(
MINIC_REG_MCR
);
if
((
mcr
&
MINIC_MCR_TX_IDLE
)
!=
0
)
break
;
timer_delay
(
1
);
}
}
if
(
i
==
1000
)
mprintf
(
"Warning: tx not terminated infinite mcr=0x%x
\n
"
,
mcr
);
...
...
@@ -336,17 +336,17 @@ int minic_tx_frame(uint8_t * hdr, uint8_t * payload, uint32_t size,
uint32_t
counter_r
,
counter_f
;
uint64_t
sec
;
uint32_t
nsec
;
/* wait for the timestamp */
for
(
i
=
0
;
i
<
1000
;
++
i
)
{
mcr
=
minic_readl
(
MINIC_REG_MCR
);
if
((
mcr
&
MINIC_MCR_TX_TS_READY
)
!=
0
)
break
;
timer_delay
(
1
);
}
if
(
i
==
1000
)
mprintf
(
"Warning: tx timestamp never became available
\n
"
);
mcr
=
minic_readl
(
MINIC_REG_MCR
);
if
((
mcr
&
MINIC_MCR_TX_TS_READY
)
!=
0
)
break
;
timer_delay
(
1
);
}
if
(
i
==
1000
)
mprintf
(
"Warning: tx timestamp never became available
\n
"
);
ts_valid
=
(
uint8_t
)(
minic_readl
(
MINIC_REG_TSR0
)
&
MINIC_TSR0_VALID
);
...
...
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