From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1633 invoked by alias); 23 Oct 2003 14:34:12 -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 1620 invoked from network); 23 Oct 2003 14:34:12 -0000 Received: from unknown (HELO anchor-post-35.mail.demon.net) (194.217.242.85) by sources.redhat.com with SMTP; 23 Oct 2003 14:34:12 -0000 Received: from calivar.demon.co.uk ([212.228.213.211] helo=miso.calivar.com) by anchor-post-35.mail.demon.net with esmtp (Exim 3.35 #1) id 1ACgXR-000CZ4-0Z; Thu, 23 Oct 2003 15:34:09 +0100 Received: from miso.calivar.com (miso.calivar.com [127.0.0.2]) by miso.calivar.com (Postfix) with ESMTP id AFF1628DF45; Thu, 23 Oct 2003 15:25:31 +0100 (BST) To: Carlos Perilla Cc: ecos References: <3F9575D1.6030509@phaber.com> From: Nick Garnett Date: Thu, 23 Oct 2003 14:34:00 -0000 In-Reply-To: <3F9575D1.6030509@phaber.com> 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] eb40a Interrupt, TC X-SW-Source: 2003-10/txt/msg00417.txt.bz2 Carlos Perilla writes: > Well , finally I got two timers running, with the conf I want, Now I > need to capture the interrupts that my configuration is generating, as > long as the TC_SR says the events that I have programed had passed but > not attended. > > > Im using two other threads to capture and transmit the data I get from > here, still the Interrupt Isn't captured, and the program keeps > waiting for the semaphore signal. > You should not be calling cyg_interrupt_enable(). This is done implicitly when the scheduler is started. Calling it before then can allow interrupts to be delivered to code that is not yet ready. The code you have posted seems fine as far as it goes. Check that you have used the right vector number. Your code does not show where you are setting up the timer device. I suspect that this is where the problems are to be found. Have you, for example, set the correct interrupt enable bit for the timer mode you are using. -- 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