Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
5a77159d
Commit
5a77159d
authored
Oct 08, 2022
by
Omar Gabella
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue fixed
parent
78fffc7a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
+10
-4
wrc_ptp_ppsi.c
arch-wrpc/wrc_ptp_ppsi.c
+2
-3
wrpc-spll.c
arch-wrpc/wrpc-spll.c
+1
-1
wr-api.h
proto-ext-whiterabbit/wr-api.h
+3
-0
wr-servo.c
proto-ext-whiterabbit/wr-servo.c
+4
-0
No files found.
arch-wrpc/wrc_ptp_ppsi.c
View file @
5a77159d
...
...
@@ -34,10 +34,9 @@ static struct wr_operations wrpc_wr_operations = {
.
locking_disable
=
wrpc_spll_locking_disable
,
.
enable_ptracker
=
wrpc_spll_enable_ptracker
,
#if defined(BROADCAST_BASE) && defined(BC_EXTRA_MON)
.
adjust_in_progress
=
wrpc_adjust_in_progress_bc
,
#else
.
adjust_in_progress
=
wrpc_adjust_in_progress
,
.
adjust_in_progress_bc
=
wrpc_adjust_in_progress_bc
,
#endif // BROADCAST_BASE && BC_EXTRA_MON
.
adjust_in_progress
=
wrpc_adjust_in_progress
,
.
adjust_counters
=
wrpc_adjust_counters
,
.
adjust_phase
=
wrpc_adjust_phase
,
...
...
arch-wrpc/wrpc-spll.c
View file @
5a77159d
...
...
@@ -77,7 +77,7 @@ int wrpc_adjust_in_progress(void)
int
wrpc_adjust_in_progress_bc
(
struct
pp_instance
*
ppi
)
{
#if defined(BROADCAST_BASE) && defined(BC_EXTRA_MON)
/* ONLY FOR TESTS */
/* ONLY FOR TESTS */
if
(
shw_pps_gen_busy
())
WR_DSPOR
(
ppi
)
->
ctr_pps_gen_busy
++
;
else
if
(
spll_shifter_busy
(
0
))
...
...
proto-ext-whiterabbit/wr-api.h
View file @
5a77159d
...
...
@@ -176,6 +176,9 @@ struct wr_operations {
int
(
*
enable_ptracker
)(
struct
pp_instance
*
ppi
);
int
(
*
adjust_in_progress
)(
void
);
#if defined(BROADCAST_BASE) && defined(BC_EXTRA_MON)
int
(
*
adjust_in_progress_bc
)(
struct
pp_instance
*
ppi
);
#endif // BROADCAST_BASE && BC_EXTRA_MON
int
(
*
adjust_counters
)(
int64_t
adjust_sec
,
int32_t
adjust_nsec
);
int
(
*
adjust_phase
)(
int32_t
phase_ps
);
...
...
proto-ext-whiterabbit/wr-servo.c
View file @
5a77159d
...
...
@@ -587,7 +587,11 @@ int wr_servo_update(struct pp_instance *ppi)
}
/* After each action on the hardware, we must verify if it is over. */
#if defined(BROADCAST_BASE) && defined(BC_EXTRA_MON)
if
(
!
wrp
->
ops
->
adjust_in_progress_bc
(
ppi
))
{
#else
if
(
!
wrp
->
ops
->
adjust_in_progress
())
{
#endif // BROADCAST_BASE && BC_EXTRA_MON
s
->
flags
&=
~
WR_FLAG_WAIT_HW
;
}
else
{
pp_diag
(
ppi
,
servo
,
1
,
"servo:busy
\n
"
);
...
...
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