This is a part of the Kinetiszer project.

Dependents:   SoundEngine

Committer:
Clemo
Date:
Tue Oct 28 12:19:22 2014 +0000
Revision:
0:5a419ba2726d
Error & warning free (I believe as I don't know how to clean).

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Clemo 0:5a419ba2726d 1 #ifndef __UTIL_H__
Clemo 0:5a419ba2726d 2 #define __UTIL_H__
Clemo 0:5a419ba2726d 3
Clemo 0:5a419ba2726d 4
Clemo 0:5a419ba2726d 5 // From Arduino.h
Clemo 0:5a419ba2726d 6 #define bitRead(value,bit) (((value) >> (bit)) & 0x01)
Clemo 0:5a419ba2726d 7 #define bitSet(value,bit) ((value) |= (1UL << (bit)))
Clemo 0:5a419ba2726d 8 #define bitClear(value,bit) ((value) &= ~(1UL << (bit)))
Clemo 0:5a419ba2726d 9 #define bitWrite(value,bit, bitvalue) (bitvalue ? bitSet(value,bit) : bitClear(value,bit))
Clemo 0:5a419ba2726d 10
Clemo 0:5a419ba2726d 11 long map(long x, long in_min, long in_max, long out_min, long out_max);
Clemo 0:5a419ba2726d 12 //int round(double number);
Clemo 0:5a419ba2726d 13 void randomSeed(unsigned int seed);
Clemo 0:5a419ba2726d 14 long random(long howsmall, long howbig);
Clemo 0:5a419ba2726d 15 void cli(void);
Clemo 0:5a419ba2726d 16 void sei(void);
Clemo 0:5a419ba2726d 17
Clemo 0:5a419ba2726d 18
Clemo 0:5a419ba2726d 19 #endif // __UTIL_H__