From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24006 invoked by alias); 10 Aug 2006 14:15:35 -0000 Received: (qmail 23996 invoked by uid 22791); 10 Aug 2006 14:15:35 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.170) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 10 Aug 2006 14:15:34 +0000 Received: by ug-out-1314.google.com with SMTP id u2so516991uge for ; Thu, 10 Aug 2006 07:15:31 -0700 (PDT) Received: by 10.66.224.3 with SMTP id w3mr2622241ugg; Thu, 10 Aug 2006 07:15:31 -0700 (PDT) Received: by 10.66.222.10 with HTTP; Thu, 10 Aug 2006 07:15:31 -0700 (PDT) Message-ID: <4dd15d180608100715g1344caa9h78801c04ddd52630@mail.gmail.com> Date: Thu, 10 Aug 2006 14:15:00 -0000 From: "David Ho" To: "eCos discuss list" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes 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 Subject: [ECOS] Serial port contention X-SW-Source: 2006-08/txt/msg00084.txt.bz2 Hi, I am debugging issues with my serial port. What I need to do is to be able to share one serial port for diag output and SLIP communication. As I dig deeper I found out that the serial port is configured to do blocking reads. However, an cyg_io_read always returns char '\0' even when nothing is received. Has anyone come across this issue? Is there a good preventive measure I can use to make sure there is no contention? Thanks, David -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss