add arduino macro microsecondsToClockCycles
This commit is contained in:
parent
e492974415
commit
da8cd47dea
|
@ -70,6 +70,7 @@ extern "C"{
|
||||||
#define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
|
#define bitClear(value, bit) ((value) &= ~(1UL << (bit)))
|
||||||
#define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : bitClear(value, bit))
|
#define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : bitClear(value, bit))
|
||||||
|
|
||||||
|
#define microsecondsToClockCycles(a) ( (a) * (F_CPU / 1000000L) )
|
||||||
|
|
||||||
typedef unsigned int word;
|
typedef unsigned int word;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue