Lib FT800 Modifiee

Dependents:   FT800_Lib_perso

Committer:
schnf30
Date:
Tue Feb 08 08:17:31 2022 +0000
Revision:
0:7ea2f058a713
Librairie FT800 adaptee avec drawline, Brigntness etc...

Who changed what in which revision?

UserRevisionLine numberNew contents of line
schnf30 0:7ea2f058a713 1 /* mbed Library for FTDI FT800 Enbedded Video Engine "EVE"
schnf30 0:7ea2f058a713 2 * based on Original Code Sample from FTDI
schnf30 0:7ea2f058a713 3 * ported to mbed by Peter Drescher, DC2PD 2014
schnf30 0:7ea2f058a713 4 * Released under the MIT License: http://mbed.org/license/mit */
schnf30 0:7ea2f058a713 5
schnf30 0:7ea2f058a713 6 #ifndef _FT_DATATYPES_H_
schnf30 0:7ea2f058a713 7 #define _FT_DATATYPES_H_
schnf30 0:7ea2f058a713 8
schnf30 0:7ea2f058a713 9
schnf30 0:7ea2f058a713 10 #define FT_FALSE (0)
schnf30 0:7ea2f058a713 11 #define FT_TRUE (1)
schnf30 0:7ea2f058a713 12
schnf30 0:7ea2f058a713 13 typedef char ft_char8_t;
schnf30 0:7ea2f058a713 14 typedef signed char ft_schar8_t;
schnf30 0:7ea2f058a713 15 typedef unsigned char ft_uchar8_t;
schnf30 0:7ea2f058a713 16 typedef ft_uchar8_t ft_uint8_t;
schnf30 0:7ea2f058a713 17 typedef short ft_int16_t;
schnf30 0:7ea2f058a713 18 typedef unsigned short ft_uint16_t;
schnf30 0:7ea2f058a713 19 typedef unsigned int ft_uint32_t;
schnf30 0:7ea2f058a713 20 typedef int ft_int32_t;
schnf30 0:7ea2f058a713 21 typedef void ft_void_t;
schnf30 0:7ea2f058a713 22 typedef long long ft_int64_t;
schnf30 0:7ea2f058a713 23 typedef unsigned long long ft_uint64_t;
schnf30 0:7ea2f058a713 24 typedef float ft_float_t;
schnf30 0:7ea2f058a713 25 typedef double ft_double_t;
schnf30 0:7ea2f058a713 26 typedef char ft_bool_t;
schnf30 0:7ea2f058a713 27
schnf30 0:7ea2f058a713 28 #define FT_BYTE_SIZE (1)
schnf30 0:7ea2f058a713 29 #define FT_SHORT_SIZE (2)
schnf30 0:7ea2f058a713 30 #define FT_WORD_SIZE (4)
schnf30 0:7ea2f058a713 31 #define FT_DWORD_SIZE (8)
schnf30 0:7ea2f058a713 32
schnf30 0:7ea2f058a713 33 #define FT_NUMBITS_IN_BYTE (1*8)
schnf30 0:7ea2f058a713 34 #define FT_NUMBITS_IN_SHORT (2*8)
schnf30 0:7ea2f058a713 35 #define FT_NUMBITS_IN_WORD (4*8)
schnf30 0:7ea2f058a713 36 #define FT_NUMBITS_IN_DWORD (8*8)
schnf30 0:7ea2f058a713 37
schnf30 0:7ea2f058a713 38 #define ft_prog_uchar8_t ft_uchar8_t
schnf30 0:7ea2f058a713 39 #define ft_prog_char8_t ft_char8_t
schnf30 0:7ea2f058a713 40 #define ft_prog_uint16_t ft_uint16_t
schnf30 0:7ea2f058a713 41
schnf30 0:7ea2f058a713 42 #define ft_random(x) (rand() % (x))
schnf30 0:7ea2f058a713 43
schnf30 0:7ea2f058a713 44 #define ft_pgm_read_byte_near(x) (*(x))
schnf30 0:7ea2f058a713 45 #define ft_pgm_read_byte(x) (*(x))
schnf30 0:7ea2f058a713 46
schnf30 0:7ea2f058a713 47 #define ft_strcpy_P strcpy
schnf30 0:7ea2f058a713 48 #define ft_strlen_P strlen
schnf30 0:7ea2f058a713 49
schnf30 0:7ea2f058a713 50 #define FT_DBGPRINT(x) printf(x)
schnf30 0:7ea2f058a713 51 #define FT_PROGMEM const
schnf30 0:7ea2f058a713 52
schnf30 0:7ea2f058a713 53 #define ft_pgm_read_byte_near(x) (*(x))
schnf30 0:7ea2f058a713 54 #define ft_pgm_read_byte(x) (*(x))
schnf30 0:7ea2f058a713 55
schnf30 0:7ea2f058a713 56 #define ft_pgm_read_word(addr) (*(ft_int16_t*)(addr))
schnf30 0:7ea2f058a713 57
schnf30 0:7ea2f058a713 58 #endif /*_FT_DATATYPES_H_*/
schnf30 0:7ea2f058a713 59
schnf30 0:7ea2f058a713 60
schnf30 0:7ea2f058a713 61 /* Nothing beyond this*/
schnf30 0:7ea2f058a713 62
schnf30 0:7ea2f058a713 63
schnf30 0:7ea2f058a713 64
schnf30 0:7ea2f058a713 65
schnf30 0:7ea2f058a713 66
schnf30 0:7ea2f058a713 67
schnf30 0:7ea2f058a713 68
schnf30 0:7ea2f058a713 69