Hi,
Did you do registration? What was the error message if any?
Check the following:
<TOP>/<yourAppName>App/src
Your <yourAppName>Include.dbd should contain the following entry:
registrar(drvVmivme5565Registrar)
Thanks,
Ernest
On Tue, 2004-02-03 at 02:59, Kim, Kukhee wrote:
> 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
>
>
--
Ernest L. Williams Jr. <[email protected]>
- Replies:
- RE: registerRecordDeviceDriver Problem Kim, Kukhee
- References:
- registerRecordDeviceDriver Problem Kim, Kukhee
- Navigate by Date:
- Prev:
registerRecordDeviceDriver Problem Kim, Kukhee
- Next:
RE: registerRecordDeviceDriver Problem Kim, Kukhee
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
<2004>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
registerRecordDeviceDriver Problem Kim, Kukhee
- Next:
RE: registerRecordDeviceDriver Problem Kim, Kukhee
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
<2004>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|