9ceb218f80
Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
694 B
C
34 lines
694 B
C
/**
|
|
* @file shell_port.h
|
|
* @author Letter (NevermindZZT@gmail.com)
|
|
* @brief
|
|
* @version 0.1
|
|
* @date 2019-02-22
|
|
*
|
|
* @copyright (c) 2019 Letter
|
|
*
|
|
*/
|
|
|
|
#ifndef __SHELL_PORT_H__
|
|
#define __SHELL_PORT_H__
|
|
|
|
#include "publicdata/public_define.h"
|
|
|
|
#if (MY_SHELL_EN)
|
|
#include "shell.h"
|
|
#endif
|
|
|
|
/* MY_SHELL_EN=0 时提供空桩,避免链接进 shell 代码 */
|
|
#if (MY_SHELL_EN)
|
|
extern Shell shell;
|
|
void userShellInit(void);
|
|
void v_myshell_task(void *argument);
|
|
#else
|
|
static inline void userShellInit(void) {}
|
|
static inline void v_myshell_task(void *argument) { (void)argument; }
|
|
#endif
|
|
|
|
unsigned short shell_send_String(const char *string);
|
|
void v_shell_print(const char *format, ...);
|
|
#endif
|