EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: registerRecordDeviceDriver Problem
From: "Kim, Kukhee" <[email protected]>
To: <[email protected]>
Cc: "'Chestnut, Ronald P.'" <[email protected]>, <[email protected]>
Date: Tue, 3 Feb 2004 16:59:39 +0900
Dear ALL;

I am trying to make vmivme5565 RFM(Reflective Memory) supports on R3.14.4.
Now, I almost finished driver layer but I have a problem on the registration
of iocsh commands.  The vxWorks target shell was stopped when I executed
?rfm_registerRecordDeviceDriver(pdbbase)? command.   I guess,  just one line
in my code
-"iocshRegister(&vmivme5565_initFuncDef,vmivme5565_initCallFunc);"  - is
involved with this problem.  Because, if I commented it out, the "rfm_
registerRecordDeviceDriver" command is working.  I am going to attach a part
of my code. Would you check what is making the problem?


/* Registrar vmivme5565_init command */
static const iocshArg vmivme5565_initArg0 = {"card",   iocshArgInt};
static const iocshArg vmivme5565_initArg1 = {"sram",   iocshArgInt};
static const iocshArg vmivme5565_initArg2 = {"regs",   iocshArgInt};
static const iocshArg vmivme5565_initArg3 = {"level",  iocshArgInt};
static const iocshArg vmivme5565_initArg4 = {"vector", iocshArgInt};

static const iocshArg * const vmivme5565_initArgs[5] = {
&vmivme5565_initArg0,
 
&vmivme5565_initArg1,
 
&vmivme5565_initArg2,
 
&vmivme5565_initArg3,
 
&vmivme5565_initArg4};
static const iocshFuncDef vmivme5565_initFuncDef = {"vmivme5565_init",
                                                    5,
                                                    vmivme5565_initArgs};
static void vmivme5565_initCallFunc(const iocshArgBuf *args)
{
    vmivme5565_init((unsigned long)args[0].ival,
                    (unsigned long)args[1].ival,
                    (unsigned long)args[2].ival,
                    (unsigned char)args[3].ival,
                    (unsigned char)args[4].ival);
}

static const iocshArg vmivme5565_testIRQArg0 = {"seconds", iocshArgDouble};
static const iocshArg * const vmivme5565_testIRQArgs[1] = {
&vmivme5565_testIRQArg0 };
static const iocshFuncDef vmivme5565_testIRQDef = {"vmivme5565_testIRQ",
                                                    1,
                                                    vmivme5565_testIRQArgs};
static void vmivme5565_testIRQCallFunc(const iocshArgBuf *args)
{
    vmivme5565_testIRQ(args[0].dval);
}

static void epicsShareAPI drvVmivme5565Registrar(void)
{
    static int firstTime = TRUE;

    if(firstTime) {
        firstTime=FALSE;

/* !!!comment out this line!!! */
iocshRegister(&vmivme5565_initFuncDef,vmivme5565_initCallFunc);
        iocshRegister(&vmivme5565_testIRQDef,vmivme5565_testIRQCallFunc);
    }
}
epicsExportRegistrar(drvVmivme5565Registrar);


-----------------
Kukhee Kim
Instrument & Control, KSTAR
Korea Basic Science Institute
52 Yeoeun-dong, Yusung-gu, Daejeon 305-333
Korea
Email: [email protected]
Tel: +82 42 870 1616     Fax: +82 42 870 1609      Cell: +82 17 513 4849





Replies:
Re: registerRecordDeviceDriver Problem Ernest L. Williams Jr.
Re: registerRecordDeviceDriver Problem Marty Kraimer

Navigate by Date:
Prev: RE: Request for help re ca_add_event call under MATLAB Jeff Hill
Next: Re: registerRecordDeviceDriver Problem Ernest L. Williams Jr.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Request for help re ca_add_event call under MATLAB Jeff Hill
Next: Re: registerRecordDeviceDriver Problem Ernest L. Williams Jr.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024