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
5b200312
Commit
5b200312
authored
Mar 22, 2023
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrpc-spll.c(wrpc_spll_locking_poll): simplify code
parent
17495d97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
wrpc-spll.c
arch-wrpc/wrpc-spll.c
+5
-3
No files found.
arch-wrpc/wrpc-spll.c
View file @
5b200312
...
...
@@ -41,15 +41,17 @@ int wrpc_spll_locking_poll(struct pp_instance *ppi)
/* Else, slave: ensure calibration is done */
if
(
!
locked
)
{
t24p_calibrated
=
0
;
return
WRH_SPLL_UNLOCKED
;
}
else
if
(
locked
&&
!
t24p_calibrated
)
{
if
(
!
t24p_calibrated
)
{
/*run t24p calibration if needed*/
if
(
calib_t24p
(
WRC_MODE_SLAVE
,
&
cal_phase_transition
)
<
0
)
if
(
calib_t24p
(
WRC_MODE_SLAVE
,
&
cal_phase_transition
)
<
0
)
{
return
WRH_SPLL_UNLOCKED
;
}
t24p_calibrated
=
1
;
}
return
locked
?
WRH_SPLL_LOCKED
:
WRH_SPLL_ERROR
;
return
WRH_SPLL_LOCKED
;
}
int
wrpc_spll_check_lock_with_timeout
(
int
lock_timeout
)
...
...
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