mirror of
https://gitee.com/moluo-tech/CodeBrick.git
synced 2025-01-16 04:32:51 +08:00
更新注释信息!
This commit is contained in:
parent
bbe1443b58
commit
650b92c9c7
@ -25,7 +25,7 @@ static const cmd_item_t cmd_tbl_end SECTION("cli.cmd.4") = {0};
|
||||
/*
|
||||
* @brief <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* @param[in] keyword - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؼ<EFBFBD><EFBFBD><EFBFBD>
|
||||
* @return <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* @return <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
*/
|
||||
static const cmd_item_t *find_cmd(const char *keyword)
|
||||
{
|
||||
@ -104,31 +104,31 @@ void cli_init(cli_obj_t *obj, const cli_port_t *p)
|
||||
obj->enable = true;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
/*
|
||||
* @brief <EFBFBD><EFBFBD><EFBFBD><EFBFBD>cli<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ(cli<EFBFBD><EFBFBD>ʱ<EFBFBD>Զ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
* @param[in] none
|
||||
* @return none
|
||||
******************************************************************************/
|
||||
**/
|
||||
void cli_enable(cli_obj_t *obj)
|
||||
{
|
||||
obj->enable = true;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
/*
|
||||
* @brief <EFBFBD>˳<EFBFBD>cli<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ(cli<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD>ٴ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
* @param[in] none
|
||||
* @return none
|
||||
******************************************************************************/
|
||||
**/
|
||||
void cli_disable (cli_obj_t *obj)
|
||||
{
|
||||
obj->enable = false;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* @brief <EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>
|
||||
/*
|
||||
* @brief <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* @param[in] line - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* @return none
|
||||
******************************************************************************/
|
||||
**/
|
||||
static void process_line(cli_obj_t *obj)
|
||||
{
|
||||
char *argv[CLI_MAX_ARGS];
|
||||
@ -142,22 +142,22 @@ static void process_line(cli_obj_t *obj)
|
||||
it->handler(obj, argc, argv);
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
/*
|
||||
* @brief ִ<EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD>cli<EFBFBD>Ƿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD><EFBFBD>)
|
||||
* @param[in] none
|
||||
* @return none
|
||||
******************************************************************************/
|
||||
**/
|
||||
void cli_exec_cmd(cli_obj_t *obj, const char *cmd)
|
||||
{
|
||||
snprintf(obj->recvbuf, CLI_MAX_CMD_LEN, "%s", cmd);
|
||||
process_line(obj);
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
* @brief <EFBFBD><EFBFBD><EFBFBD><EFBFBD>cli
|
||||
/*
|
||||
* @brief <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* @param[in] none
|
||||
* @return none
|
||||
******************************************************************************/
|
||||
**/
|
||||
void cli_process(cli_obj_t *obj)
|
||||
{
|
||||
|
||||
@ -191,8 +191,6 @@ static int cmd_item_comparer(const void *item1,const void *item2)
|
||||
|
||||
/*
|
||||
* @brief <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
* @param[in]
|
||||
* @return 1
|
||||
*/
|
||||
static int do_help (struct cli_obj *s, int argc, char *argv[])
|
||||
{
|
||||
|
@ -24,4 +24,7 @@ del *.iex /s
|
||||
del *.htm /s
|
||||
del *.sct /s
|
||||
del *.map /s
|
||||
del *.pbi /s
|
||||
del *.out /s
|
||||
|
||||
exit
|
||||
|
@ -29,10 +29,8 @@ void SysTick_Handler(void)
|
||||
* @brief <EFBFBD>ض<EFBFBD><EFBFBD><EFBFBD>printf
|
||||
*/
|
||||
int fputc(int c, FILE *f)
|
||||
{
|
||||
unsigned char byte = c;
|
||||
tty.write(&byte, 1);
|
||||
//tty.write(&c, 1);
|
||||
{
|
||||
tty.write(&c, 1);
|
||||
while (tty.tx_isfull()) {} //<2F><>ֹ<EFBFBD><D6B9>LOG
|
||||
return c;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user