#include #include #include #include #include #include "ti_dsp.h" #include "ROD.h" #define RODID 1 rod_t *pROD; /* defined in ROD.h and used here and in ti_vme_gva.c */ /* Default slot, geographical address, and VME mode */ static int slot=4, mode=2, gaddr=11, iopt=1 ; /* ---------------------------------------------------------------------- Usage: mV10 ---------------------------------------------------------------------- */ main(int argc, char** argv) { /* The PU descriptor(s) for one ROD */ ti_dsp_t dsp[4]; int npu = 4; int i; unsigned int ist; const static char* bootFile = "evtloop_copy.x0"; const static char* calibrationFile = NULL; if (argc > 1) slot = atoi(argv[1]); if (argc > 2) mode = atoi(argv[2]); if (argc > 3) gaddr = atoi(argv[3]); if (argc > 4) iopt = atoi(argv[4]); for(i=0; ivme = 0; p_RODDBG->loc = 0; p_RODDBG->misc = 0; p_RODDBG->util = 0; p_RODDBG->pu = 0; p_RODDBG->ttc = 1; p_RODDBG->oc = 1; } { crate_t *aCrate = ROD_CrateInit(1,0); assert (aCrate != NULL); pROD = aCrate->rod[0]; } ist = ROD_ModuleInit(pROD, gaddr, RODID); assert (ist == 0); /* Configure PUs (what is this for) */ ist = ROD_PModule(pROD); /* Configure mother board components */ ist = ROD_GeneralReset(pROD); ist = ROD_TtcConfig(pROD, mode); /* === Boot the TI processing unit(s) one by one === */ for(i=0; i