This is the mail archive of the ecos-discuss@sourceware.org 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: Re: Problems with tcgetattr()


The header for the serial device drivers, as generated by ecos config looks as follows:

#define CYGINT_IO_SERIAL_BLOCK_TRANSFER 0
#define CYGINT_IO_SERIAL_BLOCK_TRANSFER_0
#define CYGINT_IO_SERIAL_LINE_STATUS_HW 0
#define CYGINT_IO_SERIAL_LINE_STATUS_HW_0
#define CYGPKG_IO_SERIAL_TTY 1
#define CYGPKG_IO_SERIAL_HALDIAG 1
#define CYGDAT_IO_SERIAL_TTY_CONSOLE "/dev/ttydiag"
#define CYGPKG_IO_SERIAL_TTY_TTYDIAG 1
#define CYGPKG_IO_SERIAL_TERMIOS 1
#define CYGINT_IO_SERIAL_TERMIOS_TERMIOS_TTY 0
#define CYGINT_IO_SERIAL_TERMIOS_TERMIOS_TTY_0
#define CYGPKG_IO_SERIAL_DEVICES 1
#define CYGPKG_IO_SERIAL_OPTIONS 1
#define CYGPKG_IO_SERIAL_SELECT_SUPPORT 1
#define CYGINT_IO_SERIAL_TEST_SKIP_9600 0
#define CYGINT_IO_SERIAL_TEST_SKIP_9600_0
#define CYGINT_IO_SERIAL_TEST_SKIP_14400 0
#define CYGINT_IO_SERIAL_TEST_SKIP_14400_0
#define CYGINT_IO_SERIAL_TEST_SKIP_19200 0
#define CYGINT_IO_SERIAL_TEST_SKIP_19200_0
#define CYGINT_IO_SERIAL_TEST_SKIP_38400 0
#define CYGINT_IO_SERIAL_TEST_SKIP_38400_0
#define CYGINT_IO_SERIAL_TEST_SKIP_57600 0
#define CYGINT_IO_SERIAL_TEST_SKIP_57600_0
#define CYGINT_IO_SERIAL_TEST_SKIP_115200 0
#define CYGINT_IO_SERIAL_TEST_SKIP_115200_0
#define CYGINT_IO_SERIAL_TEST_SKIP_PARITY_EVEN 0
#define CYGINT_IO_SERIAL_TEST_SKIP_PARITY_EVEN_0
#define CYGINT_IO_SERIAL_TEST_SKIP_PARITY_ODD 0
#define CYGINT_IO_SERIAL_TEST_SKIP_PARITY_ODD_0
#define CYGINT_IO_SERIAL_TEST_SKIP_STOP_2 0
#define CYGINT_IO_SERIAL_TEST_SKIP_STOP_2_0

Anything I should be changing for getting a termios compatiablle tty
for my serial port?

Andre

Andrew Lunn <andrew@lunn.ch> wrote:
> 
> On Thu, Aug 17, 2006 at 06:47:21PM -0400, Andre-John Mas wrote:
> > Hi,
> > 
> 
> > I am in the process of writing a simple authentication module for
> >  the administration of our card. For this we need to be able to hide
> >  the password when it is inputed. From what I can tell using
> >  tcgetattr() and tcsetattr() are the calls that I need. The problem
> >  is that when I try using tcgetattr() I get the error:
> 
> What device are you trying this on? I think it needs to be /dev/termiosX
> 
>      Andrew
> 
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 


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


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