summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/system/hex2bin/Kconfig12
-rw-r--r--apps/system/hex2bin/Makefile7
2 files changed, 17 insertions, 2 deletions
diff --git a/apps/system/hex2bin/Kconfig b/apps/system/hex2bin/Kconfig
index ae01cfed2..58a316d49 100644
--- a/apps/system/hex2bin/Kconfig
+++ b/apps/system/hex2bin/Kconfig
@@ -22,6 +22,18 @@ config SYSTEM_HEX2BIN_BUILTIN
if SYSTEM_HEX2BIN_BUILTIN
+config SYSTEM_HEX2BIN_STACKSIZE
+ int "Program stack size"
+ default 1536
+ ---help---
+ The size of stack allocated for the hex2bin task.
+
+config SYSTEM_HEX2BIN_PRIORITY
+ int "Program priority"
+ default 100
+ ---help---
+ The priority of the hex2bin task.
+
config SYSTEM_HEX2BIN_BASEADDR
hex "Binary base address"
default 0x00000000
diff --git a/apps/system/hex2bin/Makefile b/apps/system/hex2bin/Makefile
index 7b9acbade..4c29339aa 100644
--- a/apps/system/hex2bin/Makefile
+++ b/apps/system/hex2bin/Makefile
@@ -65,8 +65,11 @@ endif
ROOTDEPPATH = --dep-path .
VPATH =
-PRIORITY = SCHED_PRIORITY_DEFAULT
-STACKSIZE = 768
+CONFIG_SYSTEM_HEX2BIN_STACKSIZE ?= 2536
+CONFIG_SYSTEM_HEX2BIN_PRIORITY ?= 100
+
+STACKSIZE = $(CONFIG_SYSTEM_HEX2BIN_STACKSIZE)
+PRIORITY = $(CONFIG_SYSTEM_HEX2BIN_PRIORITY)
# Build targets