add arduino macro microsecondsToClockCycles

master
Harald Pichler 2017-10-19 11:34:06 +02:00
parent e492974415
commit da8cd47dea
1 changed files with 1 additions and 0 deletions

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;