-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDefCfgUsrExample.h
More file actions
69 lines (57 loc) · 3.05 KB
/
DefCfgUsrExample.h
File metadata and controls
69 lines (57 loc) · 3.05 KB
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
//******************************************************************************
// @file DevCfg.h
// @author Nicolai Shlapunov
//
// @details DevCore: Config file, header
//
// This file contains example of user configuration for DevCore library.
// Move this file to your project and rename it to DefCfgUsr.h
// Modify configuration as needed.
//
//******************************************************************************
// *****************************************************************************
// *** Include for hardware ************************************************
// *****************************************************************************
#include "stm32f4xx.h"
// *****************************************************************************
// *** Configuration *******************************************************
// *****************************************************************************
//#define DWT_ENABLED
//#define UITASK_ENABLED
//#define INPUTDRV_ENABLED
//#define SOUNDDRV_ENABLED
// *****************************************************************************
// *** Tasks stack size and priorities configuration ***********************
// *****************************************************************************
// *** Applications tasks stack sizes ****************************************
#define APPLICATION_TASK_STACK_SIZE 1024u
// *** Applications tasks priorities *****************************************
#define APPLICATION_TASK_PRIORITY (tskIDLE_PRIORITY + 2U)
// *****************************************************************************
// *** Display Configuration ***********************************************
// *****************************************************************************
// *****************************************************************************
// *** Display Configuration ***********************************************
// *****************************************************************************
// Max line in pixels for allocate buffer in Display Driver. Usually equal to
// maximum number of pixels in line. But sometimes can be greater than that.
// For example ILI9488 uses 18 bit color(3 bytes per pixel) and if 16 bit color
// is used(2 bytes per pixel) in order to prepare data display driver need 1.5
// times more memory
#define DISPLAY_MAX_BUF_LEN 320
// Color depth used by display
//#define COLOR_24BIT
//#define COLOR_16BIT
//#define COLOR_3BIT
// By uncommentimng this line, display task will update only specific area than
// have to be updated
//#define UPDATE_AREA_ENABLE
// In some cases one area isn't enough. In case of changes in small areas far
// away on a large display, it makes sense to have multiple areas that can be
// updated this option defines how many such areas is present. In case of
// overflow, code will merge areas to update everything that have to be updated.
//#define MULTIPLE_UPDATE_AREAS 32
// Display FPS/Touch/Update Area debug options
//#define DISPLAY_DEBUG_INFO
//#define DISPLAY_DEBUG_AREA
//#define DISPLAY_DEBUG_TOUCH