Mbed port of Stm32f4Cube LCD LOG for STM32F429I-DISCO

Dependents:   DISCO-F429ZI_ExportTemplate1

Usage example: DISCO-F429ZI_ExportTemplate1

/media/uploads/icis4/lcdlog1.png

Committer:
icis4
Date:
Sat Dec 26 09:53:21 2015 +0000
Revision:
1:b88758065c40
Parent:
0:098e992daf30
License update

Who changed what in which revision?

UserRevisionLine numberNew contents of line
icis4 0:098e992daf30 1 /**
icis4 0:098e992daf30 2 ******************************************************************************
icis4 0:098e992daf30 3 * @file lcd_log_conf_template.h
icis4 0:098e992daf30 4 * @author MCD Application Team
icis4 0:098e992daf30 5 * @version V1.0.0
icis4 0:098e992daf30 6 * @date 18-February-2014
icis4 0:098e992daf30 7 * @brief lcd_log configuration template file.
icis4 0:098e992daf30 8 * This file should be copied to the application folder and modified
icis4 0:098e992daf30 9 * as follows:
icis4 0:098e992daf30 10 * - Rename it to 'lcd_log_conf.h'.
icis4 0:098e992daf30 11 * - Update the name of the LCD driver's header file, depending on
icis4 0:098e992daf30 12 * the EVAL board you are using, see line40 below (be default this
icis4 0:098e992daf30 13 * file will generate compile error unless you do this modification).
icis4 0:098e992daf30 14 ******************************************************************************
icis4 0:098e992daf30 15 * @attention
icis4 0:098e992daf30 16 *
icis4 0:098e992daf30 17 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
icis4 0:098e992daf30 18 *
icis4 0:098e992daf30 19 * Redistribution and use in source and binary forms, with or without modification,
icis4 0:098e992daf30 20 * are permitted provided that the following conditions are met:
icis4 0:098e992daf30 21 * 1. Redistributions of source code must retain the above copyright notice,
icis4 0:098e992daf30 22 * this list of conditions and the following disclaimer.
icis4 0:098e992daf30 23 * 2. Redistributions in binary form must reproduce the above copyright notice,
icis4 0:098e992daf30 24 * this list of conditions and the following disclaimer in the documentation
icis4 0:098e992daf30 25 * and/or other materials provided with the distribution.
icis4 0:098e992daf30 26 * 3. Neither the name of STMicroelectronics nor the names of its contributors
icis4 0:098e992daf30 27 * may be used to endorse or promote products derived from this software
icis4 0:098e992daf30 28 * without specific prior written permission.
icis4 0:098e992daf30 29 *
icis4 0:098e992daf30 30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
icis4 0:098e992daf30 31 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
icis4 0:098e992daf30 32 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
icis4 0:098e992daf30 33 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
icis4 0:098e992daf30 34 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
icis4 0:098e992daf30 35 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
icis4 0:098e992daf30 36 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
icis4 0:098e992daf30 37 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
icis4 0:098e992daf30 38 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
icis4 0:098e992daf30 39 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
icis4 0:098e992daf30 40 *
icis4 0:098e992daf30 41 ******************************************************************************
icis4 0:098e992daf30 42 */
icis4 0:098e992daf30 43
icis4 0:098e992daf30 44 /* Define to prevent recursive inclusion -------------------------------------*/
icis4 0:098e992daf30 45
icis4 0:098e992daf30 46 #ifndef __LCD_LOG_CONF_H__
icis4 0:098e992daf30 47 #define __LCD_LOG_CONF_H__
icis4 0:098e992daf30 48
icis4 0:098e992daf30 49
icis4 0:098e992daf30 50 /* Includes ------------------------------------------------------------------*/
icis4 0:098e992daf30 51 #include "stm32f429i_discovery_lcd.h"
icis4 0:098e992daf30 52 #include <stdio.h>
icis4 0:098e992daf30 53
icis4 0:098e992daf30 54
icis4 0:098e992daf30 55 /** @addtogroup LCD_LOG
icis4 0:098e992daf30 56 * @{
icis4 0:098e992daf30 57 */
icis4 0:098e992daf30 58
icis4 0:098e992daf30 59 /** @defgroup LCD_LOG
icis4 0:098e992daf30 60 * @brief This file is the
icis4 0:098e992daf30 61 * @{
icis4 0:098e992daf30 62 */
icis4 0:098e992daf30 63
icis4 0:098e992daf30 64
icis4 0:098e992daf30 65 /** @defgroup LCD_LOG_CONF_Exported_Defines
icis4 0:098e992daf30 66 * @{
icis4 0:098e992daf30 67 */
icis4 0:098e992daf30 68
icis4 0:098e992daf30 69 /* Comment the line below to disable the scroll back and forward features */
icis4 0:098e992daf30 70 #define LCD_SCROLL_ENABLED 1
icis4 0:098e992daf30 71
icis4 0:098e992daf30 72 /* Define the Fonts */
icis4 0:098e992daf30 73 #define LCD_LOG_HEADER_FONT Font12
icis4 0:098e992daf30 74 #define LCD_LOG_FOOTER_FONT Font12
icis4 0:098e992daf30 75 #define LCD_LOG_TEXT_FONT Font12
icis4 0:098e992daf30 76
icis4 0:098e992daf30 77 /* Define the LCD LOG Color */
icis4 0:098e992daf30 78 #define LCD_LOG_BACKGROUND_COLOR LCD_COLOR_BLACK
icis4 0:098e992daf30 79 #define LCD_LOG_TEXT_COLOR LCD_COLOR_GRAY
icis4 0:098e992daf30 80 #define LCD_LOG_DEFAULT_COLOR LCD_COLOR_GRAY
icis4 0:098e992daf30 81
icis4 0:098e992daf30 82 #define LCD_LOG_SOLID_BACKGROUND_COLOR LCD_COLOR_BLUE
icis4 0:098e992daf30 83 #define LCD_LOG_SOLID_TEXT_COLOR LCD_COLOR_YELLOW
icis4 0:098e992daf30 84
icis4 0:098e992daf30 85 /* Define the cache depth */
icis4 0:098e992daf30 86 #define CACHE_SIZE 100
icis4 0:098e992daf30 87 #define YWINDOW_SIZE 23
icis4 0:098e992daf30 88
icis4 0:098e992daf30 89 #if (YWINDOW_SIZE > 30)
icis4 0:098e992daf30 90 #error "Wrong YWINDOW SIZE"
icis4 0:098e992daf30 91 #endif
icis4 0:098e992daf30 92
icis4 0:098e992daf30 93 #if 0
icis4 0:098e992daf30 94 /* Redirect the printf to the LCD */
icis4 0:098e992daf30 95 # ifdef __GNUC__
icis4 0:098e992daf30 96 /* With GCC/RAISONANCE, small printf (option LD Linker->Libraries->Small printf
icis4 0:098e992daf30 97 set to 'Yes') calls __io_putchar() */
icis4 0:098e992daf30 98 # define LCD_LOG_PUTCHAR int __io_putchar(int ch)
icis4 0:098e992daf30 99 # else
icis4 0:098e992daf30 100 # define LCD_LOG_PUTCHAR int fputc(int ch, FILE *f)
icis4 0:098e992daf30 101 # endif /* __GNUC__ */
icis4 0:098e992daf30 102
icis4 0:098e992daf30 103 #else /* if 0 */
icis4 0:098e992daf30 104 # define LCD_LOG_PUTCHAR int lcd_log_putc(int ch)
icis4 0:098e992daf30 105 #endif /* if 0 */
icis4 0:098e992daf30 106
icis4 0:098e992daf30 107
icis4 0:098e992daf30 108 /** @defgroup LCD_LOG_CONF_Exported_TypesDefinitions
icis4 0:098e992daf30 109 * @{
icis4 0:098e992daf30 110 */
icis4 0:098e992daf30 111
icis4 0:098e992daf30 112 /**
icis4 0:098e992daf30 113 * @}
icis4 0:098e992daf30 114 */
icis4 0:098e992daf30 115
icis4 0:098e992daf30 116
icis4 0:098e992daf30 117 /** @defgroup LCD_LOG_Exported_Macros
icis4 0:098e992daf30 118 * @{
icis4 0:098e992daf30 119 */
icis4 0:098e992daf30 120
icis4 0:098e992daf30 121
icis4 0:098e992daf30 122 /**
icis4 0:098e992daf30 123 * @}
icis4 0:098e992daf30 124 */
icis4 0:098e992daf30 125
icis4 0:098e992daf30 126 /** @defgroup LCD_LOG_CONF_Exported_Variables
icis4 0:098e992daf30 127 * @{
icis4 0:098e992daf30 128 */
icis4 0:098e992daf30 129
icis4 0:098e992daf30 130 /**
icis4 0:098e992daf30 131 * @}
icis4 0:098e992daf30 132 */
icis4 0:098e992daf30 133
icis4 0:098e992daf30 134 /** @defgroup LCD_LOG_CONF_Exported_FunctionsPrototype
icis4 0:098e992daf30 135 * @{
icis4 0:098e992daf30 136 */
icis4 0:098e992daf30 137
icis4 0:098e992daf30 138 /**
icis4 0:098e992daf30 139 * @}
icis4 0:098e992daf30 140 */
icis4 0:098e992daf30 141
icis4 0:098e992daf30 142
icis4 0:098e992daf30 143 #endif //__LCD_LOG_CONF_H__
icis4 0:098e992daf30 144
icis4 0:098e992daf30 145 /**
icis4 0:098e992daf30 146 * @}
icis4 0:098e992daf30 147 */
icis4 0:098e992daf30 148
icis4 0:098e992daf30 149 /**
icis4 0:098e992daf30 150 * @}
icis4 0:098e992daf30 151 */
icis4 0:098e992daf30 152
icis4 0:098e992daf30 153 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
icis4 0:098e992daf30 154