app_qspi_user_config.h
Go to the documentation of this file.
1 /****************************************************
2  * Config for special User Scenarios.
3  * Modify By Users
4  *
5  ********
6  * This file is only included by app_qspi.h
7  ****************************************************/
8 
9 #ifndef __APP_QSPI_USER_CONFIG_H__
10 #define __APP_QSPI_USER_CONFIG_H__
11 
12 /*********************************************************************
13  * PART 1: Enable/Disable Enhanced Application Interface
14  *********************************************************************/
15 
16 /*
17  * @brief:
18  * Supporting to Draw the whole Screen using Spliced way with two independent framebuffers in Synchronous mode
19  * @note:
20  * 1 - Enable the corresponding API
21  * 0 - Disable the corresponding API
22  */
23 #define QSPI_SYNC_SCROLL_DRAW_SCREEN_SUPPORT 1u
24 
25 
26 /*
27  * @brief:
28  * Supporting to Draw the whole Screen using Spliced way with two independent framebuffers in Asynchronous mode,
29  * The API has handled the continuous async call already,
30  * User can get the event result (APP_QSPI_EVT_ASYNC_WR_SCRN_CPLT or APP_QSPI_EVT_ASYNC_WR_SCRN_FAIL)
31  * from the Registered callback
32  *
33  * @note:
34  * 1 - Enable the corresponding API
35  * 0 - Disable the corresponding API
36  */
37 
38 #define QSPI_ASYNC_SCROLL_DRAW_SCREEN_SUPPORT 1u
39 
40 
41 /*
42  * @brief:
43  * Supporting to Draw the whole Screen using linked list way with serval independent framebuffers in Asynchronous mode,
44  * The API has handled the continuous async call already,
45  * User can get the event result (APP_QSPI_EVT_ASYNC_WR_SCRN_CPLT or APP_QSPI_EVT_ASYNC_WR_SCRN_FAIL)
46  * from the Registered callback
47  *
48  * @note:
49  * 1 - Enable the corresponding API
50  * 0 - Disable the corresponding API
51  */
52 #define QSPI_ASYNC_VERI_LINK_DRAW_SCREEN_SUPPORT 1u
53 
54 /*
55  * @brief:
56  * Supporting to Write the QSPI-PSRAM device with DMA LLP Mode
57  *
58  * @note:
59  * 1 - Enable the corresponding API
60  * 0 - Disable the corresponding API
61  */
62 #define QSPI_LLP_WRITE_PSRAM_SUPPORT 1u
63 
64 /*
65  * @brief:
66  * Supporting to Blit the Rectangular area with LLP/SG Feature
67  *
68  * @note:
69  * 1 - Enable the corresponding API
70  * 0 - Disable the corresponding API
71  */
72 #define QSPI_BLIT_RECT_IMAGE_SUPPORT 0u
73 
74 
75 /*********************************************************************
76  * PART 2: Memory Adjust Setting
77  *********************************************************************/
78 /*
79  * @brief:
80  * DO NOT Change This Define
81  *
82  */
83 #define QSPI_DMA_LLP_FEATUTE_SUPPORT (QSPI_SYNC_SCROLL_DRAW_SCREEN_SUPPORT || \
84  QSPI_ASYNC_SCROLL_DRAW_SCREEN_SUPPORT || \
85  QSPI_ASYNC_VERI_LINK_DRAW_SCREEN_SUPPORT || \
86  QSPI_LLP_WRITE_PSRAM_SUPPORT )
87 
88 /*
89  * @brief:
90  * Max blocks for LLP write, the bigger, gains higher speed and costs more ram space
91  * The proper range is [16, 64], and be times of 4
92  *
93  */
94 #define DMA_LLP_BLOCKS_FOR_WRITE 48u
95 
96 /*
97  * @brief:
98  * Max blocks for LLP Blit, the bigger, gains higher speed and costs more ram space
99  * The proper range is [16, 64], and be times of 4
100  *
101  */
102 #define DMA_LLP_BLOCKS_FOR_BLIT 32u
103 
104 
105 #endif /*__APP_QSPI_USER_CONFIG_H__*/
106