Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Type is also in database templates.

Types have #defines in mpsLinkNodeMacros.h which can be used for conditional behavior:

/* MPS Link Node Configuration Modes */
#define MPS_ANA_MODE                (0x05)
#define MPS_PIC_MODE                (0x04)
#define MPS_MPG_CONTROL_MODE        (0x03)
#define MPS_BYKIK_MODE              (0x02)
#define MPS_BLM_MODE                (0x01)
#define MPS_MITIGATION_CONTROL_MODE (0x00)

 

Booting sequence:

mpsInitialize reads rotary switches for link node #, identity/type from FPGA.

...

mpsGetLinkNodeLOCA() and mpsGetLinkNodeUNIT() functions use link node ID # to index arrays at the top of drvMpsLinkNode.c:

...

Add the loca and unit to these arrays following existing pattern.

 

Databases

  • One substitutions for the things common to all link nodes, using mps.template, e.g. mpsLTU1MP12.substitutions
  • One substitutions file for the flavor of link node, using mps.aln_template, mps.blm_template, mps.byk_template, mps.pic_template, e.g. mpsLTU1MP12.aln_substitutions
  • Add new link node to Makefile, e.g. add lines DB += mpsLTU1MP12.template and DB += mpsLTU1MP12.aln_template