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
1d302f5f
Commit
1d302f5f
authored
Aug 26, 2019
by
Maciej Lipinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[HAL] Commited instructions for TODO in future, related to issue
#199
parent
2c8f84cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
hal_exports.c
userspace/wrsw_hal/hal_exports.c
+2
-0
hal_ports.c
userspace/wrsw_hal/hal_ports.c
+9
-0
No files found.
userspace/wrsw_hal/hal_exports.c
View file @
1d302f5f
...
...
@@ -159,6 +159,8 @@ int halexp_pps_cmd(int cmd, hexp_pps_params_t * params)
int
halexp_port_info_cmd
(
hexp_port_info_params_t
*
params
)
{
int
i
;
/* TODO: Improve/implement handling of many PPSi instances on a
single physical port (see more info in hal_port_update_info() */
for
(
i
=
0
;
i
<
params
->
numberPortInterfaces
;
i
++
)
hal_port_update_info
(
params
->
hIFace
[
i
].
name
,
params
->
hIFace
[
i
].
mode
,
params
->
hIFace
[
i
].
synchronized
);
return
1
;
...
...
userspace/wrsw_hal/hal_ports.c
View file @
1d302f5f
...
...
@@ -615,6 +615,15 @@ void hal_port_update_info(char *iface_name, int mode, int synchronized){
return
;
}
/* TODO: Improve/implement handling of many instances on a single
physical port. Currently, the PPSi instance with the greatest
index will override any preceeding instances on a give physical
port. Very likely, a table with counter of instances per physical
port could be done. If the counter is greater than 1, the arbiration
kicks in. In such case, we could follow what was implemente
previously, namely an Instance in PTP SLAVE state has precedence.
TO BE DISCUSSED.
*/
for
(
i
=
0
;
i
<
HAL_MAX_PORTS
;
i
++
)
{
if
(
ps
->
in_use
&&
...
...
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