My FT800 lib

Dependents:   Radar1

Revision:
2:ab74a9a05970
Parent:
0:5e013296b353
Child:
4:363ec27cdfaa
--- a/FT_Hal_Utils.h	Fri Jan 03 23:08:43 2014 +0000
+++ b/FT_Hal_Utils.h	Sat Jan 04 13:56:38 2014 +0000
@@ -1,20 +1,25 @@
-#ifndef _FT_HAL_UTILS_H_
-#define _FT_HAL_UTILS_H_
-
-
-#define RGB(r, g, b)  ((((vc_int32_t)(r)) << 16) | (((vc_int32_t)(g)) << 8) | (b))
-#define SQ(v) ((v) * (v))
-#define MIN(x,y)  ((x) > (y) ? (y) : (x))
-#define MAX(x,y)  ((x) > (y) ? (x) : (y))
-#define PLAYCOLOR        0x00A0A080
-#define NOTE(n, sharp)   (((n) - 'C') + ((sharp) * 128))
-#define F16(s)           ((vc_int32_t)((s) * 65536))
-#define INVALID_TOUCH_XY   0x8000
-#define ABS(x)  ((x) > (0) ? (x) : (-x))
-
-
-#endif /* _FT_HAL_UTILS_H_ */
-
-
+/* mbed Library for FTDI FT800  Enbedded Video Engine "EVE"
+ * based on Original Code Sample from FTDI 
+ * ported to mbed by Peter Drescher, DC2PD 2014
+ * Released under the MIT License: http://mbed.org/license/mit */
+
+#ifndef _FT_HAL_UTILS_H_
+#define _FT_HAL_UTILS_H_
 
 
+#define RGB(r, g, b)  ((((vc_int32_t)(r)) << 16) | (((vc_int32_t)(g)) << 8) | (b))
+#define SQ(v) ((v) * (v))
+#define MIN(x,y)  ((x) > (y) ? (y) : (x))
+#define MAX(x,y)  ((x) > (y) ? (x) : (y))
+#define PLAYCOLOR        0x00A0A080
+#define NOTE(n, sharp)   (((n) - 'C') + ((sharp) * 128))
+#define F16(s)           ((vc_int32_t)((s) * 65536))
+#define INVALID_TOUCH_XY   0x8000
+#define ABS(x)  ((x) > (0) ? (x) : (-x))
+
+
+#endif /* _FT_HAL_UTILS_H_ */
+
+
+
+