From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6853 invoked by alias); 28 May 2007 08:04:38 -0000 Received: (qmail 6845 invoked by uid 22791); 28 May 2007 08:04:37 -0000 X-Spam-Check-By: sourceware.org Received: from jive.SoftHome.net (HELO jive.SoftHome.net) (66.54.152.27) by sourceware.org (qpsmtpd/0.31) with SMTP; Mon, 28 May 2007 08:04:35 +0000 Received: (qmail 21778 invoked by uid 417); 28 May 2007 08:04:24 -0000 Received: from shunt-smtp-out-0 (HELO softhome.net) (172.16.3.12) by shunt-smtp-out-0 with SMTP; 28 May 2007 08:04:24 -0000 Received: from [192.168.0.33] ([82.209.212.146]) (AUTH: PLAIN w3sg@softhome.net) by softhome.net with esmtp; Mon, 28 May 2007 02:04:12 -0600 From: Sergei Gavrikov To: Shusharin Alexey Cc: ecos-discuss@ecos.sourceware.org In-Reply-To: <465A68C0.4040405@mail.ru> References: <465A68C0.4040405@mail.ru> Content-Type: text/plain; charset=UTF-8 Date: Mon, 28 May 2007 09:39:00 -0000 Message-Id: <1180339440.7393.10.camel@sg-ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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 Subject: Re: [ECOS] lpc2xxx timer interrupt X-SW-Source: 2007-05/txt/msg00141.txt.bz2 В Пнд, 28/05/2007 в 12:29 +0700, Shusharin Alexey пишет: > Hello, > > I'm trying to port eCos to my platform (ARM7, LPC2292, my own board). My > driver should scan a hardware with 100 Hz frequency, but the variant > layer of HAL is using both timers. > Is there some method to add call of my function to the system timer > interrupt routine without modifying the variant and architecture code? > Or does anybody know other solution of this problem? 100 Hz latency isn't a hard-timing polling. So, you can use one eCos thread to fullfil that work with a cyg_thread_delay(1) waiting. If you want really to release TIMER1 resources for your own needs (that timer uses itself to implement the variant hal_delay_us() function) you would can to declare the variant's hal_delay_us() with a WEAK attribute and overwrite this function in your platform HAL, but, it seems, that is more tricky. -- Sergei > > Thanks > Best regards > > Alexey Shusharin > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss