R3.14.2 compatible.

This commit is contained in:
Ron Sluiter
2003-05-28 14:54:47 +00:00
parent 509d40614d
commit b120861a31
4 changed files with 130 additions and 3 deletions
+20 -3
View File
@@ -1,3 +1,20 @@
TOP=../..
include $(TOP)/config/CONFIG_APP
include $(TOP)/config/RULES_ARCHS
# Makefile
TOP = ../..
include $(TOP)/configure/CONFIG
# The following are used for debugging messages.
#USR_CXXFLAGS += -DDEBUG
DBD += devMclennanMotor.dbd
LIBRARY_IOC = Mclennan
# Intelligent Motion Systems driver support.
SRCS += MclennanRegister.cc
SRCS += devPM304.cc drvPM304.cc
Mclennan_LIBS += motor motorCOM_mpf
Mclennan_LIBS += $(EPICS_BASE_IOC_LIBS)
include $(TOP)/configure/RULES
+63
View File
@@ -0,0 +1,63 @@
/*
FILENAME... MclennanRegister.cc
USAGE... Register Mclennan motor device driver shell commands.
Version: $Revision: 1.1 $
Modified By: $Author: sluiter $
Last Modified: $Date: 2003-05-28 14:49:52 $
*/
/*****************************************************************
COPYRIGHT NOTIFICATION
*****************************************************************
(C) COPYRIGHT 1993 UNIVERSITY OF CHICAGO
This software was developed under a United States Government license
described on the COPYRIGHT_UniversityOfChicago file included as part
of this distribution.
**********************************************************************/
#include <iocsh.h>
#include "MclennanRegister.h"
#include "epicsExport.h"
extern "C"
{
// ACS Setup arguments
static const iocshArg setupArg0 = {"Max. controller count", iocshArgInt};
static const iocshArg setupArg1 = {"N/A", iocshArgInt};
static const iocshArg setupArg2 = {"Polling rate", iocshArgInt};
// ACS Config arguments
static const iocshArg configArg0 = {"Card being configured", iocshArgInt};
static const iocshArg configArg1 = {"MPF server location", iocshArgInt};
static const iocshArg configArg2 = {"MPF server task name", iocshArgString};
static const iocshArg configArg3 = {"Number of axes", iocshArgInt};
static const iocshArg * const PM304SetupArgs[3] = {&setupArg0, &setupArg1,
&setupArg2};
static const iocshArg * const PM304ConfigArgs[4] = {&configArg0, &configArg1,
&configArg2};
static const iocshFuncDef setupPM304 = {"PM304Setup", 3, PM304SetupArgs};
static const iocshFuncDef configPM304 = {"PM304Config", 4, PM304ConfigArgs};
static void setupPM304CallFunc(const iocshArgBuf *args)
{
PM304Setup(args[0].ival, args[1].ival, args[2].ival);
}
static void configPM304CallFunc(const iocshArgBuf *args)
{
PM304Config(args[0].ival, args[1].ival, args[2].sval, args[3].ival);
}
static void MclennanRegister(void)
{
iocshRegister(&setupPM304, setupPM304CallFunc);
iocshRegister(&configPM304, configPM304CallFunc);
}
epicsExportRegistrar(MclennanRegister);
} // extern "C"
+46
View File
@@ -0,0 +1,46 @@
/*
FILENAME... MclennanRegister.h
USAGE... This file contains function prototypes for Mclennan motor controller
IOC shell commands.
Version: $Revision: 1.1 $
Modified By: $Author: sluiter $
Last Modified: $Date: 2003-05-28 14:49:53 $
*/
/*
* Original Author: Ron Sluiter
* Date: 05/27/03
*
* Experimental Physics and Industrial Control System (EPICS)
*
* Copyright 1991, the Regents of the University of California,
* and the University of Chicago Board of Governors.
*
* This software was produced under U.S. Government contracts:
* (W-7405-ENG-36) at the Los Alamos National Laboratory,
* and (W-31-109-ENG-38) at Argonne National Laboratory.
*
* Initial development by:
* The Controls and Automation Group (AT-8)
* Ground Test Accelerator
* Accelerator Technology Division
* Los Alamos National Laboratory
*
* Co-developed with
* The Controls and Computing Group
* Accelerator Systems Division
* Advanced Photon Source
* Argonne National Laboratory
*
* Modification Log:
* -----------------
*/
#include "motor.h"
#include "motordrvCom.h"
/* Function prototypes. */
extern RTN_STATUS PM304Setup(int, int, int);
extern RTN_STATUS PM304Config(int, int, const char *, int);
@@ -1,5 +1,6 @@
# Advanced Control Systems driver support.
device(motor,VME_IO,devPM304,"Mclennan PM304")
driver(drvPM304)
registrar(MclennanRegister)