This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: eCos heartbeat function handler
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Nodir Qodirov <nodir dot qodirov at gmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Sun, 19 Jul 2009 10:18:46 +0200
- Subject: Re: [ECOS] eCos heartbeat function handler
- References: <186ad4050907190108s119964a5x26d74ee8701ec52c@mail.gmail.com>
> 2) Where should I specify (some assembler file...) which function to
> call on each heartbeat?
Take a look at:
http://ecos.sourceware.org/docs-latest/user-guide/clocks-and-alarm-handlers.html
Call
cyg_alarm_initialize(test_alarmH, cyg_current_time()+1, 1);
and you alarm function will be called every tick.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss