Hi Eric,

What all I basically need to do is get the time between GPIO interrupts.
Any suggestion?

Why don't you try this:

#include <linux/time.h>

struct timeval tv_pre;
struct timeval tv_post;

do_gettimeofday(&tv_pre);

....

do_gettimeofday(&tv_post);

printk("delta: %lld ns\n", timeval_to_ns(&tv_post) - timeval_to_ns(&tv_pre));

Ivan
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to