From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27292 invoked by alias); 28 May 2002 19:28:37 -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 27283 invoked from network); 28 May 2002 19:28:35 -0000 Received: from unknown (HELO executor.cambridge.redhat.com) (195.224.55.237) by sources.redhat.com with SMTP; 28 May 2002 19:28:35 -0000 Received: from redhat.com (murgh.cambridge.redhat.com [172.16.18.70]) by executor.cambridge.redhat.com (Postfix) with ESMTP id 1359CABB08; Tue, 28 May 2002 20:28:35 +0100 (BST) Message-ID: <3CF3DA63.93E2297@redhat.com> Date: Tue, 28 May 2002 12:28:00 -0000 From: Jonathan Larmour Organization: Red Hat UK Ltd. X-Accept-Language: en MIME-Version: 1.0 To: peter_ku Cc: ecos-discuss@sources.redhat.com References: <000001c201a4$73ca5760$790114ac@issc.com.tw> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] E7T timer0 interrupt issue ? X-SW-Source: 2002-05/txt/msg00352.txt.bz2 peter_ku wrote: > > I found the casue that I can't enter my ISR. > Because I use timer0, if I change to timer1, everything is fine. > I guess eCos use timer0 to do something, right ??? Yes the kernel uses it for all timing related operations. > If I have to use timer0 ISR to do something , what should I do? Obviously either you have to use some either timer, or change the eCos E7T port to use some other timer. Or if you aren't interested in using the eCos kernel, for your example program you could maybe get away with just calling show_led_proc directly after cyg_interrupt_enable(). You should remove the eCos kernel (CYGPKG_KERNEL) completely to do this though as otherwise it will include some startup code to attach its own interrupt handler to timer 0. And also in that case you should use the driver API (e.g. cyg_drv_interrupt_enable() etc.) Jifl -- Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062 --[ "You can complain because roses have thorns, or you ]-- --[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss