BSP driver for DISCO_L496AG
Dependents: DISCO_L496AG-LCD-prova_1 DISCO_L496AG-LCD-prova_2 DISCO_L496AG-LCD-demo DISCO_L496AG-SRAM-demo
Utilities/Fonts/fonts.h@2:106c7b82e064, 2019-11-20 (annotated)
- Committer:
- Jerome Coutant
- Date:
- Wed Nov 20 16:48:24 2019 +0100
- Revision:
- 2:106c7b82e064
- Parent:
- 0:d83f1c8ca282
Update BSP files with CubeL4 V1.14.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bcostm | 0:d83f1c8ca282 | 1 | /** |
bcostm | 0:d83f1c8ca282 | 2 | ****************************************************************************** |
bcostm | 0:d83f1c8ca282 | 3 | * @file fonts.h |
bcostm | 0:d83f1c8ca282 | 4 | * @author MCD Application Team |
Jerome Coutant
2:106c7b82e064
|
5
|
* @brief This file provides definition for fonts to be used for STM32
|
|
Jerome Coutant
2:106c7b82e064
|
6
|
* board's LCD driver
|
|
bcostm | 0:d83f1c8ca282 | 7 | ****************************************************************************** |
bcostm | 0:d83f1c8ca282 | 8 | * @attention |
bcostm | 0:d83f1c8ca282 | 9 | * |
Jerome Coutant
2:106c7b82e064
|
10
|
* <h2><center>© Copyright (c) 2014 STMicroelectronics.
|
|
Jerome Coutant
2:106c7b82e064
|
11
|
* All rights reserved.</center></h2>
|
|
bcostm | 0:d83f1c8ca282 | 12 | * |
Jerome Coutant
2:106c7b82e064
|
13
|
* This software component is licensed by ST under BSD 3-Clause license,
|
|
Jerome Coutant
2:106c7b82e064
|
14
|
* the "License"; You may not use this file except in compliance with the
|
|
Jerome Coutant
2:106c7b82e064
|
15
|
* License. You may obtain a copy of the License at:
|
|
Jerome Coutant
2:106c7b82e064
|
16
|
* opensource.org/licenses/BSD-3-Clause
|
|
bcostm | 0:d83f1c8ca282 | 17 | * |
bcostm | 0:d83f1c8ca282 | 18 | ****************************************************************************** |
bcostm | 0:d83f1c8ca282 | 19 | */ |
bcostm | 0:d83f1c8ca282 | 20 | |
bcostm | 0:d83f1c8ca282 | 21 | /* Define to prevent recursive inclusion -------------------------------------*/ |
bcostm | 0:d83f1c8ca282 | 22 | #ifndef __FONTS_H |
bcostm | 0:d83f1c8ca282 | 23 | #define __FONTS_H |
bcostm | 0:d83f1c8ca282 | 24 | |
bcostm | 0:d83f1c8ca282 | 25 | #ifdef __cplusplus |
bcostm | 0:d83f1c8ca282 | 26 | extern "C" { |
bcostm | 0:d83f1c8ca282 | 27 | #endif |
bcostm | 0:d83f1c8ca282 | 28 | |
bcostm | 0:d83f1c8ca282 | 29 | /* Includes ------------------------------------------------------------------*/ |
bcostm | 0:d83f1c8ca282 | 30 | #include <stdint.h> |
bcostm | 0:d83f1c8ca282 | 31 | |
bcostm | 0:d83f1c8ca282 | 32 | /** @addtogroup Utilities |
bcostm | 0:d83f1c8ca282 | 33 | * @{ |
bcostm | 0:d83f1c8ca282 | 34 | */ |
Jerome Coutant
2:106c7b82e064
|
35
|
|
|
bcostm | 0:d83f1c8ca282 | 36 | /** @addtogroup STM32_EVAL |
bcostm | 0:d83f1c8ca282 | 37 | * @{ |
Jerome Coutant
2:106c7b82e064
|
38
|
*/
|
|
bcostm | 0:d83f1c8ca282 | 39 | |
bcostm | 0:d83f1c8ca282 | 40 | /** @addtogroup Common |
bcostm | 0:d83f1c8ca282 | 41 | * @{ |
bcostm | 0:d83f1c8ca282 | 42 | */ |
bcostm | 0:d83f1c8ca282 | 43 | |
bcostm | 0:d83f1c8ca282 | 44 | /** @addtogroup FONTS |
bcostm | 0:d83f1c8ca282 | 45 | * @{ |
Jerome Coutant
2:106c7b82e064
|
46
|
*/
|
|
bcostm | 0:d83f1c8ca282 | 47 | |
bcostm | 0:d83f1c8ca282 | 48 | /** @defgroup FONTS_Exported_Types |
bcostm | 0:d83f1c8ca282 | 49 | * @{ |
Jerome Coutant
2:106c7b82e064
|
50
|
*/
|
|
bcostm | 0:d83f1c8ca282 | 51 | typedef struct _tFont |
Jerome Coutant
2:106c7b82e064
|
52
|
{
|
|
bcostm | 0:d83f1c8ca282 | 53 | const uint8_t *table; |
bcostm | 0:d83f1c8ca282 | 54 | uint16_t Width; |
bcostm | 0:d83f1c8ca282 | 55 | uint16_t Height; |
bcostm | 0:d83f1c8ca282 | 56 | } sFONT; |
bcostm | 0:d83f1c8ca282 | 57 | |
bcostm | 0:d83f1c8ca282 | 58 | extern sFONT Font24; |
bcostm | 0:d83f1c8ca282 | 59 | extern sFONT Font20; |
bcostm | 0:d83f1c8ca282 | 60 | extern sFONT Font16; |
bcostm | 0:d83f1c8ca282 | 61 | extern sFONT Font12; |
bcostm | 0:d83f1c8ca282 | 62 | extern sFONT Font8; |
bcostm | 0:d83f1c8ca282 | 63 | /** |
bcostm | 0:d83f1c8ca282 | 64 | * @} |
Jerome Coutant
2:106c7b82e064
|
65
|
*/
|
|
bcostm | 0:d83f1c8ca282 | 66 | |
bcostm | 0:d83f1c8ca282 | 67 | /** @defgroup FONTS_Exported_Constants |
bcostm | 0:d83f1c8ca282 | 68 | * @{ |
Jerome Coutant
2:106c7b82e064
|
69
|
*/
|
|
bcostm | 0:d83f1c8ca282 | 70 | #define LINE(x) ((x) * (((sFONT *)BSP_LCD_GetFont())->Height)) |
bcostm | 0:d83f1c8ca282 | 71 | |
bcostm | 0:d83f1c8ca282 | 72 | /** |
bcostm | 0:d83f1c8ca282 | 73 | * @} |
Jerome Coutant
2:106c7b82e064
|
74
|
*/
|
|
bcostm | 0:d83f1c8ca282 | 75 | |
bcostm | 0:d83f1c8ca282 | 76 | /** @defgroup FONTS_Exported_Macros |
bcostm | 0:d83f1c8ca282 | 77 | * @{ |
bcostm | 0:d83f1c8ca282 | 78 | */ |
bcostm | 0:d83f1c8ca282 | 79 | /** |
bcostm | 0:d83f1c8ca282 | 80 | * @} |
bcostm | 0:d83f1c8ca282 | 81 | */ |
bcostm | 0:d83f1c8ca282 | 82 | |
bcostm | 0:d83f1c8ca282 | 83 | /** @defgroup FONTS_Exported_Functions |
bcostm | 0:d83f1c8ca282 | 84 | * @{ |
bcostm | 0:d83f1c8ca282 | 85 | */ |
bcostm | 0:d83f1c8ca282 | 86 | /** |
bcostm | 0:d83f1c8ca282 | 87 | * @} |
bcostm | 0:d83f1c8ca282 | 88 | */ |
bcostm | 0:d83f1c8ca282 | 89 | |
bcostm | 0:d83f1c8ca282 | 90 | #ifdef __cplusplus |
bcostm | 0:d83f1c8ca282 | 91 | } |
bcostm | 0:d83f1c8ca282 | 92 | #endif |
Jerome Coutant
2:106c7b82e064
|
93
|
|
|
bcostm | 0:d83f1c8ca282 | 94 | #endif /* __FONTS_H */ |
Jerome Coutant
2:106c7b82e064
|
95
|
|
|
bcostm | 0:d83f1c8ca282 | 96 | /** |
bcostm | 0:d83f1c8ca282 | 97 | * @} |
bcostm | 0:d83f1c8ca282 | 98 | */ |
bcostm | 0:d83f1c8ca282 | 99 | |
bcostm | 0:d83f1c8ca282 | 100 | /** |
bcostm | 0:d83f1c8ca282 | 101 | * @} |
Jerome Coutant
2:106c7b82e064
|
102
|
*/
|
|
bcostm | 0:d83f1c8ca282 | 103 | |
bcostm | 0:d83f1c8ca282 | 104 | /** |
bcostm | 0:d83f1c8ca282 | 105 | * @} |
bcostm | 0:d83f1c8ca282 | 106 | */ |
bcostm | 0:d83f1c8ca282 | 107 | |
bcostm | 0:d83f1c8ca282 | 108 | /** |
bcostm | 0:d83f1c8ca282 | 109 | * @} |
bcostm | 0:d83f1c8ca282 | 110 | */ |
bcostm | 0:d83f1c8ca282 | 111 | |
bcostm | 0:d83f1c8ca282 | 112 | /** |
bcostm | 0:d83f1c8ca282 | 113 | * @} |
bcostm | 0:d83f1c8ca282 | 114 | */ |
bcostm | 0:d83f1c8ca282 | 115 | |
bcostm | 0:d83f1c8ca282 | 116 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |