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
d28c0afb
Commit
d28c0afb
authored
Mar 24, 2023
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make l1e_print_L1Sync_basic_bitmaps static
parent
ec031c59
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
17 deletions
+16
-17
l1e-api.h
proto-ext-l1sync/l1e-api.h
+0
-2
l1e-hooks.c
proto-ext-l1sync/l1e-hooks.c
+0
-15
l1e-msg.c
proto-ext-l1sync/l1e-msg.c
+16
-0
No files found.
proto-ext-l1sync/l1e-api.h
View file @
d28c0afb
...
...
@@ -122,8 +122,6 @@ static inline L1SyncOptParamsPortDS_t *L1E_DSPOR_OP(struct pp_instance *ppi)
/* Prototypes */
uint8_t
l1e_creat_L1Sync_bitmask
(
int
tx_coh
,
int
rx_coh
,
int
congru
);
void
l1e_print_L1Sync_basic_bitmaps
(
struct
pp_instance
*
ppi
,
uint8_t
configed
,
uint8_t
active
,
char
*
text
);
void
l1e_servo_enable_tracking
(
int
enable
);
int
l1e_update_correction_values
(
struct
pp_instance
*
ppi
);
int
l1e_run_state_machine
(
struct
pp_instance
*
ppi
,
void
*
buf
,
int
len
);
...
...
proto-ext-l1sync/l1e-hooks.c
View file @
d28c0afb
...
...
@@ -19,21 +19,6 @@ const char * const l1e_state_name[] = {
[
L1SYNC_UP
]
=
"L1SYNC_UP"
,
};
void
l1e_print_L1Sync_basic_bitmaps
(
struct
pp_instance
*
ppi
,
uint8_t
configed
,
uint8_t
active
,
char
*
text
)
{
pp_diag
(
ppi
,
ext
,
2
,
"ML: L1Sync %s
\n
"
,
text
);
pp_diag
(
ppi
,
ext
,
2
,
"ML:
\t
Config: TxC=%d RxC=%d Cong=%d Param=%d
\n
"
,
((
configed
&
L1E_TX_COHERENT
)
==
L1E_TX_COHERENT
),
((
configed
&
L1E_RX_COHERENT
)
==
L1E_RX_COHERENT
),
((
configed
&
L1E_CONGRUENT
)
==
L1E_CONGRUENT
),
((
configed
&
L1E_OPT_PARAMS
)
==
L1E_OPT_PARAMS
));
pp_diag
(
ppi
,
ext
,
2
,
"ML:
\t
Active: TxC=%d RxC=%d Cong=%d
\n
"
,
((
active
&
L1E_TX_COHERENT
)
==
L1E_TX_COHERENT
),
((
active
&
L1E_RX_COHERENT
)
==
L1E_RX_COHERENT
),
((
active
&
L1E_CONGRUENT
)
==
L1E_CONGRUENT
));
}
/* open is global; called from "pp_init_globals" */
static
int
l1e_open
(
struct
pp_instance
*
ppi
,
struct
pp_runtime_opts
*
rt_opts
)
{
...
...
proto-ext-l1sync/l1e-msg.c
View file @
d28c0afb
...
...
@@ -52,6 +52,22 @@
#define MSG_L1SYNC_TLV_LENGTH 2u
#define MSG_L1SYNC_TLV_EXTENDED_LENGTH 40u
static
void
l1e_print_L1Sync_basic_bitmaps
(
struct
pp_instance
*
ppi
,
uint8_t
configed
,
uint8_t
active
,
char
*
text
)
{
pp_diag
(
ppi
,
ext
,
3
,
"ML: L1Sync %s
\n
"
,
text
);
pp_diag
(
ppi
,
ext
,
3
,
"ML:
\t
Config: TxC=%d RxC=%d Cong=%d Param=%d
\n
"
,
((
configed
&
L1E_TX_COHERENT
)
==
L1E_TX_COHERENT
),
((
configed
&
L1E_RX_COHERENT
)
==
L1E_RX_COHERENT
),
((
configed
&
L1E_CONGRUENT
)
==
L1E_CONGRUENT
),
((
configed
&
L1E_OPT_PARAMS
)
==
L1E_OPT_PARAMS
));
pp_diag
(
ppi
,
ext
,
3
,
"ML:
\t
Active: TxC=%d RxC=%d Cong=%d
\n
"
,
((
active
&
L1E_TX_COHERENT
)
==
L1E_TX_COHERENT
),
((
active
&
L1E_RX_COHERENT
)
==
L1E_RX_COHERENT
),
((
active
&
L1E_CONGRUENT
)
==
L1E_CONGRUENT
));
}
int
l1e_pack_signal
(
struct
pp_instance
*
ppi
)
{
void
*
buf
=
ppi
->
tx_ptp
;
...
...
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