x

Dependents:   20180621_FT813

Fork of FT810 by Curtis Mattull

Committer:
JackB
Date:
Mon Jul 23 12:22:23 2018 +0000
Revision:
10:6a81aeca25e3
Parent:
0:2d0ef4830603
FT813

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cpm219 0:2d0ef4830603 1 /* mbed Library for FTDI FT800 Enbedded Video Engine "EVE"
cpm219 0:2d0ef4830603 2 * based on Original Code Sample from FTDI
cpm219 0:2d0ef4830603 3 * ported to mbed by Peter Drescher, DC2PD 2014
cpm219 0:2d0ef4830603 4 * Released under the MIT License: http://mbed.org/license/mit */
cpm219 0:2d0ef4830603 5
cpm219 0:2d0ef4830603 6 #ifndef _FT_HAL_UTILS_H_
cpm219 0:2d0ef4830603 7 #define _FT_HAL_UTILS_H_
cpm219 0:2d0ef4830603 8
cpm219 0:2d0ef4830603 9 #define RGB(r, g, b) ((((vc_int32_t)(r)) << 16) | (((vc_int32_t)(g)) << 8) | (b))
cpm219 0:2d0ef4830603 10 #define SQ(v) ((v) * (v))
cpm219 0:2d0ef4830603 11 #define MIN(x,y) ((x) > (y) ? (y) : (x))
cpm219 0:2d0ef4830603 12 #define MAX(x,y) ((x) > (y) ? (x) : (y))
cpm219 0:2d0ef4830603 13 #define PLAYCOLOR 0x00A0A080
cpm219 0:2d0ef4830603 14 #define NOTE(n, sharp) (((n) - 'C') + ((sharp) * 128))
cpm219 0:2d0ef4830603 15 #define F16(s) ((vc_int32_t)((s) * 65536))
cpm219 0:2d0ef4830603 16 #define INVALID_TOUCH_XY 0x8000
cpm219 0:2d0ef4830603 17 #define ABS(x) ((x) > (0) ? (x) : (-x))
cpm219 0:2d0ef4830603 18
cpm219 0:2d0ef4830603 19 #endif /* _FT_HAL_UTILS_H_ */