david childs / FT800_3

Dependents:   FT810_RGB_demo FT81x_TripComp_test FT810_LoadJPG

Fork of FT800_2 by Peter Drescher

Committer:
dreschpe
Date:
Fri Jan 03 15:26:10 2014 +0000
Revision:
0:5e013296b353
Child:
2:ab74a9a05970
Lib for FTDI FT800 Graphic Controller EVE

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dreschpe 0:5e013296b353 1 #ifndef _FT_HAL_UTILS_H_
dreschpe 0:5e013296b353 2 #define _FT_HAL_UTILS_H_
dreschpe 0:5e013296b353 3
dreschpe 0:5e013296b353 4
dreschpe 0:5e013296b353 5 #define RGB(r, g, b) ((((vc_int32_t)(r)) << 16) | (((vc_int32_t)(g)) << 8) | (b))
dreschpe 0:5e013296b353 6 #define SQ(v) ((v) * (v))
dreschpe 0:5e013296b353 7 #define MIN(x,y) ((x) > (y) ? (y) : (x))
dreschpe 0:5e013296b353 8 #define MAX(x,y) ((x) > (y) ? (x) : (y))
dreschpe 0:5e013296b353 9 #define PLAYCOLOR 0x00A0A080
dreschpe 0:5e013296b353 10 #define NOTE(n, sharp) (((n) - 'C') + ((sharp) * 128))
dreschpe 0:5e013296b353 11 #define F16(s) ((vc_int32_t)((s) * 65536))
dreschpe 0:5e013296b353 12 #define INVALID_TOUCH_XY 0x8000
dreschpe 0:5e013296b353 13 #define ABS(x) ((x) > (0) ? (x) : (-x))
dreschpe 0:5e013296b353 14
dreschpe 0:5e013296b353 15
dreschpe 0:5e013296b353 16 #endif /* _FT_HAL_UTILS_H_ */
dreschpe 0:5e013296b353 17
dreschpe 0:5e013296b353 18
dreschpe 0:5e013296b353 19
dreschpe 0:5e013296b353 20