📄 console.h
字号:
#ifndef __CONSOLE_H
#define __CONSOLE_H
#define CONSOLE_UART 0
#define ConsolInit console_init
#define UartPrintf uartprintf
#define Printf uartprintf
#define printf uartprintf
void console_init(int baud);
void putch(char data);
int getch(void);
int getkey(void);
int kbhit(void);
void puts(char *str);
void printf(char *fmt, ...);
void uartprintf(char *fmt, ...);
void UartSend(int ch, char data);
void UartSendString(int ch, char *pt);
void UartInit(int ch, int baud);
int UartReceive(int ch);
int UartRxStat(int ch);
int UartGetkey(int ch);
#define next_line() putch('\n')
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -