Library for FT810 EVE chip
Fork of FT810 by
inc/FT_Hal_Utils.h@0:2d0ef4830603, 2016-09-07 (annotated)
- Committer:
- cpm219
- Date:
- Wed Sep 07 21:53:53 2016 +0000
- Revision:
- 0:2d0ef4830603
- Child:
- 11:435747a1f2ae
first version
Who changed what in which revision?
User | Revision | Line number | New 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 | |
cpm219 | 0:2d0ef4830603 | 10 | #define RGB(r, g, b) ((((vc_int32_t)(r)) << 16) | (((vc_int32_t)(g)) << 8) | (b)) |
cpm219 | 0:2d0ef4830603 | 11 | #define SQ(v) ((v) * (v)) |
cpm219 | 0:2d0ef4830603 | 12 | #define MIN(x,y) ((x) > (y) ? (y) : (x)) |
cpm219 | 0:2d0ef4830603 | 13 | #define MAX(x,y) ((x) > (y) ? (x) : (y)) |
cpm219 | 0:2d0ef4830603 | 14 | #define PLAYCOLOR 0x00A0A080 |
cpm219 | 0:2d0ef4830603 | 15 | #define NOTE(n, sharp) (((n) - 'C') + ((sharp) * 128)) |
cpm219 | 0:2d0ef4830603 | 16 | #define F16(s) ((vc_int32_t)((s) * 65536)) |
cpm219 | 0:2d0ef4830603 | 17 | #define INVALID_TOUCH_XY 0x8000 |
cpm219 | 0:2d0ef4830603 | 18 | #define ABS(x) ((x) > (0) ? (x) : (-x)) |
cpm219 | 0:2d0ef4830603 | 19 | |
cpm219 | 0:2d0ef4830603 | 20 | #endif /* _FT_HAL_UTILS_H_ */ |
cpm219 | 0:2d0ef4830603 | 21 | |
cpm219 | 0:2d0ef4830603 | 22 | |
cpm219 | 0:2d0ef4830603 | 23 | |
cpm219 | 0:2d0ef4830603 | 24 |