#ifndef MYWIN_INC_H__ #define MYWIN_INC_H__ #include "rthw.h" //#define WIN_IRQ_DISABLE() rt_base_t irq_stat=rt_hw_interrupt_disable( ) //#define WIN_IRQ_ENABLE() rt_hw_interrupt_enable (irq_stat) #define WIN_IRQ_DISABLE() rt_enter_critical() #define WIN_IRQ_ENABLE() rt_exit_critical() #define COLOR565TO888(color) ((((color)&0xf800)<<8)|((color)&0x07e0)<<5|(((color)&0x001f)<<3)) #define COLOR888TO565(color) ((((color)>>8)&0xf800)|(((color)>>5)&0x07e0)|(((color)>>3)&0x001f)) //把RGB转化为565格式 #define RGB(r,g,b) ((((r)>>3)<<11)|(((g)>>2)<<5)|((b)>>3)) //RGB转灰度 #define RGB2GRAY(rgb16) (((((rgb16)&0xf800)>>8)+(((rgb16)&0x07e0)>>3)+(((rgb16)&0x001f)<<3))/3) //灰度转RGB #define GRAY2RGB(gray) ((((gray)>>3)<<11)|(((gray)>>2)<<5)|((gray)>>3)) //MYWIN的配置信息 #include "mywin_cfg.h" //MYWIN使用的数据类型定义 #include "mywin_type.h" //MYWIN使用到的一些功能函数 #include "mywin_lib.h" //MYWIN框架 #include "mywin.h" //MYWIN消息机制 #include "mywin_msg.h" //MYWIN软件定时器 #include "mywin_timer.h" //MYWIN虚拟LCD #include "mywin_lcd.h" //MYWIN字体 #include "mywin_font.h" //MYWIN绘制图形 #include "mywin_draw.h" //MYWIN图片 #include "mywin_pic.h" //MYWIN消息提示框 #include "mywin_msgbox.h" //MYWIN按钮 #include "mywin_button.h" //WININ拼音输入法 #include "mywin_input.h" //MYWIN列表 #include "mywin_list.h" //MYWIN页面 #include "mywin_page.h" //NYWIN弹出式菜单 #include "mywin_popup.h" //执行操作时的等待窗口 #include "mywin_working.h" //MYWIN滚动条 #include "mywin_scrollbar.h" //MYWIN输入框 #include "mywin_inputbox.h" //MYWIN聊天记录框 #include "mywin_record.h" //MYWIN触屏支持框架 #include "mywin_touch.h" #endif