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.
Dependents: FT800_touch_track FT800_JPG
FT_Hal_Utils.h@3:3c631ce6fbb5, 2015-01-28 (annotated)
- Committer:
- dreschpe
- Date:
- Wed Jan 28 23:33:56 2015 +0000
- Revision:
- 3:3c631ce6fbb5
- Parent:
- 2:ab74a9a05970
Initial
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| dreschpe | 2:ab74a9a05970 | 1 | /* mbed Library for FTDI FT800 Enbedded Video Engine "EVE" |
| dreschpe | 2:ab74a9a05970 | 2 | * based on Original Code Sample from FTDI |
| dreschpe | 2:ab74a9a05970 | 3 | * ported to mbed by Peter Drescher, DC2PD 2014 |
| dreschpe | 2:ab74a9a05970 | 4 | * Released under the MIT License: http://mbed.org/license/mit */ |
| dreschpe | 2:ab74a9a05970 | 5 | |
| dreschpe | 2:ab74a9a05970 | 6 | #ifndef _FT_HAL_UTILS_H_ |
| dreschpe | 2:ab74a9a05970 | 7 | #define _FT_HAL_UTILS_H_ |
| dreschpe | 0:5e013296b353 | 8 | |
| dreschpe | 0:5e013296b353 | 9 | |
| dreschpe | 2:ab74a9a05970 | 10 | #define RGB(r, g, b) ((((vc_int32_t)(r)) << 16) | (((vc_int32_t)(g)) << 8) | (b)) |
| dreschpe | 2:ab74a9a05970 | 11 | #define SQ(v) ((v) * (v)) |
| dreschpe | 2:ab74a9a05970 | 12 | #define MIN(x,y) ((x) > (y) ? (y) : (x)) |
| dreschpe | 2:ab74a9a05970 | 13 | #define MAX(x,y) ((x) > (y) ? (x) : (y)) |
| dreschpe | 2:ab74a9a05970 | 14 | #define PLAYCOLOR 0x00A0A080 |
| dreschpe | 2:ab74a9a05970 | 15 | #define NOTE(n, sharp) (((n) - 'C') + ((sharp) * 128)) |
| dreschpe | 2:ab74a9a05970 | 16 | #define F16(s) ((vc_int32_t)((s) * 65536)) |
| dreschpe | 2:ab74a9a05970 | 17 | #define INVALID_TOUCH_XY 0x8000 |
| dreschpe | 2:ab74a9a05970 | 18 | #define ABS(x) ((x) > (0) ? (x) : (-x)) |
| dreschpe | 2:ab74a9a05970 | 19 | |
| dreschpe | 2:ab74a9a05970 | 20 | |
| dreschpe | 2:ab74a9a05970 | 21 | #endif /* _FT_HAL_UTILS_H_ */ |
| dreschpe | 2:ab74a9a05970 | 22 | |
| dreschpe | 2:ab74a9a05970 | 23 | |
| dreschpe | 2:ab74a9a05970 | 24 | |
| dreschpe | 2:ab74a9a05970 | 25 |
EVE FT800