image/svg+xml
Brteve's API for EveApps
Version 0.0.1
The reference document for common folder of EveApps project.
 
Loading...
Searching...
No Matches
EVE_Platform_FT9XX.h
Go to the documentation of this file.
1
32#ifndef EVE_PLATFORM_FT900__H
33#define EVE_PLATFORM_FT900__H
34
35#include "EVE_Config.h"
36#if defined(FT9XX_PLATFORM)
37
38#if defined(FT900_PLATFORM)
39
40#define GPIO_UART0_TX (48)
41#define GPIO_UART0_RX (49)
42
43#define GPIO_SPIM_CLK (27)
44#define GPIO_SPIM_SS0 (28)
45#define GPIO_SPIM_MOSI (29)
46#define GPIO_SPIM_MISO (30)
47
48#define GPIO_SPIM_IO2 (31)
49#define GPIO_SPIM_IO3 (32)
50
51#define GPIO_SPIM_SS1 (33)
52#define GPIO_SPIM_SS2 (34)
53
54#define GPIO_ILI9488_CS1 (33)
55#define GPIO_ILI9488_DCX (34)
56
57#define GPIO_FT800_INT (42)
58#define GPIO_FT800_PWD (43)
59
60#define pad_ili9488_dcx (pad_func_0)
61#define pad_ili9488_cs1 (pad_func_0)
62
63#define GPIO_SD_CLK (19)
64#define GPIO_SD_CMD (20)
65#define GPIO_SD_DAT3 (21)
66#define GPIO_SD_DAT2 (22)
67#define GPIO_SD_DAT1 (23)
68#define GPIO_SD_DAT0 (24)
69#define GPIO_SD_CD (25)
70#define GPIO_SD_WP (26)
71
72#elif defined(FT93X_PLATFORM)
73
74#define GPIO_UART0_TX (23)
75#define GPIO_UART0_RX (22)
76
77#define GPIO_SPIM_CLK (34)
78#define GPIO30_SPIM_SS0 (30)
79#define GPIO_SPIM_MOSI (36)
80#define GPIO_SPIM_MISO (35)
81
82#define GPIO_SPIM_IO2 (37)
83#define GPIO_SPIM_IO3 (38)
84
85#define GPIO_SPIM_SS1 (31)
86#define GPIO_SPIM_SS2 (32)
87#define GPIO_SPIM_SS3 (33)
88
89#define GPIO_ILI9488_CS1 (31)
90#define GPIO_ILI9488_DCX (8)
91
92#define GPIO_FT800_INT (14)
93#define GPIO_FT800_PWD (15)
94
95#define pad_ili9488_dcx (pad_func_0)
96#define pad_ili9488_cs1 (pad_func_0)
97
98#define GPIO_SD_CLK (0)
99#define GPIO_SD_CMD (1)
100#define GPIO_SD_DAT3 (6)
101#define GPIO_SD_DAT2 (5)
102#define GPIO_SD_DAT1 (4)
103#define GPIO_SD_DAT0 (3)
104#define GPIO_SD_CD (2)
105#define GPIO_SD_WP (7)
106
107#endif
108
109/* Timer 1 is been utilized in case of FT900 platform */
110#define FT900_FT_MILLIS_TIMER (timer_select_b)
111#define FT900_TIMER_MAX_VALUE (65536L)
112#define FT900_TIMER_PRESCALE_VALUE (100)
113#define FT900_TIMER_OVERFLOW_VALUE (1000)
114
115/* Hardware or Module specific macros for gpio line numbers */
116#if defined(CLEO35)
117
118#undef GPIO_FT800_PWD
119#define GPIO_FT800_PWD (66)
121#elif defined(CLEO50)
122
123#undef GPIO_FT800_PWD
124#define GPIO_FT800_PWD (0)
126#elif defined(FT900DEMOBOARD)
127
128#undef GPIO_FT800_PWD
129#define GPIO_FT800_PWD (32)
130
131#elif defined(PANL35)
132
133#undef GPIO_FT800_INT
134#undef GPIO_FT800_PWD
135#define GPIO_FT800_INT (0)
136#define GPIO_FT800_PWD (1)
137
138#elif defined(PANL70)
139
140#undef GPIO_FT800_INT
141#undef GPIO_FT800_PWD
142#define GPIO_FT800_INT (0)
143#define GPIO_FT800_PWD (1)
144#define GPIO_GOODIX (33)
145
146#elif defined(PANL70PLUS)
147
148#undef GPIO_FT800_INT
149#undef GPIO_FT800_PWD
150#define GPIO_FT800_INT (0)
151#define GPIO_FT800_PWD (1)
152#define GPIO_GOODIX (33)
153#define pad_gpio_goodix (pad_func_0)
154
155#endif
156
157#ifndef RTC_PRESENT
158#ifdef FT900_PLATFORM_RTC_I2C
159#define RTC_PRESENT (1)
160#endif
161#endif /* RTC_PRESENT */
162
163/* Standard C libraries */
164#define ESD_USING_NEW_LIB
166#include <unistd.h>
167#include <stdlib.h>
168#include <stdio.h>
169#include <stdarg.h>
170#include <string.h>
171#include <assert.h>
172
173/* FT900 libraries */
174#include "ft900_uart_simple.h"
175#include "ft900_sdhost.h"
176#include "ft900_spi.h"
177#include "ft900_gpio.h"
178#include "ft900_rtc.h"
179#include "ft900_interrupt.h"
180#include "ft900_i2cm.h"
181#include "ft900.h"
182#include "ft900_delay.h"
183
184#define eve_printf(fmt, ...) iprintf(fmt, ##__VA_ARGS__)
185#define eve_sprintf(str, fmt, ...) siprintf(str, fmt, ##__VA_ARGS__)
186
187#endif
188#endif /* #ifndef EVE_PLATFORM_FT900__H */
189
190/* end of file */
This file processes the input definitions.