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