Files
epics-base/src/drv/drvCompuSm.c
1990-10-17 06:46:25 +00:00

44 lines
775 B
C
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* drvCompuSm.c */
/* share/src/drv $Id$ */
/* drvCompuSm.c - Driver Support Routines for CompuSm */
#include <vxWorks.h>
#include <stdioLib.h>
#include <dbDefs.h>
#include <drvSup.h>
#include <module_types.h>
#include <compu_sm_driver.h>
extern struct compumotor *pcompu_motors[]; /* stepper motor - CM1830 */
/* If any of the following does not exist replace it with #define <> NULL */
int report();
int init();
struct {
long number;
DRVSUPFUN report;
DRVSUPFUN init
} drvCompuSm={
2,
report,
init};
static long report(fp)
FILE *fp;
{
register int i;
for (i = 0; i < MAX_COMPU_MOTORS; i++)
if (pcompu_motors[i]) fprintf(fp,"SM: CM1830: card %d\n",i);
}
static long init()
{
int status;
return(0);
}