This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: how to register timer DSR
> > Hi,
> > I want a call back function to be called every 10ms.
> http://ecos.sourceware.org/ecos/docs-latest/ref/kernel-alarms.html
> You can see an example in the eCos examples, which comes with eCos. Look
> at simple-alarm.c.
> Jifl
Thanks Jonathan for your quick response. I want to know if the function
test_alarm_func (the alarm handler in example simple-alarm.c) is called in
interrut context?
Basically I want to know if some other function can be called (or
rescheduling is possible), when test_alarm_func is getting executed.
Does the following code have synchronisation problem?
test_alarm_func( ) {
access critical data /* no locks here */
}
another_function ( ) {
lock schedular
access critical data
unlock schedular
}
one_more_function ( ) {
lock schedular
access critical data
unlock schedular
}
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss