26 lines
585 B
C
26 lines
585 B
C
/**
|
|
* @file app_cli.h
|
|
* @brief CLI framework: independent task for command parsing, execution
|
|
* and response over USART1 (and BLE via AppCli_InputBytes injection).
|
|
*/
|
|
#ifndef __APP_CLI_H__
|
|
#define __APP_CLI_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
|
|
/* Create the CLI task. Called once from main() before the scheduler starts. */
|
|
void AppCli_Init(void);
|
|
|
|
/* Feed CLI input bytes from a non-UART source (BLE downlink, task context). */
|
|
void AppCli_InputBytes(const uint8_t* data, uint16_t len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __APP_CLI_H__ */
|