- app_ota.c: after END ok, wait until the RSP is consumed by the host (BLE e0005 read-out / UART TX done) plus 300ms grace before resetting, 2s timeout fallback; polled from the BLE schedule task (rwip_schedule must keep running for the ATT read to be processed) - main.c: app_ota_reset_poll() in the BLE schedule task loop - docs: ble_protocol.md 6.6 note, dev log section 43, AGENTS.md sync
29 lines
700 B
C
29 lines
700 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);
|
|
|
|
/* Switch the UART frontend into OTA binary frame mode (CLI "ota" command). */
|
|
void app_cli_ota_mode_enter(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __APP_CLI_H__ */
|