Library for FT810 EVE chip

Fork of FT810 by Curtis Mattull

Committer:
mozillain
Date:
Sat Sep 16 23:40:11 2017 +0000
Revision:
11:435747a1f2ae
Parent:
0:2d0ef4830603
test2

Who changed what in which revision?

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