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

Commit

Permalink
feat: Simple all 32 input implementation to handle Univ and BP 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 84fd380 commit a71dc35
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ html/
rtf
*.local
.DS_Store
.vscode

#documentation output
epics-*
Expand Down
5 changes: 4 additions & 1 deletion evrMrmApp/src/drvemSetup.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ static const EVRMRM::Config mtca_evr_300 = {
2, // FP Delay outputs
0, // CML/GTX outputs
MRMCML::typeTG300,
2, // FP inputs
/* 0 <= N <= 3 : FPInMap */
/* 4 <= N <= 23 : UnivInMap */
/* 24 <= N <= 31 : BPInMap */
32, // FP inputs total
};

static const EVRMRM::Config pcie_evr_300 = {
Expand Down
6 changes: 4 additions & 2 deletions evrMrmApp/src/evrRegMap.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,11 @@
# define InputMapFP_back_shft 8
# define InputMapFP_ext_mask 0x000000ff
# define InputMapFP_ext_shft 0
# define InputMapFPMax 2
# define InputMapFPMax 32

/* 0 <= N <= 1 */
/* 0 <= N <= 3 : FPInMap */
/* 4 <= N <= 23 : UnivInMap */
/* 24 <= N <= 31 : BPInMap */
#define U32_InputMapFP(N) (U32_InputMapFPN + (4*(N)))

/* GTX delay */
Expand Down

0 comments on commit a71dc35

Please sign in to comment.