Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Commit

Permalink
feat: MTCA EVR: FP, Univ, BP inputs; PCIe EVR: FP, Univ inputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerzy Jamroz authored and jerzyjamroz committed Apr 14, 2020
1 parent a71dc35 commit d34686e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
16 changes: 11 additions & 5 deletions evrMrmApp/src/drvemSetup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,12 @@ static const EVRMRM::Config mtca_evr_300 = {
2, // FP Delay outputs
0, // CML/GTX outputs
MRMCML::typeTG300,
/* 0 <= N <= 3 : FPInMap */
/* 4 <= N <= 23 : UnivInMap */
/* 24 <= N <= 31 : BPInMap */
32, // FP inputs total
/**
* 0 <= N <= 3 : FPInMap
* 4 <= N <= 23 : UnivInMap
* 24 <= N <= 31 : BPInMap
*/
32, // FP, Univ, BP inputs
};

static const EVRMRM::Config pcie_evr_300 = {
Expand All @@ -201,7 +203,11 @@ static const EVRMRM::Config pcie_evr_300 = {
0, // FP Delay outputs
0, // CML/GTX outputs
MRMCML::typeTG300,
2, // FP inputs
/**
* 0 <= N <= 3 : FPInMap
* 4 <= N <= 23 : UnivInMap
*/
24, // FP, Univ inputs
};

static const EVRMRM::Config cpci_evr_unknown = {
Expand Down
9 changes: 6 additions & 3 deletions evrMrmApp/src/evrRegMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,12 @@
# define InputMapFP_ext_shft 0
# define InputMapFPMax 32

/* 0 <= N <= 3 : FPInMap */
/* 4 <= N <= 23 : UnivInMap */
/* 24 <= N <= 31 : BPInMap */
/**
* 0 <= N <= 3 : FPInMap
* 4 <= N <= 23 : UnivInMap
* 24 <= N <= 31 : BPInMap
* FP, Univ, BP map
*/
#define U32_InputMapFP(N) (U32_InputMapFPN + (4*(N)))

/* GTX delay */
Expand Down

0 comments on commit d34686e

Please sign in to comment.