From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18187 invoked by alias); 29 May 2007 08:39:11 -0000 Received: (qmail 18176 invoked by uid 22791); 29 May 2007 08:39:10 -0000 X-Spam-Check-By: sourceware.org Received: from mx3.mail.ru (HELO mx3.mail.ru) (194.67.23.149) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 29 May 2007 08:39:06 +0000 Received: from [87.238.119.226] (port=56572 helo=[10.0.0.21]) by mx3.mail.ru with asmtp id 1HsxEL-000B2x-00 for ecos-discuss@ecos.sourceware.org; Tue, 29 May 2007 12:39:02 +0400 Message-ID: <465BE5A7.8010507@mail.ru> Date: Tue, 29 May 2007 09:51:00 -0000 From: Alexey Shusharin User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: ecos-discuss@ecos.sourceware.org References: <465A68C0.4040405@mail.ru> <1180339440.7393.10.camel@sg-ubuntu> In-Reply-To: <1180339440.7393.10.camel@sg-ubuntu> Content-Type: text/plain; charset=UTF-8; format=flowed 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/msg00155.txt.bz2 Sergei Gavrikov пишет: > В Пнд, 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 >> > > Thanks Sergei for reply. Using threads is a good choice, but my driver should work without kernel too. So, I will implement timer interrupt. 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