Fix I2C_ADDRESS ambiguity
This commit is contained in:
parent
e1ad955897
commit
011ecc341a
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@
|
||||||
#define FMOD(x, y) fmodf(x, y)
|
#define FMOD(x, y) fmodf(x, y)
|
||||||
#define HYPOT(x,y) SQRT(HYPOT2(x,y))
|
#define HYPOT(x,y) SQRT(HYPOT2(x,y))
|
||||||
|
|
||||||
#define I2C_ADDRESS(A) (TERN(TARGET_LPC1768, (A) << 1, A))
|
#define I2C_ADDRESS(A) int(TERN(TARGET_LPC1768, (A) << 1, A))
|
||||||
|
|
||||||
// Use NUM_ARGS(__VA_ARGS__) to get the number of variadic arguments
|
// Use NUM_ARGS(__VA_ARGS__) to get the number of variadic arguments
|
||||||
#define _NUM_ARGS(_,Z,Y,X,W,V,U,T,S,R,Q,P,O,N,M,L,K,J,I,H,G,F,E,D,C,B,A,OUT,...) OUT
|
#define _NUM_ARGS(_,Z,Y,X,W,V,U,T,S,R,Q,P,O,N,M,L,K,J,I,H,G,F,E,D,C,B,A,OUT,...) OUT
|
||||||
|
|
Reference in a new issue