1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
27
28
31
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
63
64
65
66
67
#pragma once
#include <protocomm.h>
#ifdef __cplusplus
extern "C" {
#endif
#define PROTOCOMM_CONSOLE_DEFAULT_CONFIG() { \
.stack_size = 4096, \
.task_priority = tskIDLE_PRIORITY + 3, \
}...
/* ... */
typedef struct {
size_t stack_size;
unsigned task_priority;
}{ ... } protocomm_console_config_t;
/* ... */
esp_err_t protocomm_console_start(protocomm_t *pc, const protocomm_console_config_t *config);
/* ... */
esp_err_t protocomm_console_stop(protocomm_t *pc);
#ifdef __cplusplus
}{...}
#endif