From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64499 invoked by alias); 30 Jun 2016 17:52:06 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 64490 invoked by uid 89); 30 Jun 2016 17:52:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1183, eCos, D*pesa.com, mellis@pesa.com X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 30 Jun 2016 17:51:55 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bIg7y-0006M2-EV for ecos-discuss@ecos.sourceware.org; Thu, 30 Jun 2016 19:51:50 +0200 Received: from c-50-188-49-188.hsd1.mn.comcast.net ([50.188.49.188]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jun 2016 19:51:50 +0200 Received: from grant.b.edwards by c-50-188-49-188.hsd1.mn.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jun 2016 19:51:50 +0200 To: ecos-discuss@ecos.sourceware.org From: Grant Edwards Date: Thu, 30 Jun 2016 17:52:00 -0000 Message-ID: References: <07FFDDED6CBCCE4E9FBD46AEC3EBFD4F02C50652@exchange> <07FFDDED6CBCCE4E9FBD46AEC3EBFD4F02C50BB3@exchange> <07FFDDED6CBCCE4E9FBD46AEC3EBFD4F02C50BF3@exchange> <07FFDDED6CBCCE4E9FBD46AEC3EBFD4F02CA18F3@exchange> <07FFDDED6CBCCE4E9FBD46AEC3EBFD4F02CA18FD@exchange> User-Agent: slrn/1.0.2 (Linux) X-IsSubscribed: yes Subject: [ECOS] Re: Input from debug console X-SW-Source: 2016-06/txt/msg00012.txt.bz2 On 2016-06-30, Michael W. Ellis wrote: >> -----Original Message----- >> From: ecos-discuss-owner@ecos.sourceware.org [mailto:ecos-discuss- >> owner@ecos.sourceware.org] On Behalf Of Michael W. Ellis >> Sent: Thursday, June 30, 2016 9:54 AM >> To: ecos-discuss@ecos.sourceware.org >> Subject: [ECOS] Input from debug console >> >> My application calls diag_printf() to display information to the debug >> console using serial port 0 of my processor. I would like to be able >> to implement some simple diagnostics that are initiated through the >> console port. Is it possible to accept input from the console? If > so, >> how is this done? > > Correction - I'm using the AT91SAM9260 processor and the debug console > uses a serial port connected to the Debug Unit instead of serial port 0. > The console device name is "/dev/ttydiag". Without writing new drivers, > is it possible to get simple input from this port? Does your eCos HAL profide hal_if_diag_read_char()? I thought that was pretty standard. I modified my HAL to also provide a non-blocking version of that call -- it only required writing a few lines of code. -- Grant -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss