Re: [Fwd: Re: [fpc-pascal] spin_lock]

2006-05-31 Thread Burkhard Carstens
[..] > > So what about this: > > modify your drivers sample routine that it takes a timestamp > > (time_for_next_sample) and returns a timestamp (last_sampled) > > together with your voltage value. in the sample routine take your > > spin_lock, loop until currenttime > time_for_next_sample, get you

[Fwd: Re: [fpc-pascal] spin_lock]

2006-05-31 Thread Alain Michaud
(Burkhard: my mistake. Sorry ) Hi, thank you for your message. I find it VERY usefull! I have many questions: 1-- Keep in mind that I need the processor for a period of 100 milisecond ONLY. After that, my process can be off for 10 seconds or more... Between the 'critical sections', there is p