Commit 5fe591b4 authored by Franksen, Benjamin's avatar Franksen, Benjamin
Browse files

mCANSupport/vcan_iocsh.c: added vtest to iocsh registration

parent ce46a57f
......@@ -190,6 +190,17 @@ static void vcanConfigIrqTimeoutCall(const iocshArgBuf *args)
vcan4_irq_timeout_offset = args[1].ival;
}
static const iocshArg vtestArg0 = { "argumnts", iocshArgString };
static const iocshArg *const vtestArgs[] = {
&vtestArg0
};
static const iocshFuncDef vtestDef = {"vtest",1,vtestArgs};
static void vtestCall(const iocshArgBuf *args)
{
extern void vtest(char *args);
vtest(args[0].sval);
}
static void vcanConfigRegisterCommands(void)
{
static int firstTime = 1;
......@@ -199,6 +210,7 @@ static void vcanConfigRegisterCommands(void)
iocshRegister(&vcanConfigPortDef,vcanConfigPortCall);
iocshRegister(&vcanConfigIrqTimeoutDef,vcanConfigIrqTimeoutCall);
iocshRegister(&vcanConfigDoneDef,vcanConfigDoneCall);
iocshRegister(&vtestDef,vtestCall);
}
}
epicsExportRegistrar(vcanConfigRegisterCommands);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment