forked from espressif/esp-bsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKconfig
153 lines (134 loc) · 5.42 KB
/
Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
menu "Board Support Package"
config BSP_ERROR_CHECK
bool "Enable error check in BSP"
default y
help
Error check assert the application before returning the error code.
menu "I2C"
config BSP_I2C_NUM
int "I2C peripheral index"
default 1
range 0 1
help
ESP32S3 has two I2C peripherals, pick the one you want to use.
config BSP_I2C_FAST_MODE
bool "Enable I2C fast mode"
default y
help
I2C has two speed modes: normal (100kHz) and fast (400kHz).
config BSP_I2C_CLK_SPEED_HZ
int
default 400000 if BSP_I2C_FAST_MODE
default 100000
endmenu
menu "LCD"
choice BSP_LCD_SUB_BOARD
prompt "Select Sub board"
default BSP_LCD_SUB_BOARD_800_480
config BSP_LCD_SUB_BOARD_480_480
bool "Sub board 2 with 480x480 RGB LCD"
config BSP_LCD_SUB_BOARD_800_480
bool "Sub board 3 with 800x480 RGB LCD"
endchoice
config BSP_LCD_RGB_BUFFER_NUMS
int "Set number of frame buffers"
depends on BSP_LCD_SUB_BOARD_480_480 || BSP_LCD_SUB_BOARD_800_480
default 1
range 1 3
help
Let RGB LCD driver create a specified number of frame-size buffers. Only when it is set to multiple can the avoiding tearing be turned on.
choice BSP_LCD_RGB_REFRESH_MODE
prompt "Select the refresh mode for RGB LCD"
depends on BSP_LCD_SUB_BOARD_480_480 || BSP_LCD_SUB_BOARD_800_480
default BSP_LCD_RGB_REFRESH_AUTO
config BSP_LCD_RGB_REFRESH_AUTO
bool "Auto refresh mode"
help
Refresh the LCD in the most common way.
config BSP_LCD_RGB_REFRESH_MANUALLY
bool "Manually refresh mode"
help
Refresh the LCD in a specific task instead of automatically refreshing.
config BSP_LCD_RGB_BOUNCE_BUFFER_MODE
bool "Bounce buffer mode"
help
Enable bounce buffer mode can achieve higher PCLK frequency at the cost of higher CPU consumption.
endchoice
config BSP_LCD_RGB_REFRESH_TASK_PERIOD
int "Minimum Period(ms) of LCD refreshing task"
depends on BSP_LCD_RGB_REFRESH_MANUALLY
default 10
help
This configuration does not necessarily represent the actual refresh cycle of the RGB interface.
config BSP_LCD_RGB_REFRESH_TASK_PRIORITY
int "Priority of LCD refreshing task"
depends on BSP_LCD_RGB_REFRESH_MANUALLY
default 2
config BSP_LCD_RGB_BOUNCE_BUFFER_HEIGHT
depends on BSP_LCD_RGB_BOUNCE_BUFFER_MODE
int "Bounce buffer height"
default 10
help
Height of bounce buffer. The width of the buffer is the same as that of the LCD.
endmenu
menu "Display"
config BSP_DISPLAY_LVGL_TASK_PRIORITY
int "LVGL task priority"
default 2
help
The Board Support Package will create a task that will periodically handle LVGL operation in lv_timer_handler().
config BSP_DISPLAY_LVGL_TASK_DELAY
int "LVGL task minimum delay time (ms)"
default 10
range 1 100
help
Minimum delay time for LVGL task. It should be larger if the task watchdog is triggered frequently.
config BSP_DISPLAY_LVGL_TASK_STACK_SIZE
int "LVGL task stack size (KB)"
default 4
help
Size(KB) of LVGL task stack.
config BSP_DISPLAY_LVGL_TICK
int "LVGL tick period"
default 5
range 1 100
help
Period of LVGL tick timer.
config BSP_DISPLAY_LVGL_AVOID_TEAR
bool "Avoid tearing effect"
depends on BSP_LCD_RGB_BUFFER_NUMS > 1
default "n"
help
Avoid tearing effect through LVGL buffer mode and double frame buffers of RGB LCD. This feature is only available for RGB LCD.
choice BSP_DISPLAY_LVGL_MODE
depends on BSP_DISPLAY_LVGL_AVOID_TEAR
prompt "Select LVGL buffer mode"
default BSP_DISPLAY_LVGL_FULL_REFRESH
config BSP_DISPLAY_LVGL_FULL_REFRESH
bool "Full refresh"
config BSP_DISPLAY_LVGL_DIRECT_MODE
bool "Direct mode"
endchoice
choice BSP_DISPLAY_LVGL_BUF_CAPS
depends on !BSP_DISPLAY_LVGL_AVOID_TEAR
prompt "Select LVGL buffer memory capability"
default BSP_DISPLAY_LVGL_INTERNAL
config BSP_DISPLAY_LVGL_PSRAM
bool "PSRAM memory"
config BSP_DISPLAY_LVGL_INTERNAL
bool "Internal memory"
endchoice
config BSP_DISPLAY_LVGL_BUF_HEIGHT
depends on !BSP_DISPLAY_LVGL_AVOID_TEAR
int "LVGL buffer height"
default 100
help
Height of LVGL buffer. The width of the buffer is the same as that of the LCD.
endmenu
config BSP_I2S_NUM
int "I2S peripheral index"
default 1
range 0 1
help
ESP32S3 has two I2S peripherals, pick the one you want to use.
endmenu