Hello!
I would like to stop the time (in seconds) with a timer between two differents ISRs.
The first ISR should start, the second should stop the timer.
Could You give me a general idea, which approach would be the best for such a problem?
Thank You!
Horst
Time measurement between two ISRs, general idea?
Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: Time measurement between two ISRs, general idea?
Hi,
If you need to measure time then use the TM API (Time Measurement), no need to use timers and it is clock cycle accurate.
Giovanni
If you need to measure time then use the TM API (Time Measurement), no need to use timers and it is clock cycle accurate.
Giovanni
Re: Time measurement between two ISRs, general idea?
Hello,
all right, I will try that out, thank You!
I wonder if You could help me with another issue. (sorry, I'm still a newbie to ChibiOS...)
I would like to implement/enable external interrupt on a button (+ "ISR"/callback-function) with palSetPadCallbackI()/PAL Driver ..., but I am not quite sure which steps are necessary for this. Would it be possible for You to provide a minimal example for this or to tell me, where I can find one? Or would You rather suggest another, better approach?
Thank You very much!
all right, I will try that out, thank You!
I wonder if You could help me with another issue. (sorry, I'm still a newbie to ChibiOS...)
I would like to implement/enable external interrupt on a button (+ "ISR"/callback-function) with palSetPadCallbackI()/PAL Driver ..., but I am not quite sure which steps are necessary for this. Would it be possible for You to provide a minimal example for this or to tell me, where I can find one? Or would You rather suggest another, better approach?
Thank You very much!
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: Time measurement between two ISRs, general idea?
Hi,
In /testhal/STM32/multi/PAL there is the example you need.
Giovanni
In /testhal/STM32/multi/PAL there is the example you need.
Giovanni
Who is online
Users browsing this forum: No registered users and 8 guests