Commit 681c4852 authored by Franksen, Benjamin's avatar Franksen, Benjamin
Browse files

vcan_iocsh: renamed vcanConfigIrqTimeout to vcanConfigIrqTimeoutOffsets

parent 7963522b
......@@ -142,6 +142,15 @@ int vcanConfigDone(void)
return 0;
}
void vcanConfigIrqTimeoutOffsets(int for_vcan2, int for_vcan4)
{
extern int vcan_irq_timeout_offset;
extern int vcan4_irq_timeout_offset;
vcan_irq_timeout_offset = for_vcan2;
vcan4_irq_timeout_offset = for_vcan4;
}
/*
* IOC shell command registration
*/
......@@ -176,21 +185,18 @@ static void vcanConfigDoneCall(const iocshArgBuf *args)
vcanConfigDone();
}
static const iocshArg vcanConfigIrqTimeoutArg0 = { "extra IRQ timeout for vcan2 (ms)", iocshArgInt };
static const iocshArg vcanConfigIrqTimeoutArg1 = { "extra IRQ timeout for vcan4 (ms)", iocshArgInt };
static const iocshArg *const vcanConfigIrqTimeoutArgs[] = {
&vcanConfigIrqTimeoutArg0, &vcanConfigIrqTimeoutArg1
static const iocshArg vcanConfigIrqTimeoutOffsetsArg0 = { "extra IRQ timeout for vcan2 (ms)", iocshArgInt };
static const iocshArg vcanConfigIrqTimeoutOffsetsArg1 = { "extra IRQ timeout for vcan4 (ms)", iocshArgInt };
static const iocshArg *const vcanConfigIrqTimeoutOffsetsArgs[] = {
&vcanConfigIrqTimeoutOffsetsArg0, &vcanConfigIrqTimeoutOffsetsArg1
};
static const iocshFuncDef vcanConfigIrqTimeoutDef = {"vcanConfigIrqTimeout",2,vcanConfigIrqTimeoutArgs};
static void vcanConfigIrqTimeoutCall(const iocshArgBuf *args)
static const iocshFuncDef vcanConfigIrqTimeoutOffsetsDef = {"vcanConfigIrqTimeoutOffsets",2,vcanConfigIrqTimeoutOffsetsArgs};
static void vcanConfigIrqTimeoutOffsetsCall(const iocshArgBuf *args)
{
extern int vcan_irq_timeout_offset;
extern int vcan4_irq_timeout_offset;
vcan_irq_timeout_offset = args[0].ival;
vcan4_irq_timeout_offset = args[1].ival;
vcanConfigIrqTimeoutOffsets(args[0].ival, args[1].ival);
}
static const iocshArg vtestArg0 = { "argumnts", iocshArgString };
static const iocshArg vtestArg0 = { "arguments", iocshArgString };
static const iocshArg *const vtestArgs[] = {
&vtestArg0
};
......@@ -208,7 +214,7 @@ static void vcanConfigRegisterCommands(void)
firstTime = 0;
iocshRegister(&vcanConfigCardsDef,vcanConfigCardsCall);
iocshRegister(&vcanConfigPortDef,vcanConfigPortCall);
iocshRegister(&vcanConfigIrqTimeoutDef,vcanConfigIrqTimeoutCall);
iocshRegister(&vcanConfigIrqTimeoutOffsetsDef,vcanConfigIrqTimeoutOffsetsCall);
iocshRegister(&vcanConfigDoneDef,vcanConfigDoneCall);
iocshRegister(&vtestDef,vtestCall);
}
......
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