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

📄 includes.h

📁 这个是我将UCOS移植到LPC系列的基本模版,大家可以下载下来参考下,和ZLG的完全不一样,并不是采用软中断实现任务切换,更加稳定.如果有问题可以rayeryanglei@126.com
💻 H
字号:
#ifndef __INCLUDES_H__
#define __INCLUDES_H__

#define SERIAL_DEBUG  1
#define LCD_DEBUG     0
#define NO_DEBUG      0

#if SERIAL_DEBUG+LCD_DEBUG+NO_DEBUG != 1
#error "should only enable one of SERIAL_DEBUG, LCD_DEBUG NO_DEBUG, but actually not" 
#endif

#if LCD_DEBUG >0
#define MY_DEBUG       LCD_Printf
#endif

#if SERIAL_DEBUG>0
#define MY_DEBUG	   printf
#endif

#if NO_DEBUG > 0

#define MY_DEBUG(x,...)   

#endif //end of #if DEBUG>0 




#include "stdio.h"
#include "string.h"
#include "stdlib.h"
#include "ucos_ii.h"

#include "bsp.h"
#include "lpc22xx.h"


//#include "app_cfg.h"




#endif


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -