Experimental Physics and Industrial Control System
Szalata, Zenon M. wrote:
I need a device driver for the CAEN V965 module, which works with vxWorks 6.x. Here at SLAC we have a device driver for this module which works with rtems only.
Thanks,
Zen
Is the driver written for EPICS 3.14.x ? If so, it should be
easy to port it to vxWorks. It is a good idea to write a driver
for multiple platforms. The "Application Developer's Guide"
provides a good guideline.
1) For the src/Makefile :
Copy the existing Makefile to Makefile.RTEMS. For the vxworks
Makefile, change "PROD_IOC_RTEMS" to "PROD_IOC_vxWorks"
and take out all the RTEMS related include path.
2) For the source code under src/ :
vxworks access the I/O register via a pointer to the address.
For example : for the long data access, which is four bytes, it does:
volatile epicsUInt32 *reg;
epicsUInt32 value;
reg = (volatile epicsUInt32 *) io_address ;
*reg = value;
while RTEMS accesses the I/O register via the command in_be32( ) or
in_le32().
You can reference "synAppsRTEMS" source code at the web site :
http://www.nsls.bnl.gov/facility/expsys/software/EPICS/
The software is meant to be ported for both RTEMS and vxWorks.
Cheers,
Kate
- Replies:
- Re: CAEN V965 driver Till Straumann
- References:
- CAEN V965 driver Szalata, Zenon M.
- Navigate by Date:
- Prev:
Re: USE of CA lib: problem using ca_array_put_callback with strings Andrew Johnson
- Next:
Re: CAEN V965 driver Till Straumann
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
<2008>
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
CAEN V965 driver Szalata, Zenon M.
- Next:
Re: CAEN V965 driver Till Straumann
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
<2008>
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024