summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.tasks
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2021-04-01 13:37:00 +0000
committerCommit Bot <commit-bot@chromium.org>2021-04-01 19:55:38 +0000
commita44e7f803e7552b189785b3a2d7127b750661f31 (patch)
tree84fec9a0377b287616ee5bb2d700fbccef630c58 /zephyr/Kconfig.tasks
parent8199d8c349e7ec86d9b67ef73ee7b62beb74b5a4 (diff)
downloadchrome-ec-a44e7f803e7552b189785b3a2d7127b750661f31.tar.gz
zephyr: config: change stack configs from hex to int
Configuration entries for stack sizes in Zephyr (SYSTEM_WORKQUEUE_STACK_SIZE, ISR_STACK_SIZE etc...) are all as integer, and the tooling around it (the "kernel stacks" shell command) works in integers too. Also using "hex" Kconfig entries implies the "0x" prefix, making it easy to inadvertently typing a decimal number and have it transparently converted to hexadecimal. Converting the EC Zephyr Kconfig entries to int to make this coherent and avoid potential mistakes. BUG=none BRANCH=none TEST=build and check SRAM footprint, no change Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I8f55a0741f1d09945f0b097355d9413184d8f262 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2799679 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.tasks')
-rw-r--r--zephyr/Kconfig.tasks48
1 files changed, 24 insertions, 24 deletions
diff --git a/zephyr/Kconfig.tasks b/zephyr/Kconfig.tasks
index c86f67409a..35dfc1c2f1 100644
--- a/zephyr/Kconfig.tasks
+++ b/zephyr/Kconfig.tasks
@@ -18,8 +18,8 @@ config HAS_TASK_CHARGER
if HAS_TASK_CHARGER
config TASK_CHARGER_STACK_SIZE
- hex "Stack size"
- default 0x400 # EC uses VENTI_TASK_STACK_SIZE which is 896
+ int "Stack size"
+ default 1024 # EC uses VENTI_TASK_STACK_SIZE which is 896
help
The stack size of the charger task.
@@ -39,8 +39,8 @@ config HAS_TASK_CHG_RAMP
if HAS_TASK_CHG_RAMP
config TASK_CHG_RAMP_STACK_SIZE
- hex "Stack size"
- default 0x300 # EC uses TASK_STACK_SIZE which is 512 for npcx
+ int "Stack size"
+ default 768 # EC uses TASK_STACK_SIZE which is 512 for npcx
help
The stack size of the charger task.
@@ -61,8 +61,8 @@ config HAS_TASK_CHIPSET
if HAS_TASK_CHIPSET
config TASK_CHIPSET_STACK_SIZE
- hex "Stack size"
- default 0x400
+ int "Stack size"
+ default 1024
help
The stack size of the power button task.
@@ -79,8 +79,8 @@ config HAS_TASK_HOOKS
if HAS_TASK_HOOKS
config TASK_HOOKS_STACK_SIZE
- hex "Stack size"
- default 0x400
+ int "Stack size"
+ default 1024
help
The stack size of the hooks task.
@@ -100,8 +100,8 @@ config HAS_TASK_HOSTCMD
if HAS_TASK_HOSTCMD
config TASK_HOSTCMD_STACK_SIZE
- hex "Stack size"
- default 0x400
+ int "Stack size"
+ default 1024
help
The size of the host-command task stack.
@@ -119,8 +119,8 @@ config HAS_TASK_KEYPROTO
if HAS_TASK_KEYPROTO
config TASK_KEYPROTO_STACK_SIZE
- hex "Stack size"
- default 0x300
+ int "Stack size"
+ default 768
help
The stack size of the keyproto task.
@@ -138,8 +138,8 @@ config HAS_TASK_KEYSCAN
if HAS_TASK_KEYSCAN
config TASK_KEYSCAN_STACK_SIZE
- hex "Stack size"
- default 0x300
+ int "Stack size"
+ default 768
help
The stack size of the keyscan task.
@@ -155,8 +155,8 @@ config HAS_TASK_MOTIONSENSE
if HAS_TASK_MOTIONSENSE
config TASK_MOTIONSENSE_STACK_SIZE
- hex "motionsense task stack size"
- default 0x1000
+ int "motionsense task stack size"
+ default 4096
help
The size of the motion sense task stack.
@@ -176,8 +176,8 @@ config HAS_TASK_POWERBTN
if HAS_TASK_POWERBTN
config TASK_POWERBTN_STACK_SIZE
- hex "Stack size"
- default 0x400
+ int "Stack size"
+ default 1024
help
The stack size of the power-button task.
@@ -196,8 +196,8 @@ config HAS_TASK_PD_C0
if HAS_TASK_PD_C0
config TASK_PD_STACK_SIZE
- hex "Stack size"
- default 0x400 # EC uses VENTI_TASK_STACK_SIZE which is 896
+ int "Stack size"
+ default 1024 # EC uses VENTI_TASK_STACK_SIZE which is 896
help
The stack size of the PD_Cx tasks.
@@ -234,8 +234,8 @@ config HAS_TASK_PD_INT_C0
if HAS_TASK_PD_INT_C0
config TASK_PD_INT_STACK_SIZE
- hex "Stack size"
- default 0x500
+ int "Stack size"
+ default 1280
help
The stack size of the PD_Cn_INT tasks.
@@ -272,8 +272,8 @@ config HAS_TASK_USB_CHG_P0
if HAS_TASK_USB_CHG_P0
config TASK_USB_CHG_STACK_SIZE
- hex "(all ports) task stack size"
- default 0x500 # EC uses VENTI_TASK_STACK_SIZE which is 896
+ int "(all ports) task stack size"
+ default 1280 # EC uses VENTI_TASK_STACK_SIZE which is 896
help
The stack size of the USB charger task. If there are multiple tasks,
each one gets the same stack size.