summaryrefslogtreecommitdiff
path: root/components/gui/include/rtgui/rtgui_config.h
blob: 7d6b1611ff47a560ff798d6a04c2093942cc8a9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
 * File      : rtgui_config.h
 * This file is part of RT-Thread RTOS
 * COPYRIGHT (C) 2006 - 2009, RT-Thread Development Team
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rt-thread.org/license/LICENSE
 *
 * Change Logs:
 * Date           Author       Notes
 * 2009-10-16     Bernard      first version
 * 2010-02-08     Bernard      move some RTGUI options to bsp
 */

#ifndef __RTGUI_CONFIG_H__
#define __RTGUI_CONFIG_H__

/* RTGUI options */

#ifndef RT_USING_DFS
#undef RTGUI_USING_DFS_FILERW
#undef RTGUI_USING_HZ_FILE
#endif

#ifdef RT_USING_DFS
/* if file system is used, the DFS_FILERW will be defined */
#ifndef RTGUI_USING_DFS_FILERW
#define RTGUI_USING_DFS_FILERW
#endif
#endif

#if RTGUI_DEFAULT_FONT_SIZE == 0
#define RTGUI_DEFAULT_FONT_SIZE 12
#endif

#define RTGUI_SVR_THREAD_PRIORITY       15
#define RTGUI_SVR_THREAD_TIMESLICE      5
#ifndef RTGUI_SVR_THREAD_STACK_SIZE
#ifdef RTGUI_USING_SMALL_SIZE
#define RTGUI_SVR_THREAD_STACK_SIZE     1024
#else
#define RTGUI_SVR_THREAD_STACK_SIZE     2048
#endif
#endif

#define RTGUI_APP_THREAD_PRIORITY       25
#define RTGUI_APP_THREAD_TIMESLICE      5
#ifdef RTGUI_USING_SMALL_SIZE
#define RTGUI_APP_THREAD_STACK_SIZE     1024
#else
#define RTGUI_APP_THREAD_STACK_SIZE     2048
#endif

// #define RTGUI_USING_CAST_CHECK

// #define RTGUI_USING_DESKTOP_WINDOW
// #undef RTGUI_USING_SMALL_SIZE

//#define RTGUI_USING_CALIBRATION

#define RTGUI_USING_VFRAMEBUFFER

#ifdef DEBUG_MEMLEAK
#define rtgui_malloc     rt_malloc
#define rtgui_realloc    rt_realloc
#define rtgui_free       rt_free
#endif

#endif