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
fc53e145
Commit
fc53e145
authored
Jan 22, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc_main: make it compile with the new ppsi
Signed-off-by:
Adam Wujek
<
adam.wujek@creotech.pl
>
parent
b0ede37f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wrc_main.c
wrc_main.c
+3
-3
No files found.
wrc_main.c
View file @
fc53e145
...
...
@@ -218,7 +218,7 @@ static int wrc_dispatch_ptp_events_poll(void)
{
extern
struct
pp_instance
ppi_static
;
struct
pp_instance
*
ppi
=
&
ppi_static
;
struct
wr_servo_state
*
ss
=
&
((
struct
wr_data
*
)
ppi
->
ext_data
)
->
servo_state
;
struct
pp_servo
*
ss
=
SRV
(
ppi
);
//
= &((struct wr_data *)ppi->ext_data)->servo_state;
int
mode
=
wrc_ptp_get_mode
();
...
...
@@ -250,12 +250,12 @@ static int wrc_dispatch_ptp_events_poll(void)
{
if
(
ppi
->
state
==
PPS_SLAVE
)
{
if
(
ss
->
state
==
WR
_TRACK_PHASE
&&
prev_servo_state
!=
WR
_TRACK_PHASE
)
if
(
ss
->
state
==
WR
H_TRACK_PHASE
&&
prev_servo_state
!=
WRH
_TRACK_PHASE
)
{
prev_timing_ok
=
1
;
event_post
(
WRC_EVENT_TIMING_UP
);
}
else
if
(
ss
->
state
!=
WR
_TRACK_PHASE
&&
prev_servo_state
==
WR
_TRACK_PHASE
)
else
if
(
ss
->
state
!=
WR
H_TRACK_PHASE
&&
prev_servo_state
==
WRH
_TRACK_PHASE
)
{
prev_timing_ok
=
0
;
event_post
(
WRC_EVENT_TIMING_DOWN
);
...
...
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