Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pfeiffer, Götz
MultiCAN
Commits
5fe591b4
Commit
5fe591b4
authored
Apr 24, 2017
by
Franksen, Benjamin
Browse files
mCANSupport/vcan_iocsh.c: added vtest to iocsh registration
parent
ce46a57f
Changes
1
Hide whitespace changes
Inline
Side-by-side
mCANSupport/vcan_iocsh.c
View file @
5fe591b4
...
...
@@ -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
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment