nuttx-apps/system/lzf/Kconfig
Gregory Nutt d35a3e847e apps/system/lzf:
- The maximum block size is now configuration setting in order to give finer control over memory usage.
  - The compression/decompression buffers have been moved out the stack and are now global variables.  This eliminates the need to set large stack sizes to use this utility.
  - Added semaphore protection of all global variables for the case of the FLAT or PROTECTED builds.  Unlike the KERNEL build, the same global variables will be used by each instance of the LZF utility.  If you want thread safety, then you must either (a) serialize all access to the global variables, or (b) pack the global variables into a structure and allocate that structure on each execution of lzf_main().
2018-03-17 15:35:19 -06:00

49 lines
1.2 KiB
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config SYSTEM_LZF
bool "LZF compression tool"
default n
depends on LIBC_LZF
---help---
Enable theLZF compression tool
if SYSTEM_LZF
config SYSTEM_LZF_BLOG
int "Log2 of block size"
default 10
range 9 12
---help---
This example uses two buffers of size a little more than
(1 << CONFIG_SYSTEM_LZF_BLOG) to compress and decompress data in
chunks. Slightly better compression should be obtainable with larger
chunks.
NOTE: This is a static memory allocation and will take add a little
more than 2 * (1 << CONFIG_SYSTEM_LZF_BLOG) bytes to the size of the
.bss section used by the program.
NOTE: This represents a maximum blocksize. The use may select a
smaller blocksize using the 'lzf -b' option.
config SYSTEM_LZF_PROGNAME
string "Program name"
default "lzf"
depends on BUILD_KERNEL
---help---
This is the name of the program that will be use when the NSH ELF
program is installed.
config SYSTEM_LZF_PRIORITY
int "LZF tool task priority"
default 100
config SYSTEM_LZF_STACKSIZE
int "LZF tool stack size"
default 2048
endif