-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
19,794 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
/** | ||
****************************************************************************** | ||
* @file fonts.h | ||
* @author MCD Application Team | ||
* @version V5.0.2 | ||
* @date 05-March-2012 | ||
* @brief Header for fonts.c file | ||
****************************************************************************** | ||
* @attention | ||
* | ||
* <h2><center>© COPYRIGHT 2012 STMicroelectronics</center></h2> | ||
* | ||
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); | ||
* You may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at: | ||
* | ||
* http://www.st.com/software_license_agreement_liberty_v2 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
****************************************************************************** | ||
*/ | ||
|
||
/* Define to prevent recursive inclusion -------------------------------------*/ | ||
#ifndef __FONTS_H | ||
#define __FONTS_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* Includes ------------------------------------------------------------------*/ | ||
#include <stdint.h> | ||
|
||
/** @addtogroup Utilities | ||
* @{ | ||
*/ | ||
|
||
/** @addtogroup STM32_EVAL | ||
* @{ | ||
*/ | ||
|
||
/** @addtogroup Common | ||
* @{ | ||
*/ | ||
|
||
/** @addtogroup FONTS | ||
* @{ | ||
*/ | ||
|
||
/** @defgroup FONTS_Exported_Types | ||
* @{ | ||
*/ | ||
typedef struct _tFont | ||
{ | ||
const uint16_t *table; | ||
uint16_t Width; | ||
uint16_t Height; | ||
|
||
} sFONT; | ||
|
||
extern sFONT Font16x24; | ||
extern sFONT Font12x12; | ||
extern sFONT Font8x12; | ||
extern sFONT Font8x8; | ||
|
||
/** | ||
* @} | ||
*/ | ||
|
||
/** @defgroup FONTS_Exported_Constants | ||
* @{ | ||
*/ | ||
#define LINE(x) ((x) * (((sFONT *)LCD_GetFont())->Height)) | ||
|
||
/** | ||
* @} | ||
*/ | ||
|
||
/** @defgroup FONTS_Exported_Macros | ||
* @{ | ||
*/ | ||
/** | ||
* @} | ||
*/ | ||
|
||
/** @defgroup FONTS_Exported_Functions | ||
* @{ | ||
*/ | ||
/** | ||
* @} | ||
*/ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* __FONTS_H */ | ||
|
||
/** | ||
* @} | ||
*/ | ||
|
||
/** | ||
* @} | ||
*/ | ||
|
||
/** | ||
* @} | ||
*/ | ||
|
||
/** | ||
* @} | ||
*/ | ||
|
||
/** | ||
* @} | ||
*/ | ||
|
||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
Oops, something went wrong.