Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
85
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
8460afcf
Commit
8460afcf
authored
5 months ago
by
Adam Wujek
Browse files
Options
Downloads
Patches
Plain Diff
[BUG:
#337
] userspace/wrsw_hal: number ports as 01-12 in tx_phase_cal.conf
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
674d8066
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
userspace/rootfs_override/wr/etc/tx_phase_cal.conf
+12
-12
12 additions, 12 deletions
userspace/rootfs_override/wr/etc/tx_phase_cal.conf
userspace/wrsw_hal/hal_port_fsm_tx.c
+3
-3
3 additions, 3 deletions
userspace/wrsw_hal/hal_port_fsm_tx.c
with
15 additions
and
15 deletions
userspace/rootfs_override/wr/etc/tx_phase_cal.conf
+
12
−
12
View file @
8460afcf
MD5
=
164571209
f47ccec456e0e908befd99e
TX_PHASE_PORT0
=
308
TX_PHASE_PORT
1
=
497
TX_PHASE_PORT
2
=
300
TX_PHASE_PORT
3
=
1138
TX_PHASE_PORT
4
=
1370
TX_PHASE_PORT
5
=
600
TX_PHASE_PORT
6
=
1219
TX_PHASE_PORT
7
=
321
TX_PHASE_PORT
8
=
763
TX_PHASE_PORT
9
=
780
TX_PHASE_PORT1
0
=
1080
TX_PHASE_PORT1
1
=
1438
TX_PHASE_PORT0
1
=
308
TX_PHASE_PORT
02
=
497
TX_PHASE_PORT
03
=
300
TX_PHASE_PORT
04
=
1138
TX_PHASE_PORT
05
=
1370
TX_PHASE_PORT
06
=
600
TX_PHASE_PORT
07
=
1219
TX_PHASE_PORT
08
=
321
TX_PHASE_PORT
09
=
763
TX_PHASE_PORT
10
=
780
TX_PHASE_PORT1
1
=
1080
TX_PHASE_PORT1
2
=
1438
This diff is collapsed.
Click to expand it.
userspace/wrsw_hal/hal_port_fsm_tx.c
+
3
−
3
View file @
8460afcf
...
...
@@ -536,8 +536,8 @@ static void _load_tx_calibration_file(struct hal_port_state * ports) {
{
char
key_name
[
80
];
int
value
;
snprintf
(
key_name
,
sizeof
(
key_name
),
"TX_PHASE_PORT%d"
,
ps
->
hw_index
);
snprintf
(
key_name
,
sizeof
(
key_name
),
"TX_PHASE_PORT%
02
d"
,
ps
->
hw_index
+
1
);
if
(
cfg_get_int
(
_calibrationConfig
,
key_name
,
&
value
)
)
{
...
...
@@ -580,7 +580,7 @@ static void _write_tx_calibration_file(struct hal_port_state * ps)
if
(
_ps
->
in_use
&&
_ps
->
lpdc
.
isSupported
)
{
char
key_name
[
80
];
snprintf
(
key_name
,
sizeof
(
key_name
),
"TX_PHASE_PORT%d"
,
_ps
->
hw_index
);
snprintf
(
key_name
,
sizeof
(
key_name
),
"TX_PHASE_PORT%
02
d"
,
_ps
->
hw_index
+
1
);
cfg_set_int
(
cfg
,
key_name
,
_ps
->
lpdc
.
txSetup
->
measured_phase
);
}
_ps
++
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment