Files
player/Project/Src/MyWin/MyWinCore/mywin_inc.h

91 lines
2.1 KiB
C
Raw Normal View History

2025-06-27 00:32:57 +08:00
#ifndef MYWIN_INC_H__
#define MYWIN_INC_H__
#include "rthw.h"
2025-07-06 18:46:13 +08:00
// #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))
// <20><>RGBת<42><D7AA>Ϊ565<36><35>ʽ
#define RGB(r, g, b) ((((r) >> 3) << 11) | (((g) >> 2) << 5) | ((b) >> 3))
// RGBת<42>Ҷ<EFBFBD>
#define RGB2GRAY(rgb16) \
(((((rgb16) & 0xf800) >> 8) + (((rgb16) & 0x07e0) >> 3) + \
(((rgb16) & 0x001f) << 3)) / \
3)
// <20>Ҷ<EFBFBD>תRGB
#define GRAY2RGB(gray) \
((((gray) >> 3) << 11) | (((gray) >> 2) << 5) | ((gray) >> 3))
// MYWIN<49><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
2025-06-27 00:32:57 +08:00
#include "mywin_cfg.h"
2025-07-06 18:46:13 +08:00
// MYWINʹ<4E>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͷ<EFBFBD><CDB6><EFBFBD>
2025-06-27 00:32:57 +08:00
#include "mywin_type.h"
2025-07-06 18:46:13 +08:00
// MYWINʹ<4E>õ<EFBFBD><C3B5><EFBFBD>һЩ<D2BB><D0A9><EFBFBD>ܺ<EFBFBD><DCBA><EFBFBD>
2025-06-27 00:32:57 +08:00
#include "mywin_lib.h"
2025-07-06 18:46:13 +08:00
// MYWIN<49><4E><EFBFBD><EFBFBD>
2025-06-27 00:32:57 +08:00
#include "mywin.h"
2025-07-06 18:46:13 +08:00
// MYWIN<49><4E>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>
2025-06-27 00:32:57 +08:00
#include "mywin_msg.h"
2025-07-06 18:46:13 +08:00
// MYWIN<49><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>
2025-06-27 00:32:57 +08:00
#include "mywin_timer.h"
2025-07-06 18:46:13 +08:00
// MYWIN<49><4E><EFBFBD><EFBFBD>LCD
2025-06-27 00:32:57 +08:00
#include "mywin_lcd.h"
2025-07-06 18:46:13 +08:00
// MYWIN<49><4E><EFBFBD><EFBFBD>
2025-06-27 00:32:57 +08:00
#include "mywin_font.h"
2025-07-06 18:46:13 +08:00
// MYWIN<49><4E><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC>
2025-06-27 00:32:57 +08:00
#include "mywin_draw.h"
2025-07-06 18:46:13 +08:00
// MYWINͼƬ
2025-06-27 00:32:57 +08:00
#include "mywin_pic.h"
2025-07-06 18:46:13 +08:00
// MYWIN<49><4E>Ϣ<EFBFBD><CFA2>ʾ<EFBFBD><CABE>
2025-06-27 00:32:57 +08:00
#include "mywin_msgbox.h"
2025-07-06 18:46:13 +08:00
// MYWIN<49><4E>ť
2025-06-27 00:32:57 +08:00
#include "mywin_button.h"
2025-07-06 18:46:13 +08:00
// WININƴ<4E><C6B4><EFBFBD><EFBFBD><EFBFBD>
2025-06-27 00:32:57 +08:00
#include "mywin_input.h"
2025-07-06 18:46:13 +08:00
// MYWIN<49>б<EFBFBD>
2025-06-27 00:32:57 +08:00
#include "mywin_list.h"
2025-07-06 18:46:13 +08:00
// MYWINҳ<4E><D2B3>
2025-06-27 00:32:57 +08:00
#include "mywin_page.h"
2025-07-06 18:46:13 +08:00
// NYWIN<49><4E><EFBFBD><EFBFBD>ʽ<EFBFBD>˵<EFBFBD>
2025-06-27 00:32:57 +08:00
#include "mywin_popup.h"
2025-07-06 18:46:13 +08:00
// ִ<>в<EFBFBD><D0B2><EFBFBD>ʱ<EFBFBD>ĵȴ<C4B5><C8B4><EFBFBD><EFBFBD><EFBFBD>
2025-06-27 00:32:57 +08:00
#include "mywin_working.h"
2025-07-06 18:46:13 +08:00
// MYWIN<49><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
2025-06-27 00:32:57 +08:00
#include "mywin_scrollbar.h"
2025-07-06 18:46:13 +08:00
// MYWIN<49><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
2025-06-27 00:32:57 +08:00
#include "mywin_inputbox.h"
2025-07-06 18:46:13 +08:00
// MYWIN<49><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD><C2BC>
2025-06-27 00:32:57 +08:00
#include "mywin_record.h"
2025-07-06 18:46:13 +08:00
// MYWIN<49><4E><EFBFBD><EFBFBD>֧<EFBFBD>ֿ<EFBFBD><D6BF><EFBFBD>
2025-06-27 00:32:57 +08:00
#include "mywin_touch.h"
#endif