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 FT800_3 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 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 15:08:10 by
1.7.2
