From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-id: <2253171AF143D21185A60000F8FA748B0229A950@pluto.combitech.se> X-SW-Source: 2000-09/msg00050.html > > 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