更新注释信息!

This commit is contained in:
魔罗技术 2020-09-28 21:38:59 +08:00
parent bbe1443b58
commit 650b92c9c7
3 changed files with 18 additions and 19 deletions

View File

@ -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> * @brief <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @param[in] keyword - <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) 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; 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>) * @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 * @param[in] none
* @return none * @return none
******************************************************************************/ **/
void cli_enable(cli_obj_t *obj) void cli_enable(cli_obj_t *obj)
{ {
obj->enable = true; 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>) * @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 * @param[in] none
* @return none * @return none
******************************************************************************/ **/
void cli_disable (cli_obj_t *obj) void cli_disable (cli_obj_t *obj)
{ {
obj->enable = false; 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> * @param[in] line - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @return none * @return none
******************************************************************************/ **/
static void process_line(cli_obj_t *obj) static void process_line(cli_obj_t *obj)
{ {
char *argv[CLI_MAX_ARGS]; char *argv[CLI_MAX_ARGS];
@ -142,22 +142,22 @@ static void process_line(cli_obj_t *obj)
it->handler(obj, argc, argv); 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>) * @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 * @param[in] none
* @return none * @return none
******************************************************************************/ **/
void cli_exec_cmd(cli_obj_t *obj, const char *cmd) void cli_exec_cmd(cli_obj_t *obj, const char *cmd)
{ {
snprintf(obj->recvbuf, CLI_MAX_CMD_LEN, "%s", cmd); snprintf(obj->recvbuf, CLI_MAX_CMD_LEN, "%s", cmd);
process_line(obj); 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 * @param[in] none
* @return none * @return none
******************************************************************************/ **/
void cli_process(cli_obj_t *obj) 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> * @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[]) static int do_help (struct cli_obj *s, int argc, char *argv[])
{ {

View File

@ -24,4 +24,7 @@ del *.iex /s
del *.htm /s del *.htm /s
del *.sct /s del *.sct /s
del *.map /s del *.map /s
del *.pbi /s
del *.out /s
exit exit

View File

@ -29,10 +29,8 @@ void SysTick_Handler(void)
* @brief <EFBFBD>ض<EFBFBD><EFBFBD><EFBFBD>printf * @brief <EFBFBD>ض<EFBFBD><EFBFBD><EFBFBD>printf
*/ */
int fputc(int c, FILE *f) int fputc(int c, FILE *f)
{ {
unsigned char byte = c; tty.write(&c, 1);
tty.write(&byte, 1);
//tty.write(&c, 1);
while (tty.tx_isfull()) {} //<2F><>ֹ<EFBFBD><D6B9>LOG while (tty.tx_isfull()) {} //<2F><>ֹ<EFBFBD><D6B9>LOG
return c; return c;
} }