-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDevCfgUsrExample.h
More file actions
76 lines (62 loc) · 3.32 KB
/
Copy pathDevCfgUsrExample.h
File metadata and controls
76 lines (62 loc) · 3.32 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
70
71
72
73
74
75
76
//******************************************************************************
// @file DefCfgUsr.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.
//
//******************************************************************************
#ifndef DevCfgUsr_h
#define DevCfgUsr_h
// *****************************************************************************
// *** Include for hardware ************************************************
// *****************************************************************************
#include "stm32f4xx.h"
// *****************************************************************************
// *** RTOS Wrapper ********************************************************
// *****************************************************************************
#define FREERTOS_WRAPPER
// *****************************************************************************
// *** Tasks stack size and priorities configuration ***********************
// *****************************************************************************
// *** Applications tasks stack sizes ****************************************
#define APPLICATION_TASK_STACK_SIZE (1024u)
// *** Applications tasks priorities *****************************************
#define APPLICATION_TASK_PRIORITY (RTOS_IDLE_TASK_PRIORITY + 3u)
// *****************************************************************************
// *** 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 320u
// 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_ENABLED
// 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
// *****************************************************************************
// *** Break() macro *******************************************************
// *****************************************************************************
// Break macro: in case something goes wrong(like error happen), DevCore uses
// Break() call. This macro should be defined either as break command for
// debugging purposes, or as an assert. In this example it defined as break
// command for ARM MCUs.
#define Break() asm volatile("bkpt #0")
#endif