From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11636 invoked by alias); 19 Jul 2009 08:08:31 -0000 Received: (qmail 11622 invoked by uid 22791); 19 Jul 2009 08:08:30 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-yx0-f195.google.com (HELO mail-yx0-f195.google.com) (209.85.210.195) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 19 Jul 2009 08:08:20 +0000 Received: by yxe33 with SMTP id 33so2888423yxe.28 for ; Sun, 19 Jul 2009 01:08:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.251.10 with SMTP id y10mr4448624anh.38.1247990898059; Sun, 19 Jul 2009 01:08:18 -0700 (PDT) Date: Sun, 19 Jul 2009 08:08:00 -0000 Message-ID: <186ad4050907190108s119964a5x26d74ee8701ec52c@mail.gmail.com> From: Nodir Qodirov To: ecos-discuss@ecos.sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: [ECOS] eCos heartbeat function handler X-SW-Source: 2009-07/txt/msg00157.txt.bz2 Hello everybody! I want to know "heartbeat" function of the eCos. As far as I know, all Embedded Systems have CPU provided or external source of ticks, which is can be thought as "heartbeat" of system. And it can have different rates depending on h/w. I have read eCos reference and previous posts in ecos-discuss, but couldn't find which function is run on each tick? >From eCos book of Anthony J. Massa and eCos Ref I found that Clock, Alarm and Timer are attached to the Counter, so I thought some function of Counter (as it is basement for others) should have heartbeat handler function. Then I had a look to the source code and found void Cyg_Counter::tick( cyg_uint32 ticks ) function in packages\kernel\current\src\common\clock.cxx it seemed to be function which is called at each tick. Am I right? Basically I have 2 questions: 1) Which function is called on each heartbeat (=hardware provided source of ticks)? 2) Where should I specify (some assembler file...) which function to call on each heartbeat? Thanking in advence, Nodir. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss