add arduino macro microsecondsToClockCycles

This commit is contained in:
Harald Pichler 2017-10-19 11:34:06 +02:00
parent e492974415
commit da8cd47dea

View file

@ -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;