serial: add CONFIG_TTY_LAUNCH support

this allow user start new program from tty

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd
2021-12-15 13:40:45 +08:00
committed by Xiang Xiao
parent cff2bc05e0
commit 75aec04330
7 changed files with 200 additions and 3 deletions
+13
View File
@@ -495,6 +495,19 @@ void uart_recvchars_done(FAR uart_dev_t *dev);
void uart_reset_sem(FAR uart_dev_t *dev);
/****************************************************************************
* Name: uart_lanch
*
* Description:
* This function is called when user want lanch a new program by
* using a special char.
*
****************************************************************************/
#ifdef CONFIG_TTY_LAUNCH
void uart_launch(void);
#endif
#undef EXTERN
#if defined(__cplusplus)
}