shalab shalab / Mbed 2 deprecated Tutorial04_dspic33fI2cCom

Dependencies:   Encoder_dspic33f mbed

Revision:
0:72dfed48bbcd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common.h	Thu Feb 27 02:15:35 2014 +0000
@@ -0,0 +1,6 @@
+#define toggle(a) {a=a^1;}
+
+//Convert from radians to degrees.
+inline double toDegrees(double x) {return x * 57.2957795;}
+//Convert from degrees to radians.
+inline double toRadians(double x) {return x * 0.01745329252;}
\ No newline at end of file