shell.h[2010-03-16-09-02-54].sfb
来自「STM32_fatfs_shell_SDHC.rar」· SFB 代码 · 共 45 行
SFB
45 行
/****************************************************************
** Copyright (c) 2009-2010
** All Right Reserved.
**
** $Index http://blog.ednchina.com/walnutcy/
** $Author walnutcy
** $Email walnutcy@163.com
** $Version v1.0
** $ 使用请保持文件的完整性,包括这个注释
** 代码可免费商业使用,但作者不对软件的bug负责
*****************************************************************/
#ifndef _SHELL_H
#define _SHELL_H
#ifdef _SHELL_H_GLOBAL_
#define SHELL_EXT
#else
#define SHELL_EXT extern
#endif
void ShellPutChar(char data);
void ShellProcess(char ch);
//===========================================================
#define Shell_OutTXT printf
#define Shell_OutChar ShellPutChar
#define next_line() do {Shell_OutChar('\r');Shell_OutChar('\n');}while(0)
#define prompt() Shell_OutTXT("\\>")
#define MAX_CMD_LEN 64
#define MAX_ARGS MAX_CMD_LEN/4
#define ENTER_KEY 0x0d
#define BACK_KEY 0x08
#define ESC_KEY 0x1b
extern int i_global;
extern char key_global;
extern char command_global[MAX_CMD_LEN];
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?