This commit increases the stack size for thread handling the host commands requests. It was required due to the stack being corrupted using earlier default size. The thread priority is now configurable using the Kconfig. It also adds alignment to the tx_buffer since the npcx MCU requires it to work correctly and removes clearing the buffer before use due to the hard time requirements. Tests checking if buffers are cleared are also removed. Signed-off-by: Michał Barnaś <mb@semihalf.com>
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
# Host command handler functionality
|
|
|
|
# Copyright (c) 2020 Google LLC
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menu "Host command handler subsystem"
|
|
|
|
config EC_HOST_CMD
|
|
bool "Support Embedded Controller host command handler subsystem"
|
|
help
|
|
Enable host command processing for embedded controllers on notebook
|
|
computers. Enabling this option requires specifying a chosen
|
|
zephyr,ec-host-interface device as the ec host command peripheral that
|
|
receive incoming host command requests to process.
|
|
|
|
if EC_HOST_CMD
|
|
|
|
config EC_HOST_CMD_HANDLER_STACK_SIZE
|
|
int "Stack size for the EC host command handler thread"
|
|
default 800
|
|
|
|
config EC_HOST_CMD_HANDLER_TX_BUFFER
|
|
int "Buffer size in bytes for TX buffer shared by all EC host commands"
|
|
default 256
|
|
|
|
config EC_HOST_CMD_HANDLER_PRIO
|
|
int "Priority of host command task"
|
|
default 13
|
|
help
|
|
Priority of the kernel task that handles the host commands.
|
|
If the priority is too low (high in value), the host commands handler may be unable to
|
|
process the command on time and the AP will abort the waiting for response and be unable
|
|
to boot the system properly.
|
|
|
|
endif # EC_HOST_CMD
|
|
|
|
endmenu
|