projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
carl9170 firmware: add radar pattern generator
[carl9170fw.git]
/
carlfw
/
include
/
timer.h
diff --git
a/carlfw/include/timer.h
b/carlfw/include/timer.h
index 1c1c6cd4fa6f0f30c9f539c0a110c8f78baed5ee..0464914091353f30eb7029e4be0453250b283713 100644
(file)
--- a/
carlfw/include/timer.h
+++ b/
carlfw/include/timer.h
@@
-50,6
+50,11
@@
static inline __inline bool is_after_msecs(const uint32_t t0, const uint32_t mse
return ((get_clock_counter() - t0) / 1000) > (msecs * fw.ticks_per_usec);
}
return ((get_clock_counter() - t0) / 1000) > (msecs * fw.ticks_per_usec);
}
+static inline __inline bool is_after_usecs(const uint32_t t0, const uint32_t usecs)
+{
+ return ((get_clock_counter() - t0)) > (usecs * fw.ticks_per_usec);
+}
+
/*
* Note: Be careful with [u]delay. They won't service the
* hardware watchdog timer. It might trigger if you
/*
* Note: Be careful with [u]delay. They won't service the
* hardware watchdog timer. It might trigger if you