Added RES_R macro to rescap.h. (no whatsnew)

This commit is contained in:
Curt Coder 2011-04-10 11:27:46 +00:00
parent c7d0b7bb64
commit 0ca7a8a7a8

View File

@ -2,6 +2,7 @@
#define RC_MACROS_H
/* Little helpers for magnitude conversions */
#define RES_R(res) ((double)(res))
#define RES_K(res) ((double)(res) * 1e3)
#define RES_M(res) ((double)(res) * 1e6)
#define CAP_U(cap) ((double)(cap) * 1e-6)