This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Serial ports on SA-1100


As an additional note... calling cyg_io_set_config() with a key of
CYG_IO_SET_CONFIG_SERIAL_INFO also comes back with -EDEVNOSUPP.
Here's the configuration code I'm using:

cyg_serial_info_t SerConfig;
SerConfig.parity      = CYGNUM_SERIAL_PARITY_NONE;
SerConfig.word_length = CYGNUM_SERIAL_WORD_LENGTH_8;
SerConfig.stop        = CYGNUM_SERIAL_STOP_1;
SerConfig.baud        = CYG_SERIAL_BAUD_RATE_9600;
SerConfig.flags       = CYG_SERIAL_FLAGS_DEFAULT;
BufLen = sizeof(SerConfig);
errcode = cyg_io_set_config(HostHandle, CYG_IO_SET_CONFIG_SERIAL_INFO,
&SerConfig, &BufLen);

# -----Original Message-----
# From: Schumacher, Gordon [mailto:gordon_schumacher@maxtor.com]
# Sent: Wednesday, October 30, 2002 3:56 PM
# To: 'ecos-discuss@sources.redhat.com'
# Subject: [ECOS] Serial ports on SA-1100
# 
# 
# I have an custom-port SA-1100 based system which appears to 
# be (otherwise)
# functioning properly.  I'm trying to do some serial I/O in my main()
# function.  I've tried reading and writing data to either /dev/ttydiag
# (pointed to port 0) or to /dev/ser1, but in both cases the 
# cyg_io_lookup
# works fine, and cyg_io_write and cyg_io_read return 
# -EDEVNOSUPP (-202).
# 
# I'm not explicitly starting the scheduler in cyg_user_start() - my
# understanding was that if I have not overriden cyg_start(), 
# that is done for
# me.  (The code is definitely making it into main(), so I 
# think that part is
# okay anyway.)
# 
# Any idea what I could be doing wrong?
# 
# -- 
# Before posting, please read the FAQ: 
http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]