commit 9c4dfabf2e643bc2c2ba7c22e9552b9a8bcc5054 Author: Daniel Ribeiro <[email protected]> Date: Mon Jan 10 15:14:26 2011 -0200
Add HZ_TO_NS macro
diff --git a/libsigrok/sigrok.h b/libsigrok/sigrok.h
index 5606a1e..ebbfcb8 100644
--- a/libsigrok/sigrok.h
+++ b/libsigrok/sigrok.h
@@ -59,6 +59,8 @@
#define MHZ(n) ((n) * 1000000)
#define GHZ(n) ((n) * 1000000000)
+#define HZ_TO_NS(n) (1000000000 / (n))
+
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
#endif
--
Daniel Ribeiro
signature.asc
Description: Esta é uma parte de mensagem assinada digitalmente
------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________ sigrok-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sigrok-devel

