AKOS  v1.0.0
Documentation
Loading...
Searching...
No Matches
shell.h
1#ifndef AKOS_SHELL_H
2#define AKOS_SHELL_H
3
4#ifdef __cplusplus
5extern "C"
6{
7#endif
8
9#include <stdint.h>
10
11#include "config.h"
12
13typedef int (*akos_shell_handler_t)(int argc, char **argv);
14
15typedef struct akos_shell_cmd
16{
17 const char *path;
18 const char *help;
19 akos_shell_handler_t handler;
21
22#define AKOS_SHELL_CMD_DEFINE(_name, _path, _help, _handler) \
23 const akos_shell_cmd_t _name __attribute__((used, section("shell_cmd_desc"))) = \
24 { \
25 .path = (_path), \
26 .help = (_help), \
27 .handler = (_handler), \
28 }
29
30void akos_shell_feature_init(void);
31void akos_shell_thread(void *p_arg);
32void akos_shell_rx_isr(uint8_t byte);
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif /* AKOS_SHELL_H */
Build-time configuration macros for AK-mOS.