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
cb02d236
Commit
cb02d236
authored
Jul 31, 2011
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc_main: removed trailing white space
parent
c64cb5c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
wrc_main.c
wrc_main.c
+11
-11
No files found.
wrc_main.c
View file @
cb02d236
...
...
@@ -81,7 +81,7 @@ void silly_minic_test()
memset
(
buf_hdr
+
6
,
0
,
6
);
buf_hdr
[
12
]
=
0xc0
;
buf_hdr
[
13
]
=
0xef
;
minic_tx_frame
(
buf_hdr
,
buf
,
64
,
buf
);
mprintf
(
"Send
\n
"
);
timer_delay
(
1000
);
...
...
@@ -94,14 +94,14 @@ void test_transition()
{
int
phase
=
0
;
softpll_enable
();
while
(
!
softpll_check_lock
())
timer_delay
(
1000
);
for
(;;)
{
struct
hw_timestamp
hwts
;
uint8_t
buf_hdr
[
18
],
buf
[
128
];
if
(
minic_rx_frame
(
buf_hdr
,
buf
,
128
,
&
hwts
)
>
0
)
{
printf
(
"phase %d ahead %d
\n
"
,
phase
,
hwts
.
ahead
);
...
...
@@ -130,7 +130,7 @@ int main(void)
int
rx
,
tx
;
int
link_went_up
,
link_went_down
;
int
prev_link_state
=
0
,
link_state
;
int16_t
ret
;
uart_init
();
...
...
@@ -158,20 +158,20 @@ int main(void)
ptpPortDS
=
ptpdStartup
(
0
,
NULL
,
&
ret
,
&
rtOpts
,
&
ptpClockDS
);
initDataClock
(
&
rtOpts
,
&
ptpClockDS
);
for
(;;)
{
link_state
=
ep_link_up
();
link_went_up
=
!
prev_link_state
&&
link_state
;
prev_link_state
=
link_state
;
if
(
link_went_up
)
{
uint32_t
dtxm
,
drxm
;
TRACE_DEV
(
"LINK UP
\n
"
);
// toState(PTP_INITIALIZING, &rtOpts, ptpPortDS);
}
//wr_mon_debug();
...
...
@@ -179,15 +179,15 @@ int main(void)
{
enable_tracking
=
1
-
enable_tracking
;
wr_servo_enable_tracking
(
enable_tracking
);
}
}
//mprintf("before state=%d, wrState=%d\n", ptpPortDS->portState, ptpPortDS->wrPortState);
protocol_nonblock
(
&
rtOpts
,
ptpPortDS
);
//mprintf("after state=%d, wrState=%d\n", ptpPortDS->portState, ptpPortDS->wrPortState);
update_rx_queues
();
timer_delay
(
10
);
}
}
...
...
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