From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11906 invoked by alias); 15 Oct 2003 09:32:41 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 11879 invoked from network); 15 Oct 2003 09:32:40 -0000 Received: from unknown (HELO anchor-post-37.mail.demon.net) (194.217.242.87) by sources.redhat.com with SMTP; 15 Oct 2003 09:32:40 -0000 Received: from calivar.demon.co.uk ([212.228.213.211] helo=miso.calivar.com) by anchor-post-37.mail.demon.net with esmtp (Exim 3.35 #1) id 1A9i1B-000Cwg-0b; Wed, 15 Oct 2003 10:32:34 +0100 Received: from miso.calivar.com (miso.calivar.com [127.0.0.2]) by miso.calivar.com (Postfix) with ESMTP id 0F23728DF45; Wed, 15 Oct 2003 09:43:58 +0100 (BST) To: "Transferencia de Archivos" Cc: ecos-discuss@sources.redhat.com References: <200310141711.h9EHBsQx000311@dns.vitacom.net> From: Nick Garnett Date: Wed, 15 Oct 2003 09:32:00 -0000 In-Reply-To: <200310141711.h9EHBsQx000311@dns.vitacom.net> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [ECOS] eCos and eb40a capture mode X-SW-Source: 2003-10/txt/msg00245.txt.bz2 "Transferencia de Archivos" writes: > Im working now on the at91eb40a target of ecos, and I'm using the cvs > version of ecos, I have succesfully used ecos for his own things, > until now. I have now to read an external pwm signal and I have found > that the micro has a capture mode that does the reading almos from > himself, I have been trying to configure the micro using hal_write > and as gdb says it has been done succesfully. > the micro is the AT91R40008 > But outside, the line is i/o so I need it as an input, as my > configuration plans to do the line must go as an input, the line never > goes from the logic 1. > Is ecos using the timers of the eb40a for any of his functions? > I need some advice here. > To be more explicit. I have configured the three timers of the R40008, > TC0, TC1, TC2 in capture mode, so in the rising edge of TIOA(the line > that gets the pwm) the TC_V is loaded in RA and the, when the falling > edge comes, he loads the RB. > When I cheked the physical line of the r40008 after configuring, the > line is at logic 1!. Here's the code. eCos currently uses TC0 to implement its main system timer and TC2 to implement a microsecond delay timer. You could probably disable the latter, but disabling the system timer would only work if you have no code that needs timing services of any sort. This is fairly rare, even for very simple programs. -- Nick Garnett eCos Kernel Architect http://www.ecoscentric.com The eCos and RedBoot experts -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss