Library for FT810 EVE chip
Dependents: PANEL_GUI_hello_world
FT_Hal_Utils.h
00001 /* mbed Library for FTDI FT800 Enbedded Video Engine "EVE" 00002 * based on Original Code Sample from FTDI 00003 * ported to mbed by Peter Drescher, DC2PD 2014 00004 * Released under the MIT License: http://mbed.org/license/mit */ 00005 00006 #ifndef _FT_HAL_UTILS_H_ 00007 #define _FT_HAL_UTILS_H_ 00008 00009 00010 #define RGB(r, g, b) ((((vc_int32_t)(r)) << 16) | (((vc_int32_t)(g)) << 8) | (b)) 00011 #define SQ(v) ((v) * (v)) 00012 #define MIN(x,y) ((x) > (y) ? (y) : (x)) 00013 #define MAX(x,y) ((x) > (y) ? (x) : (y)) 00014 #define PLAYCOLOR 0x00A0A080 00015 #define NOTE(n, sharp) (((n) - 'C') + ((sharp) * 128)) 00016 #define F16(s) ((vc_int32_t)((s) * 65536)) 00017 #define INVALID_TOUCH_XY 0x8000 00018 #define ABS(x) ((x) > (0) ? (x) : (-x)) 00019 00020 #endif /* _FT_HAL_UTILS_H_ */ 00021 00022 00023 00024
Generated on Sat Jul 16 2022 17:49:00 by
