File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
features/nanostack/mbed-mesh-api Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 9
9
"help" : " Use `malloc()` for reserving the Nanostack's internal heap." ,
10
10
"value" : false
11
11
},
12
+ "heap-stat-info" : {
13
+ "help" : " Pointer to heap statistics `mem_stat_t` storage." ,
14
+ "value" : " NULL"
15
+ },
16
+ "heap-stat-info-definition" : {
17
+ "help" : " Definition of heap statistics `mem_stat_t` storage." ,
18
+ "value" : null
19
+ },
12
20
"6lowpan-nd-channel-mask" : {
13
21
"help" : " Channel mask, bit-mask of channels to use. [0-0x07fff800]" ,
14
22
"value" : " 0x7fff800"
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ static uint8_t app_stack_heap[MBED_CONF_MBED_MESH_API_HEAP_SIZE + 1];
36
36
static uint8_t * app_stack_heap ;
37
37
#endif
38
38
static bool mesh_initialized = false;
39
+ #ifdef MBED_CONF_MBED_MESH_API_HEAP_STAT_INFO_DEFINITION
40
+ MBED_CONF_MBED_MESH_API_HEAP_STAT_INFO_DEFINITION ;
41
+ #endif
39
42
40
43
/*
41
44
* Heap error handler, called when heap problem is detected.
@@ -66,7 +69,7 @@ void mesh_system_init(void)
66
69
MBED_ASSERT (app_stack_heap );
67
70
#endif
68
71
ns_hal_init (app_stack_heap , MBED_CONF_MBED_MESH_API_HEAP_SIZE ,
69
- mesh_system_heap_error_handler , NULL );
72
+ mesh_system_heap_error_handler , MBED_CONF_MBED_MESH_API_HEAP_STAT_INFO );
70
73
eventOS_scheduler_mutex_wait ();
71
74
net_init_core ();
72
75
eventOS_scheduler_mutex_release ();
You can’t perform that action at this time.
0 commit comments