Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
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
White Rabbit Switch - Software
Commits
04b795b1
Commit
04b795b1
authored
Aug 15, 2019
by
Jean-Claude BAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update phase_valid & phase_value in UP state
parent
a3c2619c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
hal_port_fsm.c
userspace/wrsw_hal/hal_port_fsm.c
+8
-0
No files found.
userspace/wrsw_hal/hal_port_fsm.c
View file @
04b795b1
...
...
@@ -222,6 +222,14 @@ static int _hal_port_state_link_up(void *vpfg, int eventMsk, int isNewState) {
hal_port_pll_init_fsm
(
ps
);
}
if
(
isRtsStateValid
()
)
{
struct
channel
*
ch
=&
getRtsState
().
channels
[
ps
->
hw_index
];
ps
->
phase_val
=
ch
->
phase_loopback
;
ps
->
phase_val_valid
=
ch
->
flags
&
CHAN_PMEAS_READY
?
1
:
0
;
if
(
ps
->
hw_index
==
0
)
//JCB
printf
(
"Phase=%d valid=%d
\n
"
,
ps
->
phase_val
,
ps
->
phase_val_valid
);
}
// Run PLL state machine
hal_port_pll_state_fsm
(
ps
);
...
...
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