updated for FT810 and 800x480 display

Dependents:   FT810_RGB_demo FT81x_TripComp_test FT810_LoadJPG

Fork of FT800_2 by Peter Drescher

Committer:
davidchilds
Date:
Wed Feb 24 14:04:34 2016 +0000
Revision:
7:a69ac4d39afd
Parent:
2:ab74a9a05970
The updated library for FT810 with 800x480 display; Thanks to FTDI and Peter Drescher for getting this far

Who changed what in which revision?

UserRevisionLine numberNew 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 0:5e013296b353 6 #ifndef _FT_DATATYPES_H_
dreschpe 0:5e013296b353 7 #define _FT_DATATYPES_H_
dreschpe 0:5e013296b353 8
dreschpe 0:5e013296b353 9
dreschpe 0:5e013296b353 10 #define FT_FALSE (0)
dreschpe 0:5e013296b353 11 #define FT_TRUE (1)
dreschpe 0:5e013296b353 12
dreschpe 0:5e013296b353 13 typedef char ft_char8_t;
dreschpe 0:5e013296b353 14 typedef signed char ft_schar8_t;
dreschpe 0:5e013296b353 15 typedef unsigned char ft_uchar8_t;
dreschpe 0:5e013296b353 16 typedef ft_uchar8_t ft_uint8_t;
dreschpe 0:5e013296b353 17 typedef short ft_int16_t;
dreschpe 0:5e013296b353 18 typedef unsigned short ft_uint16_t;
dreschpe 0:5e013296b353 19 typedef unsigned int ft_uint32_t;
dreschpe 0:5e013296b353 20 typedef int ft_int32_t;
dreschpe 0:5e013296b353 21 typedef void ft_void_t;
dreschpe 0:5e013296b353 22 typedef long long ft_int64_t;
dreschpe 0:5e013296b353 23 typedef unsigned long long ft_uint64_t;
dreschpe 0:5e013296b353 24 typedef float ft_float_t;
dreschpe 0:5e013296b353 25 typedef double ft_double_t;
dreschpe 0:5e013296b353 26 typedef char ft_bool_t;
dreschpe 0:5e013296b353 27
dreschpe 0:5e013296b353 28 #define FT_BYTE_SIZE (1)
dreschpe 0:5e013296b353 29 #define FT_SHORT_SIZE (2)
dreschpe 0:5e013296b353 30 #define FT_WORD_SIZE (4)
dreschpe 0:5e013296b353 31 #define FT_DWORD_SIZE (8)
dreschpe 0:5e013296b353 32
dreschpe 0:5e013296b353 33 #define FT_NUMBITS_IN_BYTE (1*8)
dreschpe 0:5e013296b353 34 #define FT_NUMBITS_IN_SHORT (2*8)
dreschpe 0:5e013296b353 35 #define FT_NUMBITS_IN_WORD (4*8)
dreschpe 0:5e013296b353 36 #define FT_NUMBITS_IN_DWORD (8*8)
dreschpe 0:5e013296b353 37
dreschpe 0:5e013296b353 38 #define ft_prog_uchar8_t ft_uchar8_t
dreschpe 0:5e013296b353 39 #define ft_prog_char8_t ft_char8_t
dreschpe 0:5e013296b353 40 #define ft_prog_uint16_t ft_uint16_t
dreschpe 0:5e013296b353 41
dreschpe 0:5e013296b353 42 #define ft_random(x) (rand() % (x))
dreschpe 0:5e013296b353 43
dreschpe 0:5e013296b353 44 #define ft_pgm_read_byte_near(x) (*(x))
dreschpe 0:5e013296b353 45 #define ft_pgm_read_byte(x) (*(x))
dreschpe 0:5e013296b353 46
dreschpe 0:5e013296b353 47 #define ft_strcpy_P strcpy
dreschpe 0:5e013296b353 48 #define ft_strlen_P strlen
dreschpe 0:5e013296b353 49
dreschpe 0:5e013296b353 50 #define FT_DBGPRINT(x) printf(x)
dreschpe 1:bd671a31e765 51 #define FT_PROGMEM const
dreschpe 0:5e013296b353 52
dreschpe 0:5e013296b353 53 #define ft_pgm_read_byte_near(x) (*(x))
dreschpe 0:5e013296b353 54 #define ft_pgm_read_byte(x) (*(x))
dreschpe 0:5e013296b353 55
dreschpe 0:5e013296b353 56 #define ft_pgm_read_word(addr) (*(ft_int16_t*)(addr))
dreschpe 0:5e013296b353 57
dreschpe 0:5e013296b353 58 #endif /*_FT_DATATYPES_H_*/
dreschpe 0:5e013296b353 59
dreschpe 0:5e013296b353 60
dreschpe 0:5e013296b353 61 /* Nothing beyond this*/
dreschpe 0:5e013296b353 62
dreschpe 0:5e013296b353 63
dreschpe 0:5e013296b353 64
dreschpe 0:5e013296b353 65
dreschpe 0:5e013296b353 66
dreschpe 0:5e013296b353 67
dreschpe 0:5e013296b353 68