Eric,
Are you saying that you were able to compile epics/asyn/etc on Linux and
on your gumstix?
--
E
On Wed, 2007-10-31 at 09:14 -0400, Eric Berryman wrote:
> Hello,
>
> For those that would be interested, here is one solution to using the
> asyn driver and a non-standard baud rate on a pxa255 (gumstix). (If
> you also can't get setserial to work without too much effort)
>
> First, configure the port for some standard baud rate in your st.cmd:
>
> drvAsynSerialPortConfigure ("SRRGA","/dev/ttyS2", 0, 0, 0)
> asynSetOption ("SRRGA", 0, "baud", "38400")
> asynSetOption ("SRRGA", 0, "bits", "8")
> asynSetOption ("SRRGA", 0, "parity", "none")
> asynSetOption ("SRRGA", 0, "stop", "2")
> asynSetOption ("SRRGA", 0, "clocal", "Y")
> asynSetOption ("SRRGA", 0, "crtscts", "N")
>
> Then poke the divisor registers for your baud rate:
>
> ## For PXA arch to set 28800 baud rate
> ## Set DLAB bit to 1 to access DLL and DLH bits
> system("/root/pxaregs STLCR 0x87")
>
> ## Set Divisor to 32 for 28800 baud rate
> system("/root/pxaregs STDLL 0x20")
> system("/root/pxaregs STDLH 0")
>
> ## Set DLAB bit to 0 with 8 bit, no parity, 2 stop bit
> system("/root/pxaregs STLCR 0x07")
- References:
- Asyn Driver with PXA255 (gumstix) and a non-standard baud rate Eric Berryman
- Navigate by Date:
- Prev:
Re: Is there any chance that I can change SCAN parameter dynamically? Emmanuel Mayssat
- Next:
Re: VMIC 2534 3.14 support? Steven Hartman
- 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:
Asyn Driver with PXA255 (gumstix) and a non-standard baud rate Eric Berryman
- Next:
Is there any chance that I can change SCAN parameter dynamically? Zhichu Chen
- 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
|