1# Copyright (c) 2022 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4config ZEPHYR_ZCBOR_MODULE
5	bool
6
7config ZCBOR
8	bool "zcbor CBOR library"
9	depends on ZEPHYR_ZCBOR_MODULE
10	help
11	  zcbor CBOR encoder/decoder library
12
13if ZCBOR
14
15config ZCBOR_CANONICAL
16	bool "Produce canonical CBOR"
17	help
18	  Enabling this will prevent zcbor from creating lists and maps with
19	  indefinite-length arrays (it will still decode them properly).
20
21config ZCBOR_STOP_ON_ERROR
22	bool "Stop on error when processing (Must also be enabled in state var)"
23	help
24	  Make the stop_on_error functionality available. Note that it still
25	  needs to be enabled in the state variable
26	  (`state->constant_state->stop_on_error`).
27	  This makes all functions abort their execution if called when an error
28	  has already happened.
29
30config ZCBOR_VERBOSE
31	bool "Make zcbor code print messages"
32
33config ZCBOR_ASSERT
34	def_bool ASSERT
35
36config ZCBOR_BIG_ENDIAN
37	def_bool BIG_ENDIAN
38
39config ZCBOR_MAX_STR_LEN
40	int "Default max length when calling zcbor_tstr_put_term()"
41	default 256
42	help
43	  This can be manually used if no other value is readily available, but
44	  using this is discouraged.
45
46endif # ZCBOR
47