Commit 9b89725f authored by Adam Wujek's avatar Adam Wujek

[BUG: #47] include/ppsi/pp-instance: rename l1SyncRxCoherencyIsRequired to…

[BUG: #47] include/ppsi/pp-instance: rename l1SyncRxCoherencyIsRequired to l1SyncRxCoherentIsRequired (and similar)

rename:
l1SyncRxCoherencyIsRequired to l1SyncRxCoherentIsRequired
l1SyncTxCoherencyIsRequired to l1SyncTxCoherentIsRequired
l1SyncCongruencyIsRequired to l1SyncCongruentIsRequired

It looks like IEEE1588-2019 is wrong
Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 1d0feef7
......@@ -286,9 +286,9 @@ int main(int argc, char **argv)
if (!enable_l1Sync(ppi, TRUE))
goto exit_out_of_memory;
/* Read L1SYNC parameters */
L1E_DSPOR_BS(ppi)->rxCoherentIsRequired = ppi->cfg.l1SyncRxCoherencyIsRequired;
L1E_DSPOR_BS(ppi)->txCoherentIsRequired = ppi->cfg.l1SyncTxCoherencyIsRequired;
L1E_DSPOR_BS(ppi)->congruentIsRequired = ppi->cfg.l1SyncCongruencyIsRequired;
L1E_DSPOR_BS(ppi)->rxCoherentIsRequired = ppi->cfg.l1SyncRxCoherentIsRequired;
L1E_DSPOR_BS(ppi)->txCoherentIsRequired = ppi->cfg.l1SyncTxCoherentIsRequired;
L1E_DSPOR_BS(ppi)->congruentIsRequired = ppi->cfg.l1SyncCongruentIsRequired;
L1E_DSPOR_BS(ppi)->optParamsEnabled = ppi->cfg.l1SyncOptParamsEnabled;
if (L1E_DSPOR_BS(ppi)->optParamsEnabled) {
L1E_DSPOR_OP(ppi)->timestampsCorrectedTx = ppi->cfg.l1SyncOptParamsTimestampsCorrectedTx;
......
......@@ -337,9 +337,9 @@ int main(int argc, char **argv)
if ( !enable_l1Sync(ppi,TRUE) )
goto exit_out_of_memory;
/* Read L1SYNC parameters */
L1E_DSPOR_BS(ppi)->rxCoherentIsRequired =ppi->cfg.l1SyncRxCoherencyIsRequired;
L1E_DSPOR_BS(ppi)->txCoherentIsRequired =ppi->cfg.l1SyncTxCoherencyIsRequired;
L1E_DSPOR_BS(ppi)->congruentIsRequired =ppi->cfg.l1SyncCongruencyIsRequired;
L1E_DSPOR_BS(ppi)->rxCoherentIsRequired =ppi->cfg.l1SyncRxCoherentIsRequired;
L1E_DSPOR_BS(ppi)->txCoherentIsRequired =ppi->cfg.l1SyncTxCoherentIsRequired;
L1E_DSPOR_BS(ppi)->congruentIsRequired =ppi->cfg.l1SyncCongruentIsRequired;
L1E_DSPOR_BS(ppi)->optParamsEnabled=ppi->cfg.l1SyncOptParamsEnabled;
if ( L1E_DSPOR_BS(ppi)->optParamsEnabled ) {
L1E_DSPOR_OP(ppi)->timestampsCorrectedTx=ppi->cfg.l1SyncOptParamsTimestampsCorrectedTx;
......
......@@ -174,9 +174,9 @@ struct pp_instance_cfg {
int min_pdelay_req_interval;/* pdelay request messages interval */
#if CONFIG_HAS_EXT_L1SYNC
Boolean l1SyncEnabled; /* L1SYNC: protocol enabled */
Boolean l1SyncRxCoherencyIsRequired; /* L1SYNC: Rx coherency is required */
Boolean l1SyncTxCoherencyIsRequired; /* L1SYNC: Tx coherency is required */
Boolean l1SyncCongruencyIsRequired; /* L1SYNC: Congruency isrRequired */
Boolean l1SyncRxCoherentIsRequired; /* L1SYNC: Rx coherent is required */
Boolean l1SyncTxCoherentIsRequired; /* L1SYNC: Tx coherent is required */
Boolean l1SyncCongruentIsRequired; /* L1SYNC: Congruent is required */
Boolean l1SyncOptParamsEnabled; /* L1SYNC: Optional parameters enabled */
int l1syncInterval; /* L1SYNC: l1sync messages interval */
int l1syncReceiptTimeout; /* L1SYNC: l1sync messages receipt timeout */
......
......@@ -344,9 +344,9 @@ static struct pp_argline pp_global_arglines[] = {
INST_OPTION_INT_RANGE("l1sync-receipt-timeout l1SyncReceiptTimeout", ARG_INT, NULL, cfg.l1syncReceiptTimeout,
L1E_MIN_L1SYNC_RECEIPT_TIMEOUT,L1E_MAX_L1SYNC_RECEIPT_TIMEOUT),
INST_OPTION_BOOL("l1SyncEnabled", cfg.l1SyncEnabled),
INST_OPTION_BOOL("l1SyncRxCoherencyIsRequired", cfg.l1SyncRxCoherencyIsRequired),
INST_OPTION_BOOL("l1SyncTxCoherencyIsRequired", cfg.l1SyncTxCoherencyIsRequired),
INST_OPTION_BOOL("l1SyncCongruencyIsRequired", cfg.l1SyncCongruencyIsRequired),
INST_OPTION_BOOL("l1SyncRxCoherentIsRequired", cfg.l1SyncRxCoherentIsRequired),
INST_OPTION_BOOL("l1SyncTxCoherentIsRequired", cfg.l1SyncTxCoherentIsRequired),
INST_OPTION_BOOL("l1SyncCongruentIsRequired", cfg.l1SyncCongruentIsRequired),
INST_OPTION_BOOL("l1SyncOptParamsEnabled", cfg.l1SyncOptParamsEnabled),
INST_OPTION_BOOL("l1SyncTimestampsCorrectedTxEnabled", cfg.l1SyncOptParamsTimestampsCorrectedTx),
#endif
......
......@@ -48,9 +48,9 @@ const struct pp_instance_cfg __pp_default_instance_cfg = {
.min_pdelay_req_interval=PP_DEFAULT_MIN_PDELAY_REQ_INTERVAL,
#if CONFIG_HAS_EXT_L1SYNC
.l1SyncEnabled=FALSE,
.l1SyncRxCoherencyIsRequired=FALSE,
.l1SyncTxCoherencyIsRequired=FALSE,
.l1SyncCongruencyIsRequired=FALSE,
.l1SyncRxCoherentIsRequired=FALSE,
.l1SyncTxCoherentIsRequired=FALSE,
.l1SyncCongruentIsRequired=FALSE,
.l1SyncOptParamsEnabled=FALSE,
.l1SyncOptParamsTimestampsCorrectedTx=FALSE,
.l1syncInterval=L1E_DEFAULT_L1SYNC_INTERVAL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment