From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4568 invoked by alias); 13 Jan 2009 19:58:27 -0000 Received: (qmail 4559 invoked by uid 22791); 13 Jan 2009 19:58:27 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-gx0-f19.google.com (HELO mail-gx0-f19.google.com) (209.85.217.19) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Jan 2009 19:57:51 +0000 Received: by gxk12 with SMTP id 12so233975gxk.6 for ; Tue, 13 Jan 2009 11:57:48 -0800 (PST) Received: by 10.150.143.12 with SMTP id q12mr342047ybd.111.1231876668524; Tue, 13 Jan 2009 11:57:48 -0800 (PST) Received: by 10.150.96.3 with HTTP; Tue, 13 Jan 2009 11:57:48 -0800 (PST) Message-ID: <69b5c5160901131157x14de6cdek72b7b8c86455a709@mail.gmail.com> Date: Tue, 13 Jan 2009 19:58:00 -0000 From: "andrew wiggin" To: ecos-devel@ecos.sourceware.org Subject: Serial VS Diagnostic interface MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2009-01/txt/msg00020.txt.bz2 Hi all, I am working with eCos on an AT91 platform for several month now, and I have always used the serial port as a diagnostic interface for debugging purpose. However, now I need to use it as a standard serial in order to be able to use the O_NONBLOCK flag but I couldn't find a way to use the 16x55 serial driver instead of the haldiag interface: whatever I do, only the haldiag interface is selected, and removing the haldiag seems to make it impossible to compile. I know I can use the solution consisting in replacing the GETC function with a nonblocking one, and patching whatever function may need blocking calls on it, but I can't imagine there is no way in eCos to select whether my only serial port shall be considered as a diagnostic interface or a _real_ serial port. Any clue will be welcome. Thanks, -- Andrew W.