fix(display): Tweaks to memory Kconfig settings.
* Don't default heap mempool by default now that there's a dedicated LVGL mempool * Set proper defaults for CiZ display hardware/custom screen. * Double the dedicated display thread stack size for CiZ.
This commit is contained in:
parent
2d6c9f797c
commit
4bcecd98f8
7 changed files with 12 additions and 7 deletions
|
@ -599,9 +599,6 @@ endmenu
|
||||||
#ZMK
|
#ZMK
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
config HEAP_MEM_POOL_SIZE
|
|
||||||
default 8192 if ZMK_DISPLAY
|
|
||||||
|
|
||||||
config KERNEL_BIN_NAME
|
config KERNEL_BIN_NAME
|
||||||
default "zmk"
|
default "zmk"
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,13 @@ config IL0323
|
||||||
config ZMK_DISPLAY_BLANK_ON_IDLE
|
config ZMK_DISPLAY_BLANK_ON_IDLE
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
# Needed for the IL0323 driver which allocs memory to clear the display
|
||||||
|
config HEAP_MEM_POOL_SIZE
|
||||||
|
default 1024
|
||||||
|
|
||||||
|
config LV_Z_MEM_POOL_SIZE
|
||||||
|
default 4096
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
menuconfig CUSTOM_WIDGET_BATTERY_STATUS
|
menuconfig CUSTOM_WIDGET_BATTERY_STATUS
|
||||||
|
|
|
@ -44,7 +44,7 @@ CONFIG_ZMK_BLE=y
|
||||||
|
|
||||||
# enable display drivers
|
# enable display drivers
|
||||||
CONFIG_ZMK_DISPLAY_WORK_QUEUE_DEDICATED=y
|
CONFIG_ZMK_DISPLAY_WORK_QUEUE_DEDICATED=y
|
||||||
CONFIG_ZMK_DISPLAY_DEDICATED_THREAD_STACK_SIZE=2048
|
CONFIG_ZMK_DISPLAY_DEDICATED_THREAD_STACK_SIZE=4096
|
||||||
CONFIG_LV_Z_BITS_PER_PIXEL=1
|
CONFIG_LV_Z_BITS_PER_PIXEL=1
|
||||||
CONFIG_LV_COLOR_DEPTH_1=y
|
CONFIG_LV_COLOR_DEPTH_1=y
|
||||||
CONFIG_LV_DPI_DEF=145
|
CONFIG_LV_DPI_DEF=145
|
||||||
|
|
|
@ -44,7 +44,7 @@ CONFIG_ZMK_BLE=y
|
||||||
|
|
||||||
# enable display drivers
|
# enable display drivers
|
||||||
CONFIG_ZMK_DISPLAY_WORK_QUEUE_DEDICATED=y
|
CONFIG_ZMK_DISPLAY_WORK_QUEUE_DEDICATED=y
|
||||||
CONFIG_ZMK_DISPLAY_DEDICATED_THREAD_STACK_SIZE=2048
|
CONFIG_ZMK_DISPLAY_DEDICATED_THREAD_STACK_SIZE=4096
|
||||||
CONFIG_LV_Z_BITS_PER_PIXEL=1
|
CONFIG_LV_Z_BITS_PER_PIXEL=1
|
||||||
CONFIG_LV_COLOR_DEPTH_1=y
|
CONFIG_LV_COLOR_DEPTH_1=y
|
||||||
CONFIG_LV_DPI_DEF=145
|
CONFIG_LV_DPI_DEF=145
|
||||||
|
|
|
@ -40,7 +40,7 @@ CONFIG_ZMK_BLE=y
|
||||||
|
|
||||||
# enable display drivers
|
# enable display drivers
|
||||||
CONFIG_ZMK_DISPLAY_WORK_QUEUE_DEDICATED=y
|
CONFIG_ZMK_DISPLAY_WORK_QUEUE_DEDICATED=y
|
||||||
CONFIG_ZMK_DISPLAY_DEDICATED_THREAD_STACK_SIZE=2048
|
CONFIG_ZMK_DISPLAY_DEDICATED_THREAD_STACK_SIZE=4096
|
||||||
CONFIG_LV_Z_BITS_PER_PIXEL=1
|
CONFIG_LV_Z_BITS_PER_PIXEL=1
|
||||||
CONFIG_LV_COLOR_DEPTH_1=y
|
CONFIG_LV_COLOR_DEPTH_1=y
|
||||||
CONFIG_LV_DPI_DEF=145
|
CONFIG_LV_DPI_DEF=145
|
||||||
|
|
|
@ -40,7 +40,7 @@ CONFIG_ZMK_BLE=y
|
||||||
|
|
||||||
# enable display drivers
|
# enable display drivers
|
||||||
CONFIG_ZMK_DISPLAY_WORK_QUEUE_DEDICATED=y
|
CONFIG_ZMK_DISPLAY_WORK_QUEUE_DEDICATED=y
|
||||||
CONFIG_ZMK_DISPLAY_DEDICATED_THREAD_STACK_SIZE=2048
|
CONFIG_ZMK_DISPLAY_DEDICATED_THREAD_STACK_SIZE=4096
|
||||||
CONFIG_LV_Z_BITS_PER_PIXEL=1
|
CONFIG_LV_Z_BITS_PER_PIXEL=1
|
||||||
CONFIG_LV_COLOR_DEPTH_1=y
|
CONFIG_LV_COLOR_DEPTH_1=y
|
||||||
CONFIG_LV_DPI_DEF=145
|
CONFIG_LV_DPI_DEF=145
|
||||||
|
|
|
@ -177,6 +177,7 @@ static int il0323_clear_and_write_buffer(const struct device *dev, uint8_t patte
|
||||||
|
|
||||||
line = k_malloc(IL0323_NUMOF_PAGES);
|
line = k_malloc(IL0323_NUMOF_PAGES);
|
||||||
if (line == NULL) {
|
if (line == NULL) {
|
||||||
|
LOG_ERR("Failed to allocate memory for the clear");
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue