-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli.h
More file actions
34 lines (26 loc) · 1016 Bytes
/
cli.h
File metadata and controls
34 lines (26 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
Command-line interface module - defines CLI commands
in an inner command table (add your own commands in the
implementation) and wraps the UcTerm terminal module,
coupling it with a physical interface of your choice
(provide your own implementation inside).
Supports -h, --help or "help <command>" to show info
on a specific command.
You MUST call CliInit before usage.
To ensure smooth CLI behavior without lags, make sure
that you call CliUpdate frequently enough (at least 3-5 Hz
for normal typing and 50Hz for press-and-hold key).
Created on: Jan 22, 2026
Author: Alexander Korostelin (4d.41.49.4c@gmail.com)
*/
#ifndef CLI_H_
#define CLI_H_
/// @brief Init the UcTerm wrapper.
/// This must be called prior to using any functions
/// of the package.
void CliInit(void);
/// @brief Consume the input character from the UART buffer
/// and pass it to the UcTerm wrapper.
/// Call this in a loop or a timer interrupt.
void CliUpdate(void);
#endif // CLI_H_