30 #define F_CPU 80000000L 43 #define INPUT_PULLUP 0x02 44 #define INPUT_PULLDOWN_16 0x04 // PULLDOWN only possible for pin16 46 #define OUTPUT_OPEN_DRAIN 0x03 47 #define WAKEUP_PULLUP 0x05 48 #define WAKEUP_PULLDOWN 0x07 49 #define SPECIAL 0xF8 //defaults to the usable BUSes uart0rx/tx uart1tx and hspi 50 #define FUNCTION_0 0x08 51 #define FUNCTION_1 0x18 52 #define FUNCTION_2 0x28 53 #define FUNCTION_3 0x38 54 #define FUNCTION_4 0x48 56 #define CHANGE 32 // to avoid conflict with HIGH value 70 #define PI (3.1415926535897932384626433832795) 71 #define TWO_PI (6.283185307179586476925286766559) 72 #define HALF_PI (1.5707963267948966192313216916398) 73 #define EPSILON (0.0001) 74 #define DEG_TO_RAD (0.017453292519943295769236907684886) 75 #define RAD_TO_DEG (57.295779513082320876798154814105) 98 #define word(...) makeWord(__VA_ARGS__) 100 #define sq(x) ((x)*(x)) 101 #define radians(deg) ((deg)*DEG_TO_RAD) 102 #define degrees(rad) ((rad)*RAD_TO_DEG) 103 #define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt))) 105 #define lowByte(x) ((uint8_t) ((x) & 0x00ff)) 106 #define highByte(x) ((uint8_t) ((x)>>8)) 109 #define clockCyclesPerMicrosecond() (F_CPU / 1000000L) 110 #define clockCyclesToMicroseconds(a) ((a) / clockCyclesPerMicrosecond()) 111 #define microsecondsToClockCycles(a) ((a) * clockCyclesPerMicrosecond()) #define word(...)
Definition: WConstants.h:98
uint8_t byte
Definition: WConstants.h:120
void(* voidFuncPtr)(void)
Definition: WConstants.h:122
uint8_t boolean
Definition: WConstants.h:121