From: Andreas.Karlsson@combitechsystems.com
To: jlarmour@redhat.com
Cc: ecos-discuss@sourceware.cygnus.com, aeb@arm.com
Subject: RE: [ECOS] UART communication
Date: Tue, 05 Sep 2000 22:32:00 -0000 [thread overview]
Message-ID: <2253171AF143D21185A60000F8FA748B0229A950@pluto.combitech.se> (raw)
>
> Can you clarify what you mean by CTS/RTS enabled? How did you
> enable this?
> Jifl
I enabled it with the cyg_io_set_config-function like this:
cyg_serial_info_t settings_buf;
settings_buf.baud=CYGNUM_SERIAL_BAUD_57600; //had to modify the sources in
aeb_serial.h
settings_buf.stop=CYGNUM_SERIAL_STOP_1;
settings_buf.parity=CYGNUM_SERIAL_PARITY_NONE;
settings_buf.word_length=CYGNUM_SERIAL_WORD_LENGTH_8;
settings_buf.flags=CYG_SERIAL_FLAGS_RTSCTS; //enable CTS/RTS
err = cyg_io_lookup( "/dev/ser0", &ser0_hdl );
if(ENOERR != err)
{
printf("Couldn't find /dev/ser0 !!\n");
}
len=sizeof(cyg_serial_info_t);
err=cyg_io_set_config(ser0_hdl, CYG_IO_SET_CONFIG_SERIAL_INFO,
&settings_buf, &len);
When checking the Line Status Register after receiving the zero-byte there
is an overrun error.
The value of LSR is 0x62.
/Andreas
next reply other threads:[~2000-09-05 22:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-05 22:32 Andreas.Karlsson [this message]
2000-09-06 10:01 ` Jonathan Larmour
2000-09-07 0:25 ` Jesper Skov
-- strict thread matches above, loose matches on Subject: below --
2000-09-06 10:21 Andreas.Karlsson
2000-09-06 10:31 ` Jonathan Larmour
2000-09-05 6:16 Andreas.Karlsson
2000-09-05 8:52 ` Dave Airlie
2000-09-05 9:03 ` Gary Thomas
2000-09-05 9:04 ` Jonathan Larmour
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2253171AF143D21185A60000F8FA748B0229A950@pluto.combitech.se \
--to=andreas.karlsson@combitechsystems.com \
--cc=aeb@arm.com \
--cc=ecos-discuss@sourceware.cygnus.com \
--cc=jlarmour@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).