[ECOS] eCos heartbeat function handler

Andrew Lunn andrew@lunn.ch
Sun Jul 19 08:18:00 GMT 2009


> 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



More information about the Ecos-discuss mailing list