46 #ifndef __D4DLCD_LS020_H
47 #define __D4DLCD_LS020_H
49 #if (D4D_MK_STR(D4D_LLD_LCD) == d4dlcd_ls020_ID)
54 #include "d4dlcd_ls020_cfg.h"
92 #if 0 // will be implemented ASAP, Petr Gargulak
139 #ifndef __D4DLCD_D3000TFT2_1_H
140 #define __D4DLCD_D3000TFT2_1_H
142 #if (D4D_LLD_LCD == D4D_LLD_LCD_D3000TFT2_1)
147 #include "d4dlcd_d3000TFT2_1_cfg.h"
152 #define D4DLCD_COMM_HW_NONE 0
153 #define D4DLCD_COMM_HW_SPI 1
154 #define D4DLCD_COMM_HW_QSPI 2
155 #define D4DLCD_COMM_HW_DSPI 3
156 #define D4DLCD_COMM_HW_SWSPI 4
157 #define D4DLCD_COMM_HW_PAR_GPIO 10
158 #define D4DLCD_COMM_HW_PAR_FLEX 11
162 #define D4DLCD_PIXEL_COUNT (D4D_SCREEN_SIZE_SHORTER_SIDE * D4D_SCREEN_SIZE_LONGER_SIDE)
165 #ifndef D4DLCD_INIT_CS
167 #error "The Macro D4DLCD_CS must be set in LCD low level driver configuration file."
169 #define D4DLCD_INIT_CS OUTPUT(D4DLCD_CS);
173 #ifndef D4DLCD_ASSERT_CS
175 #error "The Macro D4DLCD_CS must be set in LCD low level driver configuration file."
177 #define D4DLCD_ASSERT_CS RESET(D4DLCD_CS);
181 #ifndef D4DLCD_DEASSERT_CS
183 #error "The Macro D4DLCD_CS must be set in LCD low level driver configuration file."
185 #define D4DLCD_DEASSERT_CS SET(D4DLCD_CS);
191 #ifndef D4DLCD_INIT_RESET
193 #error "The Macro D4DLCD_RESET must be set in LCD low level driver configuration file."
195 #define D4DLCD_INIT_RESET OUTPUT(D4DLCD_RESET);
199 #ifndef D4DLCD_ASSERT_RESET
201 #error "The Macro D4DLCD_RESET must be set in LCD low level driver configuration file."
203 #define D4DLCD_ASSERT_RESET RESET(D4DLCD_RESET);
207 #ifndef D4DLCD_DEASSERT_RESET
209 #error "The Macro D4DLCD_RESET must be set in LCD low level driver configuration file."
211 #define D4DLCD_DEASSERT_RESET SET(D4DLCD_RESET);
217 #ifndef D4DLCD_INIT_DC
219 #error "The Macro D4DLCD_DC must be set in LCD low level driver configuration file."
221 #define D4DLCD_INIT_DC OUTPUT(D4DLCD_DC);
225 #ifndef D4DLCD_ASSERT_DC
227 #error "The Macro D4DLCD_DC must be set in LCD low level driver configuration file."
229 #define D4DLCD_ASSERT_DC RESET(D4DLCD_DC);
233 #ifndef D4DLCD_DEASSERT_DC
235 #error "The Macro D4DLCD_DC must be set in LCD low level driver configuration file."
237 #define D4DLCD_DEASSERT_DC SET(D4DLCD_DC);
242 #ifndef D4DLCD_INIT_SPICLK
243 #ifndef D4DLCD_SPICLK
244 #error "The Macro D4DLCD_SPICLK must be set in LCD low level driver configuration file."
246 #define D4DLCD_INIT_SPICLK OUTPUT(D4DLCD_SPICLK);
250 #ifndef D4DLCD_ASSERT_SPICLK
251 #ifndef D4DLCD_SPICLK
252 #error "The Macro D4DLCD_SPICLK must be set in LCD low level driver configuration file."
254 #define D4DLCD_ASSERT_SPICLK RESET(D4DLCD_SPICLK);
258 #ifndef D4DLCD_DEASSERT_SPICLK
259 #ifndef D4DLCD_SPICLK
260 #error "The Macro D4DLCD_SPICLK must be set in LCD low level driver configuration file."
262 #define D4DLCD_DEASSERT_SPICLK SET(D4DLCD_SPICLK);
266 #ifndef D4DLCD_INIT_SPIDATA
267 #ifndef D4DLCD_SPIDATA
268 #error "The Macro D4DLCD_SPIDATA must be set in LCD low level driver configuration file."
270 #define D4DLCD_INIT_SPIDATA OUTPUT(D4DLCD_SPIDATA);
274 #ifndef D4DLCD_ASSERT_SPIDATA
275 #ifndef D4DLCD_SPIDATA
276 #error "The Macro D4DLCD_SPIDATA must be set in LCD low level driver configuration file."
278 #define D4DLCD_ASSERT_SPIDATA RESET(D4DLCD_SPIDATA);
282 #ifndef D4DLCD_DEASSERT_SPIDATA
283 #ifndef D4DLCD_SPIDATA
284 #error "The Macro D4DLCD_SPIDATA must be set in LCD low level driver configuration file."
286 #define D4DLCD_DEASSERT_SPIDATA SET(D4DLCD_SPIDATA);
290 #ifdef D4DLCD_COMM_HW
292 #if D4DLCD_COMM_HW == D4DLCD_COMM_HW_SPI
294 #if D4DLCD_COMM_HW_ID == 0
295 #define D4DLCD_SPIBR SPIBR
296 #define D4DLCD_SPIC1 SPIC1
297 #define D4DLCD_SPIC2 SPIC2
298 #define D4DLCD_SPID SPID
299 #define D4DLCD_SPIS_SPTEF SPIS_SPTEF
300 #elif D4DLCD_COMM_HW_ID == 1
301 #define D4DLCD_SPIBR SPI1BR
302 #define D4DLCD_SPIC1 SPI1C1
303 #define D4DLCD_SPIC2 SPI1C2
304 #define D4DLCD_SPID SPI1D
305 #define D4DLCD_SPIS_SPTEF SPI1S_SPTEF
306 #elif D4DLCD_COMM_HW_ID == 2
307 #define D4DLCD_SPIBR SPI2BR
308 #define D4DLCD_SPIC1 SPI2C1
309 #define D4DLCD_SPIC2 SPI2C2
310 #define D4DLCD_SPID SPI2D
311 #define D4DLCD_SPIS_SPTEF SPI2S_SPTEF
312 #elif D4DLCD_COMM_HW_ID == 3
313 #define D4DLCD_SPIBR SPI3BR
314 #define D4DLCD_SPIC1 SPI3C1
315 #define D4DLCD_SPIC2 SPI3C2
316 #define D4DLCD_SPID SPI3D
317 #define D4DLCD_SPIS_SPTEF SPI3S_SPTEF
320 #define LCD_READ_CMD_SUPPORT 0
322 #elif D4DLCD_COMM_HW == D4DLCD_COMM_HW_QSPI
324 #if D4DLCD_COMM_HW_ID == 0
325 #define D4DLCD_QSPI_QIR MCF_QSPI_QIR
326 #define D4DLCD_QSPI_QIR_WCEF MCF_QSPI_QIR_WCEF
327 #define D4DLCD_QSPI_QIR_ABRT MCF_QSPI_QIR_ABRT
328 #define D4DLCD_QSPI_QIR_SPIF MCF_QSPI_QIR_SPIF
329 #define D4DLCD_QSPI_QDLYR MCF_QSPI_QDLYR
330 #define D4DLCD_QSPI_QDLYR_SPE MCF_QSPI_QDLYR_SPE
331 #define D4DLCD_QSPI_QWR MCF_QSPI_QWR
332 #define D4DLCD_QSPI_QWR_HALT MCF_QSPI_QWR_HALT
333 #define D4DLCD_QSPI_QWR_CSIV MCF_QSPI_QWR_CSIV
334 #define D4DLCD_QSPI_QWR_NEWQP MCF_QSPI_QWR_NEWQP
335 #define D4DLCD_QSPI_QWR_ENDQP MCF_QSPI_QWR_ENDQP
336 #define D4DLCD_QSPI_QMR MCF_QSPI_QMR
337 #define D4DLCD_QSPI_QMR_MSTR MCF_QSPI_QMR_MSTR
338 #define D4DLCD_QSPI_QAR MCF_QSPI_QAR
339 #define D4DLCD_QSPI_QAR_CMD MCF_QSPI_QAR_CMD
340 #define D4DLCD_QSPI_QAR_TRANS MCF_QSPI_QAR_TRANS
341 #define D4DLCD_QSPI_QDR MCF_QSPI_QDR
342 #define D4DLCD_QSPI_QDR_BITSE MCF_QSPI_QDR_BITSE
343 #elif D4DLCD_COMM_HW_ID == 1
344 #define D4DLCD_QSPI_QIR MCF_QSPI1_QIR
345 #define D4DLCD_QSPI_QIR_WCEF MCF_QSPI1_QIR_WCEF
346 #define D4DLCD_QSPI_QIR_ABRT MCF_QSPI1_QIR_ABRT
347 #define D4DLCD_QSPI_QIR_SPIF MCF_QSPI1_QIR_SPIF
348 #define D4DLCD_QSPI_QDLYR MCF_QSPI1_QDLYR
349 #define D4DLCD_QSPI_QDLYR_SPE MCF_QSPI1_QDLYR_SPE
350 #define D4DLCD_QSPI_QWR MCF_QSPI1_QWR
351 #define D4DLCD_QSPI_QWR_HALT MCF_QSPI1_QWR_HALT
352 #define D4DLCD_QSPI_QWR_CSIV MCF_QSPI1_QWR_CSIV
353 #define D4DLCD_QSPI_QWR_NEWQP MCF_QSPI1_QWR_NEWQP
354 #define D4DLCD_QSPI_QWR_ENDQP MCF_QSPI1_QWR_ENDQP
355 #define D4DLCD_QSPI_QMR MCF_QSPI1_QMR
356 #define D4DLCD_QSPI_QMR_MSTR MCF_QSPI1_QMR_MSTR
357 #define D4DLCD_QSPI_QAR MCF_QSPI1_QAR
358 #define D4DLCD_QSPI_QAR_CMD MCF_QSPI1_QAR_CMD
359 #define D4DLCD_QSPI_QAR_TRANS MCF_QSPI1_QAR_TRANS
360 #define D4DLCD_QSPI_QDR MCF_QSPI1_QDR
361 #define D4DLCD_QSPI_QDR_BITSE MCF_QSPI1_QDR_BITSE
362 #elif D4DLCD_COMM_HW_ID == 2
363 #define D4DLCD_QSPI_QIR MCF_QSPI2_QIR
364 #define D4DLCD_QSPI_QIR_WCEF MCF_QSPI2_QIR_WCEF
365 #define D4DLCD_QSPI_QIR_ABRT MCF_QSPI2_QIR_ABRT
366 #define D4DLCD_QSPI_QIR_SPIF MCF_QSPI2_QIR_SPIF
367 #define D4DLCD_QSPI_QDLYR MCF_QSPI2_QDLYR
368 #define D4DLCD_QSPI_QDLYR_SPE MCF_QSPI2_QDLYR_SPE
369 #define D4DLCD_QSPI_QWR MCF_QSPI2_QWR
370 #define D4DLCD_QSPI_QWR_HALT MCF_QSPI2_QWR_HALT
371 #define D4DLCD_QSPI_QWR_CSIV MCF_QSPI2_QWR_CSIV
372 #define D4DLCD_QSPI_QWR_NEWQP MCF_QSPI2_QWR_NEWQP
373 #define D4DLCD_QSPI_QWR_ENDQP MCF_QSPI2_QWR_ENDQP
374 #define D4DLCD_QSPI_QMR MCF_QSPI2_QMR
375 #define D4DLCD_QSPI_QMR_MSTR MCF_QSPI2_QMR_MSTR
376 #define D4DLCD_QSPI_QAR MCF_QSPI2_QAR
377 #define D4DLCD_QSPI_QAR_CMD MCF_QSPI2_QAR_CMD
378 #define D4DLCD_QSPI_QAR_TRANS MCF_QSPI2_QAR_TRANS
379 #define D4DLCD_QSPI_QDR MCF_QSPI2_QDR
380 #define D4DLCD_QSPI_QDR_BITSE MCF_QSPI2_QDR_BITSE
383 #elif D4DLCD_COMM_HW == D4DLCD_COMM_HW_PAR_GPIO
384 #define LCD_READ_CMD_SUPPORT 1
387 #ifndef D4DLCD_INIT_RD
389 #error "The Macro D4DLCD_RD must be set in LCD low level driver configuration file."
391 #define D4DLCD_INIT_RD OUTPUT(D4DLCD_RD);
395 #ifndef D4DLCD_ASSERT_RD
397 #error "The Macro D4DLCD_RD must be set in LCD low level driver configuration file."
399 #define D4DLCD_ASSERT_RD RESET(D4DLCD_RD);
403 #ifndef D4DLCD_DEASSERT_RD
405 #error "The Macro D4DLCD_RD must be set in LCD low level driver configuration file."
407 #define D4DLCD_DEASSERT_RD SET(D4DLCD_RD);
412 #ifndef D4DLCD_INIT_WR
414 #error "The Macro D4DLCD_WR must be set in LCD low level driver configuration file."
416 #define D4DLCD_INIT_WR OUTPUT(D4DLCD_WR);
420 #ifndef D4DLCD_ASSERT_WR
422 #error "The Macro D4DLCD_WR must be set in LCD low level driver configuration file."
424 #define D4DLCD_ASSERT_WR RESET(D4DLCD_WR);
428 #ifndef D4DLCD_DEASSERT_WR
430 #error "The Macro D4DLCD_WR must be set in LCD low level driver configuration file."
432 #define D4DLCD_DEASSERT_WR SET(D4DLCD_WR);
437 #ifndef D4DLCD_INIT_DATA
439 #error "The Macro D4DLCD_DATA must be set in LCD low level driver configuration file."
441 #define D4DLCD_INIT_DATA OUTPUT_ALL(D4DLCD_DATA);
447 #define LCD_READ_CMD_SUPPORT 0
452 #error "The Macro D4DLCD_COMM_HW must be set in LCD low level configuration file."
D4D low level standard LCD Hardware interface API structure.