⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 console.h

📁 演示了如何正确产生ucos2的滴答中断,以便于顺利移植ucos2到44b0上.对于ucos2初学者很有参考价值.
💻 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 + -