Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of FT810 by
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 #define RGB(r, g, b) ((((vc_int32_t)(r)) << 16) | (((vc_int32_t)(g)) << 8) | (b)) 00010 #define SQ(v) ((v) * (v)) 00011 #define MIN(x,y) ((x) > (y) ? (y) : (x)) 00012 #define MAX(x,y) ((x) > (y) ? (x) : (y)) 00013 #define PLAYCOLOR 0x00A0A080 00014 #define NOTE(n, sharp) (((n) - 'C') + ((sharp) * 128)) 00015 #define F16(s) ((vc_int32_t)((s) * 65536)) 00016 #define INVALID_TOUCH_XY 0x8000 00017 #define ABS(x) ((x) > (0) ? (x) : (-x)) 00018 00019 #endif /* _FT_HAL_UTILS_H_ */
Generated on Tue Jul 19 2022 11:45:29 by
1.7.2
