Marty Kraimer wrote:
>
> While investigating an ioc problem we (actually Frank Lenkszus) noticed
> that the mv167 board support package does not enable parity checking.
>
> Has anyone enable parity checking on the mv167?
> What changes to the board support package are necessary?
> Are there any problem doing this?
>
I'm actaully working on this as we speak. After much
going back and forth with WindRiver, they have sent me the two
following fixes:
Fix 1:
====================================================================
#include "vxWorks.h"
#include "sioLib.h"
#include "drv/sio/cd2400Sio.h"
extern SIO_CHAN *sioDesc[];
void evenParitySet(int channel)
{
CD2400_QUSART * pQusart;
pQusart = ((CD2400_CHAN *) sioDesc[channel]) -> pQusart;
*MPCC_COR1 = COR1_EVEN_PARITY | COR1_PARITY | COR1_8BITS;
}
====================================================================
Fix 2:
=====================================================================
Here is a second version, using sysSerialChanGet:
#include "vxWorks.h"
#include "sioLib.h"
#include "drv/sio/cd2400Sio.h"
#include "sysLib.h"
void evenParitySet(int channel)
{
CD2400_QUSART * pQusart;
pQusart = ((CD2400_CHAN *) sysSerialChanGet(channel)) -> pQusart;
*MPCC_COR1 = COR1_EVEN_PARITY | COR1_PARITY | COR1_8BITS;
}
=====================================================================
I'm just in the process of confirming that these
fixes will work.
dave
=============================================================
Dave Reid [email protected]
UW Medical Center (206)548-4536
Radiation Oncology Dept.
Seattle, WA
- References:
- mv167 Parity Marty Kraimer
- Navigate by Date:
- Prev:
mv167 Parity Marty Kraimer
- Next:
mv167 Parity Clarification Frank Lenkszus
- 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:
mv167 Parity Marty Kraimer
- Next:
mv167 Parity Clarification Frank Lenkszus
- 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
|