OLD | NEW |
| (Empty) |
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE.md file. | |
4 | |
5 // Configuration of the STM LCD log utility | |
6 #ifndef PLATFORMS_STM_DISCO_FLETCH_SRC_LCD_LOG_CONF_H_ | |
7 #define PLATFORMS_STM_DISCO_FLETCH_SRC_LCD_LOG_CONF_H_ | |
8 | |
9 #include <stdio.h> | |
10 | |
11 #include <stm32746g_discovery_lcd.h> | |
12 | |
13 // Enable the scroll back and forward feature | |
14 #define LCD_SCROLL_ENABLED 1 | |
15 | |
16 // Define the Fonts. | |
17 #define LCD_LOG_HEADER_FONT Font16 | |
18 #define LCD_LOG_FOOTER_FONT Font12 | |
19 #define LCD_LOG_TEXT_FONT Font12 | |
20 | |
21 // Define the LCD LOG Color. | |
22 #define LCD_LOG_BACKGROUND_COLOR LCD_COLOR_WHITE | |
23 #define LCD_LOG_TEXT_COLOR LCD_COLOR_DARKBLUE | |
24 | |
25 #define LCD_LOG_SOLID_BACKGROUND_COLOR LCD_COLOR_BLUE | |
26 #define LCD_LOG_SOLID_TEXT_COLOR LCD_COLOR_WHITE | |
27 | |
28 // Define the cache depth. | |
29 #define CACHE_SIZE 100 | |
30 #define YWINDOW_SIZE 17 | |
31 | |
32 #if (YWINDOW_SIZE > 17) | |
33 #error "Wrong YWINDOW SIZE" | |
34 #endif | |
35 | |
36 // Define the writing to the display in log utility to this signature. | |
37 #define LCD_LOG_PUTCHAR int LCDLogPutchar(int ch) | |
38 | |
39 #endif // PLATFORMS_STM_DISCO_FLETCH_SRC_LCD_LOG_CONF_H_ | |
OLD | NEW |