From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18048 invoked by alias); 21 Apr 2005 15:02:32 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 17733 invoked from network); 21 Apr 2005 15:02:22 -0000 Received: from unknown (HELO outmx004.isp.belgacom.be) (195.238.2.101) by sourceware.org with SMTP; 21 Apr 2005 15:02:22 -0000 Received: from outmx004.isp.belgacom.be (localhost [127.0.0.1]) by outmx004.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with ESMTP id j3LF2A29028316 for ; Thu, 21 Apr 2005 17:02:10 +0200 (envelope-from ) Received: from bureau (244-225.242.81.adsl.skynet.be [81.242.225.244]) by outmx004.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with SMTP id j3LF1xXg028021 for ; Thu, 21 Apr 2005 17:02:03 +0200 (envelope-from ) Message-ID: <008001c54683$17726440$0b01a8c0@bureau> From: "Gatien Gillon" To: References: <42663119.306@carallon.com> Date: Thu, 21 Apr 2005 15:25:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit Subject: [ECOS] Serial Port in non-blocking mode X-SW-Source: 2005-04/txt/msg00218.txt.bz2 I'm trying to make my AT91EB55 board communicate with a PC, when using the cyg_io_read function the program waits for an input wich is not what i want. In non blocking mode I keep on getting 0x0's when reading the port even if I have sended some characters. Is there a way of reading the serial port and getting what's in the buffer without blocking the program if it's empty ? Thanks -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss