Power monitor and display (#17437)

This commit is contained in:
Scott Lahteine authored and GitHub committed 2020-06-18 15:23:03 -05:00
1 parent c8e99d572c
commit 424569b4c4
32 files changed
+652 -28

No files matched your search

+3
View File
@@ -97,10 +97,13 @@
#define CBI(A,B) (A &= ~(1 << (B)))
#endif
#define TBI(N,B) (N ^= _BV(B))
#define _BV32(b) (1UL << (b))
#define TEST32(n,b) !!((n)&_BV32(b))
#define SBI32(n,b) (n |= _BV32(b))
#define CBI32(n,b) (n &= ~_BV32(b))
#define TBI32(N,B) (N ^= _BV32(B))
#define cu(x) ({__typeof__(x) _x = (x); (_x)*(_x)*(_x);})
#define RADIANS(d) ((d)*float(M_PI)/180.0f)