@@ -16,107 +16,9 @@ module = MCUMGR
1616module-str = mcumgr
1717source "subsys/logging/Kconfig.template.log_config"
1818
19- config MCUMGR_TRANSPORT_WORKQUEUE_STACK_SIZE
20- int "MCUmgr transport workqueue stack size"
21- default 2048
22- help
23- Stack size of the MCUmgr for transport subsystem work queue.
24-
25- config MCUMGR_TRANSPORT_WORKQUEUE_THREAD_PRIO
26- int "MCUmgr transport workqueue thread priority"
27- default 3
28- help
29- Scheduling priority of the MCUmgr transport subsystem work queue.
30-
3119rsource "mgmt/Kconfig"
3220
33- config MCUMGR_SMP_CBOR_MAX_MAIN_MAP_ENTRIES
34- int "Number of predicted maximum entries to main response map"
35- default 15
36- help
37- This is number of predicted entries in main response map,
38- the one that encapsulates everything within response.
39- This value is used by zcbor to predict needed map encoding,
40- and does not affect memory allocation or usage.
41- Builtin command processors rarely add large amounts of
42- data directly to main map, creating sub-maps instead so
43- the default value works fine with them.
44- If your app directly adds fields to main map, without
45- encapsulating them, you may want to increase this value
46- in case when encoding starts to fail.
47-
48- config MCUMGR_SMP_CBOR_MIN_DECODING_LEVELS
49- int
50- help
51- Minimal decoding levels, map/list encapsulation, required
52- to be supported by zcbor decoding of SMP responses
53- is auto genereated from MCUMGR_SMP_CBOR_MIN_DECODING_LEVEL_? options.
54- A group or command that adds additional maps/lists above the
55- base map, which is already taken into account, should
56- select one of the MCUMGR_SMP_CBOR_MIN_DECODING_LEVEL_?.
57- default 5 if MCUMGR_SMP_CBOR_MIN_DECODING_LEVEL_5
58- default 4 if MCUMGR_SMP_CBOR_MIN_DECODING_LEVEL_4
59- default 3 if MCUMGR_SMP_CBOR_MIN_DECODING_LEVEL_3
60- default 2 if MCUMGR_SMP_CBOR_MIN_DECODING_LEVEL_2
61- default 1 if MCUMGR_SMP_CBOR_MIN_DECODING_LEVEL_1
62- default 0
63-
64-
65- config MCUMGR_SMP_CBOR_MIN_DECODING_LEVEL_1
66- bool
67-
68- config MCUMGR_SMP_CBOR_MIN_DECODING_LEVEL_2
69- bool
70-
71- config MCUMGR_SMP_CBOR_MIN_DECODING_LEVEL_3
72- bool
73-
74- config MCUMGR_SMP_CBOR_MIN_DECODING_LEVEL_4
75- bool
76-
77- config MCUMGR_SMP_CBOR_MIN_DECODING_LEVEL_5
78- bool
79-
80- config MCUMGR_SMP_CBOR_MAX_DECODING_LEVELS
81- int "Number of map/list encapsulations allowed by SMP encoding"
82- range MCUMGR_SMP_CBOR_MIN_DECODING_LEVELS 15
83- default MCUMGR_SMP_CBOR_MIN_DECODING_LEVELS
84- help
85- This is a maximum number of levels of maps/lists that will
86- be expected to be decoded within different command groups.
87- SMP commands/groups that provide no CBOR encoded payload
88- have no requirements.
89- Commands that provide CBOR payload require at least 1 level,
90- and additional levels for each map/list encapsulation.
91- For example if command accepts payload of map of parameters
92- it will need 2 levels.
93- This number translates to zcbor backup states, it increases
94- size of cbor_nb_reader structure by zcbor_state_t size per
95- one unit selected here.
96-
97- config MCUMGR_MGMT_NOTIFICATION_HOOKS
98- bool "MCUmgr notification hook support"
99- help
100- With this enabled, applications and parts of code can register for MCUmgr event
101- notifications which will result in callbacks when a registered event occurs. Note that
102- this enables the base notification functionality but itself does not enable any
103- notifications, which must be enabled by selecting other Kconfig options.
104-
105- To enable notifications in code, mgmt_callback_register() must be called with the
106- callback function and events that want to be received. Multiple handlers can be
107- registered and will all be called when registered events occur.
108-
109- Some callbacks support notifying the calling function of a status, in which to accept
110- or decline the current operation, by returning false this will signal to the calling
111- function that the request should be denied, for informal-only notifications or
112- acceptable, true must be returned by all the registered notification handlers.
113-
114- config MCUMGR_SMP_COMMAND_STATUS_HOOKS
115- bool "SMP command status hooks"
116- depends on MCUMGR_MGMT_NOTIFICATION_HOOKS
117- help
118- This will enable SMP command status notification hooks for when an SMP message is
119- received or processed.
21+ rsource "smp/Kconfig"
12022
12123config MCUMGR_SMP_LEGACY_RC_BEHAVIOUR
12224 bool "Legacy rc (result code) response behaviour"
@@ -142,8 +44,4 @@ rsource "transport/Kconfig"
14244
14345endmenu
14446
145- module = MCUMGR_TRANSPORT
146- module-str = mcumgr_transport
147- source "subsys/logging/Kconfig.template.log_config"
148-
14947endif # MCUMGR
0 commit comments