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
30
31
34
35
38
39
42
43
47
48
49
52
53
54
55
56
57
58
61
62
65
66
71
72
75
76
79
85
86
90
91
92
97
100
101
104
105
106
109
110
113
114
115
116
117
118
119
120
121
123
124
127
128
129
130
131
134
135
138
139
142
143
146
147
150
/* ... */
#ifndef __LCD_LOG_H__
#define __LCD_LOG_H__
#include "lcd_log_conf.h"
/* ... */
/* ... */
/* ... */
/* ... */
/* ... */
/* ... */
#if (LCD_SCROLL_ENABLED == 1)
#define LCD_CACHE_DEPTH (YWINDOW_SIZE + CACHE_SIZE)
#else
#define LCD_CACHE_DEPTH YWINDOW_SIZE
#endif
/* ... */
/* ... */
typedef struct _LCD_LOG_line
{
uint8_t line[128];
uint32_t color;
...}LCD_LOG_line;
/* ... */
/* ... */
#define LCD_ErrLog(...) do { \
LCD_LineColor = LCD_COLOR_RED;\
printf("ERROR: ") ;\
printf(__VA_ARGS__);\
LCD_LineColor = LCD_LOG_DEFAULT_COLOR;\
...}while (0)...
#define LCD_UsrLog(...) do { \
LCD_LineColor = LCD_LOG_TEXT_COLOR;\
printf(__VA_ARGS__);\
...} while (0)...
#define LCD_DbgLog(...) do { \
LCD_LineColor = LCD_COLOR_CYAN;\
printf(__VA_ARGS__);\
LCD_LineColor = LCD_LOG_DEFAULT_COLOR;\
...}while (0)...
/* ... */
/* ... */
extern uint32_t LCD_LineColor;
/* ... */
/* ... */
void LCD_LOG_Init(void);
void LCD_LOG_DeInit(void);
void LCD_LOG_SetHeader(uint8_t *Title);
void LCD_LOG_SetFooter(uint8_t *Status);
void LCD_LOG_ClearTextZone(void);
void LCD_LOG_UpdateDisplay (void);
#if (LCD_SCROLL_ENABLED == 1)
ErrorStatus LCD_LOG_ScrollBack(void);
ErrorStatus LCD_LOG_ScrollForward(void);/* ... */
#endif
/* ... */
/* ... */
#endif
/* ... */
/* ... */
/* ... */
/* ... */
/* ... */