EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

<19941995  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  Index <19941995  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 
<== Date ==> <== Thread ==>

Subject: Re: Need to use a board in various configurations.
From: [email protected]
Date: Mon, 11 Jul 94 13:35:51 -0500
> 
> 
> 
> I recently did device and driver support for the vmivme-2534 parallel
> i/o board.  This is a 32-bit board, and each 8-bit byte can be configured
> as either inputs or outputs.  In order to solve the immediate problem, I
> played Solomon and split the board right down the middle - 16 inputs and
> 16 outputs.
> 
> It turns out that this isn't really a very good solution - it would be
> much better if it were possible to allocate resources in a more flexible
> manner.
> 
> One possible solution would be to tweak the driver a bit and create 5
> device-support packages (32 bits in & no bits out, 8 bits in & 24 bits
> out, ... no bits in and & 32 bits out), but that seems kind of ugly.
> 
> The other options seem even uglier, and much more prone to error in the
> configuration process.
> 
> I'm probably missing the obvious here (now that's something I seem to excel
> at!).  Any ideas would be appreciated.


You could do the following:

The device init (NOT init_record) gets called twice at initialization time.
The second time is after all records have been initialized. As each record
calls the init_record entry of device support you could remember how each bit
is being referenced by the records (you get bitt offset and number of bits).
Then at the end configure the board. You can also look for conflicts and
generate errors.


Marty Kraimer

Navigate by Date:
Prev: Re: Need to use a board in various configurations. winans
Next: Re: Need to use a board in various configurations. Bill Brown
Index: <19941995  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: Re: Need to use a board in various configurations. winans
Next: Re: Need to use a board in various configurations. Bill Brown
Index: <19941995  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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·