mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Wed Jul 01 09:45:11 2015 +0100
Revision:
579:53297373a894
Parent:
489:119543c9f674
Synchronized with git revision d5b4d2ab9c47edb4dc5776e7177b0c2263459081

Full URL: https://github.com/mbedmicro/mbed/commit/d5b4d2ab9c47edb4dc5776e7177b0c2263459081/

Initial version of drivers for SAMR21

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 376:cb4d9db17537 1 /**
mbed_official 376:cb4d9db17537 2 ******************************************************************************
mbed_official 376:cb4d9db17537 3 * @file stm32l0xx_hal_lcd.h
mbed_official 376:cb4d9db17537 4 * @author MCD Application Team
mbed_official 489:119543c9f674 5 * @version V1.2.0
mbed_official 489:119543c9f674 6 * @date 06-February-2015
mbed_official 376:cb4d9db17537 7 * @brief Header file of LCD Controller HAL module.
mbed_official 376:cb4d9db17537 8 ******************************************************************************
mbed_official 376:cb4d9db17537 9 * @attention
mbed_official 376:cb4d9db17537 10 *
mbed_official 489:119543c9f674 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
mbed_official 376:cb4d9db17537 12 *
mbed_official 376:cb4d9db17537 13 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 376:cb4d9db17537 14 * are permitted provided that the following conditions are met:
mbed_official 376:cb4d9db17537 15 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 376:cb4d9db17537 16 * this list of conditions and the following disclaimer.
mbed_official 376:cb4d9db17537 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 376:cb4d9db17537 18 * this list of conditions and the following disclaimer in the documentation
mbed_official 376:cb4d9db17537 19 * and/or other materials provided with the distribution.
mbed_official 376:cb4d9db17537 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 376:cb4d9db17537 21 * may be used to endorse or promote products derived from this software
mbed_official 376:cb4d9db17537 22 * without specific prior written permission.
mbed_official 376:cb4d9db17537 23 *
mbed_official 376:cb4d9db17537 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 376:cb4d9db17537 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 376:cb4d9db17537 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 376:cb4d9db17537 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 376:cb4d9db17537 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 376:cb4d9db17537 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 376:cb4d9db17537 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 376:cb4d9db17537 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 376:cb4d9db17537 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 376:cb4d9db17537 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 376:cb4d9db17537 34 *
mbed_official 376:cb4d9db17537 35 ******************************************************************************
mbed_official 376:cb4d9db17537 36 */
mbed_official 376:cb4d9db17537 37
mbed_official 489:119543c9f674 38 #if defined (STM32L053xx) || defined (STM32L063xx) || defined (STM32L073xx) || defined (STM32L083xx)
mbed_official 489:119543c9f674 39
mbed_official 376:cb4d9db17537 40 /* Define to prevent recursive inclusion -------------------------------------*/
mbed_official 376:cb4d9db17537 41 #ifndef __STM32L0xx_HAL_LCD_H
mbed_official 376:cb4d9db17537 42 #define __STM32L0xx_HAL_LCD_H
mbed_official 376:cb4d9db17537 43
mbed_official 376:cb4d9db17537 44 #ifdef __cplusplus
mbed_official 376:cb4d9db17537 45 extern "C" {
mbed_official 376:cb4d9db17537 46 #endif
mbed_official 376:cb4d9db17537 47
mbed_official 376:cb4d9db17537 48
mbed_official 376:cb4d9db17537 49 /* Includes ------------------------------------------------------------------*/
mbed_official 376:cb4d9db17537 50 #include "stm32l0xx_hal_def.h"
mbed_official 376:cb4d9db17537 51
mbed_official 376:cb4d9db17537 52 /** @addtogroup STM32L0xx_HAL_Driver
mbed_official 376:cb4d9db17537 53 * @{
mbed_official 376:cb4d9db17537 54 */
mbed_official 376:cb4d9db17537 55
mbed_official 489:119543c9f674 56 /** @addtogroup LCD LCD
mbed_official 376:cb4d9db17537 57 * @{
mbed_official 376:cb4d9db17537 58 */
mbed_official 376:cb4d9db17537 59
mbed_official 376:cb4d9db17537 60 /* Exported types ------------------------------------------------------------*/
mbed_official 489:119543c9f674 61 /** @defgroup LCD_Exported_Types LCD Exported Types
mbed_official 489:119543c9f674 62 * @{
mbed_official 489:119543c9f674 63 */
mbed_official 376:cb4d9db17537 64
mbed_official 376:cb4d9db17537 65 /**
mbed_official 376:cb4d9db17537 66 * @brief LCD Init structure definition
mbed_official 376:cb4d9db17537 67 */
mbed_official 376:cb4d9db17537 68
mbed_official 376:cb4d9db17537 69 typedef struct
mbed_official 376:cb4d9db17537 70 {
mbed_official 376:cb4d9db17537 71 uint32_t Prescaler; /*!< Configures the LCD Prescaler.
mbed_official 376:cb4d9db17537 72 This parameter can be one value of @ref LCD_Prescaler */
mbed_official 376:cb4d9db17537 73 uint32_t Divider; /*!< Configures the LCD Divider.
mbed_official 376:cb4d9db17537 74 This parameter can be one value of @ref LCD_Divider */
mbed_official 376:cb4d9db17537 75 uint32_t Duty; /*!< Configures the LCD Duty.
mbed_official 376:cb4d9db17537 76 This parameter can be one value of @ref LCD_Duty */
mbed_official 376:cb4d9db17537 77 uint32_t Bias; /*!< Configures the LCD Bias.
mbed_official 376:cb4d9db17537 78 This parameter can be one value of @ref LCD_Bias */
mbed_official 376:cb4d9db17537 79 uint32_t VoltageSource; /*!< Selects the LCD Voltage source.
mbed_official 376:cb4d9db17537 80 This parameter can be one value of @ref LCD_Voltage_Source */
mbed_official 376:cb4d9db17537 81 uint32_t Contrast; /*!< Configures the LCD Contrast.
mbed_official 376:cb4d9db17537 82 This parameter can be one value of @ref LCD_Contrast */
mbed_official 376:cb4d9db17537 83 uint32_t DeadTime; /*!< Configures the LCD Dead Time.
mbed_official 376:cb4d9db17537 84 This parameter can be one value of @ref LCD_DeadTime */
mbed_official 376:cb4d9db17537 85 uint32_t PulseOnDuration; /*!< Configures the LCD Pulse On Duration.
mbed_official 376:cb4d9db17537 86 This parameter can be one value of @ref LCD_PulseOnDuration */
mbed_official 489:119543c9f674 87 uint32_t HighDrive; /*!< Configures the LCD High Drive.
mbed_official 489:119543c9f674 88 This parameter can be one value of @ref LCD_HighDrive */
mbed_official 376:cb4d9db17537 89 uint32_t BlinkMode; /*!< Configures the LCD Blink Mode.
mbed_official 376:cb4d9db17537 90 This parameter can be one value of @ref LCD_BlinkMode */
mbed_official 376:cb4d9db17537 91 uint32_t BlinkFrequency; /*!< Configures the LCD Blink frequency.
mbed_official 376:cb4d9db17537 92 This parameter can be one value of @ref LCD_BlinkFrequency */
mbed_official 376:cb4d9db17537 93 }LCD_InitTypeDef;
mbed_official 376:cb4d9db17537 94
mbed_official 376:cb4d9db17537 95 /**
mbed_official 376:cb4d9db17537 96 * @brief HAL LCD State structures definition
mbed_official 376:cb4d9db17537 97 */
mbed_official 376:cb4d9db17537 98 typedef enum
mbed_official 376:cb4d9db17537 99 {
mbed_official 376:cb4d9db17537 100 HAL_LCD_STATE_RESET = 0x00, /*!< Peripheral is not yet Initialized */
mbed_official 376:cb4d9db17537 101 HAL_LCD_STATE_READY = 0x01, /*!< Peripheral Initialized and ready for use */
mbed_official 376:cb4d9db17537 102 HAL_LCD_STATE_BUSY = 0x02, /*!< an internal process is ongoing */
mbed_official 376:cb4d9db17537 103 HAL_LCD_STATE_TIMEOUT = 0x03, /*!< Timeout state */
mbed_official 376:cb4d9db17537 104 HAL_LCD_STATE_ERROR = 0x04 /*!< Error */
mbed_official 376:cb4d9db17537 105 }HAL_LCD_StateTypeDef;
mbed_official 376:cb4d9db17537 106
mbed_official 376:cb4d9db17537 107 /**
mbed_official 376:cb4d9db17537 108 * @brief UART handle Structure definition
mbed_official 376:cb4d9db17537 109 */
mbed_official 376:cb4d9db17537 110 typedef struct
mbed_official 376:cb4d9db17537 111 {
mbed_official 489:119543c9f674 112 LCD_TypeDef *Instance; /* LCD registers base address */
mbed_official 376:cb4d9db17537 113
mbed_official 489:119543c9f674 114 LCD_InitTypeDef Init; /* LCD communication parameters */
mbed_official 376:cb4d9db17537 115
mbed_official 489:119543c9f674 116 HAL_LockTypeDef Lock; /* Locking object */
mbed_official 376:cb4d9db17537 117
mbed_official 489:119543c9f674 118 __IO HAL_LCD_StateTypeDef State; /* LCD communication state */
mbed_official 376:cb4d9db17537 119
mbed_official 489:119543c9f674 120 __IO uint32_t ErrorCode; /* LCD Error code */
mbed_official 376:cb4d9db17537 121
mbed_official 376:cb4d9db17537 122 }LCD_HandleTypeDef;
mbed_official 376:cb4d9db17537 123
mbed_official 489:119543c9f674 124 /**
mbed_official 489:119543c9f674 125 * @}
mbed_official 489:119543c9f674 126 */
mbed_official 489:119543c9f674 127
mbed_official 376:cb4d9db17537 128 /* Exported constants --------------------------------------------------------*/
mbed_official 376:cb4d9db17537 129
mbed_official 489:119543c9f674 130 /** @defgroup LCD_Exported_Constants LCD Exported Constants
mbed_official 376:cb4d9db17537 131 * @{
mbed_official 376:cb4d9db17537 132 */
mbed_official 376:cb4d9db17537 133
mbed_official 489:119543c9f674 134 /** @defgroup LCD_ErrorCode LCD Error Code
mbed_official 489:119543c9f674 135 * @{
mbed_official 489:119543c9f674 136 */
mbed_official 489:119543c9f674 137 #define HAL_LCD_ERROR_NONE ((uint32_t)0x00) /*!< No error */
mbed_official 489:119543c9f674 138 #define HAL_LCD_ERROR_FCRSF ((uint32_t)0x01) /*!< Synchro flag timeout error */
mbed_official 489:119543c9f674 139 #define HAL_LCD_ERROR_UDR ((uint32_t)0x02) /*!< Update display request flag timeout error */
mbed_official 489:119543c9f674 140 #define HAL_LCD_ERROR_UDD ((uint32_t)0x04) /*!< Update display done flag timeout error */
mbed_official 489:119543c9f674 141 #define HAL_LCD_ERROR_ENS ((uint32_t)0x08) /*!< LCD enabled status flag timeout error */
mbed_official 489:119543c9f674 142 #define HAL_LCD_ERROR_RDY ((uint32_t)0x10) /*!< LCD Booster ready timeout error */
mbed_official 489:119543c9f674 143 /**
mbed_official 489:119543c9f674 144 * @}
mbed_official 489:119543c9f674 145 */
mbed_official 489:119543c9f674 146
mbed_official 489:119543c9f674 147 /** @defgroup LCD_Prescaler LCD Prescaler
mbed_official 376:cb4d9db17537 148 * @{
mbed_official 376:cb4d9db17537 149 */
mbed_official 376:cb4d9db17537 150
mbed_official 376:cb4d9db17537 151 #define LCD_PRESCALER_1 ((uint32_t)0x00000000) /*!< CLKPS = LCDCLK */
mbed_official 376:cb4d9db17537 152 #define LCD_PRESCALER_2 ((uint32_t)0x00400000) /*!< CLKPS = LCDCLK/2 */
mbed_official 376:cb4d9db17537 153 #define LCD_PRESCALER_4 ((uint32_t)0x00800000) /*!< CLKPS = LCDCLK/4 */
mbed_official 376:cb4d9db17537 154 #define LCD_PRESCALER_8 ((uint32_t)0x00C00000) /*!< CLKPS = LCDCLK/8 */
mbed_official 376:cb4d9db17537 155 #define LCD_PRESCALER_16 ((uint32_t)0x01000000) /*!< CLKPS = LCDCLK/16 */
mbed_official 376:cb4d9db17537 156 #define LCD_PRESCALER_32 ((uint32_t)0x01400000) /*!< CLKPS = LCDCLK/32 */
mbed_official 376:cb4d9db17537 157 #define LCD_PRESCALER_64 ((uint32_t)0x01800000) /*!< CLKPS = LCDCLK/64 */
mbed_official 376:cb4d9db17537 158 #define LCD_PRESCALER_128 ((uint32_t)0x01C00000) /*!< CLKPS = LCDCLK/128 */
mbed_official 376:cb4d9db17537 159 #define LCD_PRESCALER_256 ((uint32_t)0x02000000) /*!< CLKPS = LCDCLK/256 */
mbed_official 376:cb4d9db17537 160 #define LCD_PRESCALER_512 ((uint32_t)0x02400000) /*!< CLKPS = LCDCLK/512 */
mbed_official 376:cb4d9db17537 161 #define LCD_PRESCALER_1024 ((uint32_t)0x02800000) /*!< CLKPS = LCDCLK/1024 */
mbed_official 376:cb4d9db17537 162 #define LCD_PRESCALER_2048 ((uint32_t)0x02C00000) /*!< CLKPS = LCDCLK/2048 */
mbed_official 376:cb4d9db17537 163 #define LCD_PRESCALER_4096 ((uint32_t)0x03000000) /*!< CLKPS = LCDCLK/4096 */
mbed_official 376:cb4d9db17537 164 #define LCD_PRESCALER_8192 ((uint32_t)0x03400000) /*!< CLKPS = LCDCLK/8192 */
mbed_official 376:cb4d9db17537 165 #define LCD_PRESCALER_16384 ((uint32_t)0x03800000) /*!< CLKPS = LCDCLK/16384 */
mbed_official 489:119543c9f674 166 #define LCD_PRESCALER_32768 ((uint32_t)LCD_FCR_PS) /*!< CLKPS = LCDCLK/32768 */
mbed_official 376:cb4d9db17537 167
mbed_official 489:119543c9f674 168 #define IS_LCD_PRESCALER(__PRESCALER__) (((__PRESCALER__) == LCD_PRESCALER_1) || \
mbed_official 489:119543c9f674 169 ((__PRESCALER__) == LCD_PRESCALER_2) || \
mbed_official 489:119543c9f674 170 ((__PRESCALER__) == LCD_PRESCALER_4) || \
mbed_official 489:119543c9f674 171 ((__PRESCALER__) == LCD_PRESCALER_8) || \
mbed_official 489:119543c9f674 172 ((__PRESCALER__) == LCD_PRESCALER_16) || \
mbed_official 489:119543c9f674 173 ((__PRESCALER__) == LCD_PRESCALER_32) || \
mbed_official 489:119543c9f674 174 ((__PRESCALER__) == LCD_PRESCALER_64) || \
mbed_official 489:119543c9f674 175 ((__PRESCALER__) == LCD_PRESCALER_128) || \
mbed_official 489:119543c9f674 176 ((__PRESCALER__) == LCD_PRESCALER_256) || \
mbed_official 489:119543c9f674 177 ((__PRESCALER__) == LCD_PRESCALER_512) || \
mbed_official 489:119543c9f674 178 ((__PRESCALER__) == LCD_PRESCALER_1024) || \
mbed_official 489:119543c9f674 179 ((__PRESCALER__) == LCD_PRESCALER_2048) || \
mbed_official 489:119543c9f674 180 ((__PRESCALER__) == LCD_PRESCALER_4096) || \
mbed_official 489:119543c9f674 181 ((__PRESCALER__) == LCD_PRESCALER_8192) || \
mbed_official 489:119543c9f674 182 ((__PRESCALER__) == LCD_PRESCALER_16384) || \
mbed_official 489:119543c9f674 183 ((__PRESCALER__) == LCD_PRESCALER_32768))
mbed_official 376:cb4d9db17537 184
mbed_official 376:cb4d9db17537 185 /**
mbed_official 376:cb4d9db17537 186 * @}
mbed_official 376:cb4d9db17537 187 */
mbed_official 376:cb4d9db17537 188
mbed_official 489:119543c9f674 189 /** @defgroup LCD_Divider LCD Divider
mbed_official 376:cb4d9db17537 190 * @{
mbed_official 376:cb4d9db17537 191 */
mbed_official 376:cb4d9db17537 192
mbed_official 376:cb4d9db17537 193 #define LCD_DIVIDER_16 ((uint32_t)0x00000000) /*!< LCD frequency = CLKPS/16 */
mbed_official 376:cb4d9db17537 194 #define LCD_DIVIDER_17 ((uint32_t)0x00040000) /*!< LCD frequency = CLKPS/17 */
mbed_official 376:cb4d9db17537 195 #define LCD_DIVIDER_18 ((uint32_t)0x00080000) /*!< LCD frequency = CLKPS/18 */
mbed_official 376:cb4d9db17537 196 #define LCD_DIVIDER_19 ((uint32_t)0x000C0000) /*!< LCD frequency = CLKPS/19 */
mbed_official 376:cb4d9db17537 197 #define LCD_DIVIDER_20 ((uint32_t)0x00100000) /*!< LCD frequency = CLKPS/20 */
mbed_official 376:cb4d9db17537 198 #define LCD_DIVIDER_21 ((uint32_t)0x00140000) /*!< LCD frequency = CLKPS/21 */
mbed_official 376:cb4d9db17537 199 #define LCD_DIVIDER_22 ((uint32_t)0x00180000) /*!< LCD frequency = CLKPS/22 */
mbed_official 376:cb4d9db17537 200 #define LCD_DIVIDER_23 ((uint32_t)0x001C0000) /*!< LCD frequency = CLKPS/23 */
mbed_official 376:cb4d9db17537 201 #define LCD_DIVIDER_24 ((uint32_t)0x00200000) /*!< LCD frequency = CLKPS/24 */
mbed_official 376:cb4d9db17537 202 #define LCD_DIVIDER_25 ((uint32_t)0x00240000) /*!< LCD frequency = CLKPS/25 */
mbed_official 376:cb4d9db17537 203 #define LCD_DIVIDER_26 ((uint32_t)0x00280000) /*!< LCD frequency = CLKPS/26 */
mbed_official 376:cb4d9db17537 204 #define LCD_DIVIDER_27 ((uint32_t)0x002C0000) /*!< LCD frequency = CLKPS/27 */
mbed_official 376:cb4d9db17537 205 #define LCD_DIVIDER_28 ((uint32_t)0x00300000) /*!< LCD frequency = CLKPS/28 */
mbed_official 376:cb4d9db17537 206 #define LCD_DIVIDER_29 ((uint32_t)0x00340000) /*!< LCD frequency = CLKPS/29 */
mbed_official 376:cb4d9db17537 207 #define LCD_DIVIDER_30 ((uint32_t)0x00380000) /*!< LCD frequency = CLKPS/30 */
mbed_official 489:119543c9f674 208 #define LCD_DIVIDER_31 ((uint32_t)LCD_FCR_DIV) /*!< LCD frequency = CLKPS/31 */
mbed_official 376:cb4d9db17537 209
mbed_official 489:119543c9f674 210 #define IS_LCD_DIVIDER(__DIVIDER__) (((__DIVIDER__) == LCD_DIVIDER_16) || \
mbed_official 489:119543c9f674 211 ((__DIVIDER__) == LCD_DIVIDER_17) || \
mbed_official 489:119543c9f674 212 ((__DIVIDER__) == LCD_DIVIDER_18) || \
mbed_official 489:119543c9f674 213 ((__DIVIDER__) == LCD_DIVIDER_19) || \
mbed_official 489:119543c9f674 214 ((__DIVIDER__) == LCD_DIVIDER_20) || \
mbed_official 489:119543c9f674 215 ((__DIVIDER__) == LCD_DIVIDER_21) || \
mbed_official 489:119543c9f674 216 ((__DIVIDER__) == LCD_DIVIDER_22) || \
mbed_official 489:119543c9f674 217 ((__DIVIDER__) == LCD_DIVIDER_23) || \
mbed_official 489:119543c9f674 218 ((__DIVIDER__) == LCD_DIVIDER_24) || \
mbed_official 489:119543c9f674 219 ((__DIVIDER__) == LCD_DIVIDER_25) || \
mbed_official 489:119543c9f674 220 ((__DIVIDER__) == LCD_DIVIDER_26) || \
mbed_official 489:119543c9f674 221 ((__DIVIDER__) == LCD_DIVIDER_27) || \
mbed_official 489:119543c9f674 222 ((__DIVIDER__) == LCD_DIVIDER_28) || \
mbed_official 489:119543c9f674 223 ((__DIVIDER__) == LCD_DIVIDER_29) || \
mbed_official 489:119543c9f674 224 ((__DIVIDER__) == LCD_DIVIDER_30) || \
mbed_official 489:119543c9f674 225 ((__DIVIDER__) == LCD_DIVIDER_31))
mbed_official 376:cb4d9db17537 226
mbed_official 376:cb4d9db17537 227 /**
mbed_official 376:cb4d9db17537 228 * @}
mbed_official 376:cb4d9db17537 229 */
mbed_official 376:cb4d9db17537 230
mbed_official 376:cb4d9db17537 231
mbed_official 489:119543c9f674 232 /** @defgroup LCD_Duty LCD Duty
mbed_official 376:cb4d9db17537 233 * @{
mbed_official 376:cb4d9db17537 234 */
mbed_official 376:cb4d9db17537 235
mbed_official 489:119543c9f674 236 #define LCD_DUTY_STATIC ((uint32_t)0x00000000) /*!< Static duty */
mbed_official 489:119543c9f674 237 #define LCD_DUTY_1_2 (LCD_CR_DUTY_0) /*!< 1/2 duty */
mbed_official 489:119543c9f674 238 #define LCD_DUTY_1_3 (LCD_CR_DUTY_1) /*!< 1/3 duty */
mbed_official 489:119543c9f674 239 #define LCD_DUTY_1_4 ((LCD_CR_DUTY_1 | LCD_CR_DUTY_0)) /*!< 1/4 duty */
mbed_official 489:119543c9f674 240 #define LCD_DUTY_1_8 (LCD_CR_DUTY_2) /*!< 1/8 duty */
mbed_official 376:cb4d9db17537 241
mbed_official 489:119543c9f674 242 #define IS_LCD_DUTY(__DUTY__) (((__DUTY__) == LCD_DUTY_STATIC) || \
mbed_official 489:119543c9f674 243 ((__DUTY__) == LCD_DUTY_1_2) || \
mbed_official 489:119543c9f674 244 ((__DUTY__) == LCD_DUTY_1_3) || \
mbed_official 489:119543c9f674 245 ((__DUTY__) == LCD_DUTY_1_4) || \
mbed_official 489:119543c9f674 246 ((__DUTY__) == LCD_DUTY_1_8))
mbed_official 376:cb4d9db17537 247
mbed_official 376:cb4d9db17537 248 /**
mbed_official 376:cb4d9db17537 249 * @}
mbed_official 376:cb4d9db17537 250 */
mbed_official 376:cb4d9db17537 251
mbed_official 376:cb4d9db17537 252
mbed_official 489:119543c9f674 253 /** @defgroup LCD_Bias LCD Bias
mbed_official 376:cb4d9db17537 254 * @{
mbed_official 376:cb4d9db17537 255 */
mbed_official 376:cb4d9db17537 256
mbed_official 376:cb4d9db17537 257 #define LCD_BIAS_1_4 ((uint32_t)0x00000000) /*!< 1/4 Bias */
mbed_official 376:cb4d9db17537 258 #define LCD_BIAS_1_2 LCD_CR_BIAS_0 /*!< 1/2 Bias */
mbed_official 376:cb4d9db17537 259 #define LCD_BIAS_1_3 LCD_CR_BIAS_1 /*!< 1/3 Bias */
mbed_official 376:cb4d9db17537 260
mbed_official 489:119543c9f674 261 #define IS_LCD_BIAS(__BIAS__) (((__BIAS__) == LCD_BIAS_1_4) || \
mbed_official 489:119543c9f674 262 ((__BIAS__) == LCD_BIAS_1_2) || \
mbed_official 489:119543c9f674 263 ((__BIAS__) == LCD_BIAS_1_3))
mbed_official 376:cb4d9db17537 264 /**
mbed_official 376:cb4d9db17537 265 * @}
mbed_official 376:cb4d9db17537 266 */
mbed_official 376:cb4d9db17537 267
mbed_official 489:119543c9f674 268 /** @defgroup LCD_Voltage_Source LCD Voltage Source
mbed_official 376:cb4d9db17537 269 * @{
mbed_official 376:cb4d9db17537 270 */
mbed_official 376:cb4d9db17537 271
mbed_official 376:cb4d9db17537 272 #define LCD_VOLTAGESOURCE_INTERNAL ((uint32_t)0x00000000) /*!< Internal voltage source for the LCD */
mbed_official 376:cb4d9db17537 273 #define LCD_VOLTAGESOURCE_EXTERNAL LCD_CR_VSEL /*!< External voltage source for the LCD */
mbed_official 376:cb4d9db17537 274
mbed_official 376:cb4d9db17537 275 #define IS_LCD_VOLTAGE_SOURCE(SOURCE) (((SOURCE) == LCD_VOLTAGESOURCE_INTERNAL) || \
mbed_official 376:cb4d9db17537 276 ((SOURCE) == LCD_VOLTAGESOURCE_EXTERNAL))
mbed_official 376:cb4d9db17537 277
mbed_official 376:cb4d9db17537 278 /**
mbed_official 376:cb4d9db17537 279 * @}
mbed_official 376:cb4d9db17537 280 */
mbed_official 376:cb4d9db17537 281
mbed_official 489:119543c9f674 282 /** @defgroup LCD_Interrupts LCD Interrupts
mbed_official 376:cb4d9db17537 283 * @{
mbed_official 376:cb4d9db17537 284 */
mbed_official 376:cb4d9db17537 285 #define LCD_IT_SOF LCD_FCR_SOFIE
mbed_official 376:cb4d9db17537 286 #define LCD_IT_UDD LCD_FCR_UDDIE
mbed_official 376:cb4d9db17537 287
mbed_official 489:119543c9f674 288 /**
mbed_official 489:119543c9f674 289 * @}
mbed_official 489:119543c9f674 290 */
mbed_official 489:119543c9f674 291
mbed_official 489:119543c9f674 292 /** @defgroup LCD_PulseOnDuration LCD Pulse On Duration
mbed_official 489:119543c9f674 293 * @{
mbed_official 489:119543c9f674 294 */
mbed_official 376:cb4d9db17537 295
mbed_official 489:119543c9f674 296 #define LCD_PULSEONDURATION_0 ((uint32_t)0x00000000) /*!< Pulse ON duration = 0 pulse */
mbed_official 489:119543c9f674 297 #define LCD_PULSEONDURATION_1 (LCD_FCR_PON_0) /*!< Pulse ON duration = 1/CK_PS */
mbed_official 489:119543c9f674 298 #define LCD_PULSEONDURATION_2 (LCD_FCR_PON_1) /*!< Pulse ON duration = 2/CK_PS */
mbed_official 489:119543c9f674 299 #define LCD_PULSEONDURATION_3 (LCD_FCR_PON_1 | LCD_FCR_PON_0) /*!< Pulse ON duration = 3/CK_PS */
mbed_official 489:119543c9f674 300 #define LCD_PULSEONDURATION_4 (LCD_FCR_PON_2) /*!< Pulse ON duration = 4/CK_PS */
mbed_official 489:119543c9f674 301 #define LCD_PULSEONDURATION_5 (LCD_FCR_PON_2 | LCD_FCR_PON_0) /*!< Pulse ON duration = 5/CK_PS */
mbed_official 489:119543c9f674 302 #define LCD_PULSEONDURATION_6 (LCD_FCR_PON_2 | LCD_FCR_PON_1) /*!< Pulse ON duration = 6/CK_PS */
mbed_official 489:119543c9f674 303 #define LCD_PULSEONDURATION_7 (LCD_FCR_PON) /*!< Pulse ON duration = 7/CK_PS */
mbed_official 489:119543c9f674 304
mbed_official 489:119543c9f674 305 #define IS_LCD_PULSE_ON_DURATION(__DURATION__) (((__DURATION__) == LCD_PULSEONDURATION_0) || \
mbed_official 489:119543c9f674 306 ((__DURATION__) == LCD_PULSEONDURATION_1) || \
mbed_official 489:119543c9f674 307 ((__DURATION__) == LCD_PULSEONDURATION_2) || \
mbed_official 489:119543c9f674 308 ((__DURATION__) == LCD_PULSEONDURATION_3) || \
mbed_official 489:119543c9f674 309 ((__DURATION__) == LCD_PULSEONDURATION_4) || \
mbed_official 489:119543c9f674 310 ((__DURATION__) == LCD_PULSEONDURATION_5) || \
mbed_official 489:119543c9f674 311 ((__DURATION__) == LCD_PULSEONDURATION_6) || \
mbed_official 489:119543c9f674 312 ((__DURATION__) == LCD_PULSEONDURATION_7))
mbed_official 376:cb4d9db17537 313 /**
mbed_official 376:cb4d9db17537 314 * @}
mbed_official 376:cb4d9db17537 315 */
mbed_official 376:cb4d9db17537 316
mbed_official 489:119543c9f674 317 /** @defgroup LCD_HighDrive LCD HighDrive
mbed_official 376:cb4d9db17537 318 * @{
mbed_official 376:cb4d9db17537 319 */
mbed_official 376:cb4d9db17537 320
mbed_official 489:119543c9f674 321 #define LCD_HIGHDRIVE_0 ((uint32_t)0x00000000) /*!< Low resistance Drive */
mbed_official 489:119543c9f674 322 #define LCD_HIGHDRIVE_1 (LCD_FCR_HD) /*!< High resistance Drive */
mbed_official 376:cb4d9db17537 323
mbed_official 489:119543c9f674 324 #define IS_LCD_HIGHDRIVE(__HIGHDRIVE__) (((__HIGHDRIVE__) == LCD_HIGHDRIVE_0) || \
mbed_official 489:119543c9f674 325 ((__HIGHDRIVE__) == LCD_HIGHDRIVE_1))
mbed_official 376:cb4d9db17537 326 /**
mbed_official 376:cb4d9db17537 327 * @}
mbed_official 376:cb4d9db17537 328 */
mbed_official 376:cb4d9db17537 329
mbed_official 489:119543c9f674 330 /** @defgroup LCD_DeadTime LCD Dead Time
mbed_official 376:cb4d9db17537 331 * @{
mbed_official 376:cb4d9db17537 332 */
mbed_official 376:cb4d9db17537 333
mbed_official 489:119543c9f674 334 #define LCD_DEADTIME_0 ((uint32_t)0x00000000) /*!< No dead Time */
mbed_official 489:119543c9f674 335 #define LCD_DEADTIME_1 (LCD_FCR_DEAD_0) /*!< One Phase between different couple of Frame */
mbed_official 489:119543c9f674 336 #define LCD_DEADTIME_2 (LCD_FCR_DEAD_1) /*!< Two Phase between different couple of Frame */
mbed_official 489:119543c9f674 337 #define LCD_DEADTIME_3 (LCD_FCR_DEAD_1 | LCD_FCR_DEAD_0) /*!< Three Phase between different couple of Frame */
mbed_official 489:119543c9f674 338 #define LCD_DEADTIME_4 (LCD_FCR_DEAD_2) /*!< Four Phase between different couple of Frame */
mbed_official 489:119543c9f674 339 #define LCD_DEADTIME_5 (LCD_FCR_DEAD_2 | LCD_FCR_DEAD_0) /*!< Five Phase between different couple of Frame */
mbed_official 489:119543c9f674 340 #define LCD_DEADTIME_6 (LCD_FCR_DEAD_2 | LCD_FCR_DEAD_1) /*!< Six Phase between different couple of Frame */
mbed_official 489:119543c9f674 341 #define LCD_DEADTIME_7 (LCD_FCR_DEAD) /*!< Seven Phase between different couple of Frame */
mbed_official 376:cb4d9db17537 342
mbed_official 489:119543c9f674 343 #define IS_LCD_DEAD_TIME(__TIME__) (((__TIME__) == LCD_DEADTIME_0) || \
mbed_official 489:119543c9f674 344 ((__TIME__) == LCD_DEADTIME_1) || \
mbed_official 489:119543c9f674 345 ((__TIME__) == LCD_DEADTIME_2) || \
mbed_official 489:119543c9f674 346 ((__TIME__) == LCD_DEADTIME_3) || \
mbed_official 489:119543c9f674 347 ((__TIME__) == LCD_DEADTIME_4) || \
mbed_official 489:119543c9f674 348 ((__TIME__) == LCD_DEADTIME_5) || \
mbed_official 489:119543c9f674 349 ((__TIME__) == LCD_DEADTIME_6) || \
mbed_official 489:119543c9f674 350 ((__TIME__) == LCD_DEADTIME_7))
mbed_official 376:cb4d9db17537 351 /**
mbed_official 376:cb4d9db17537 352 * @}
mbed_official 376:cb4d9db17537 353 */
mbed_official 376:cb4d9db17537 354
mbed_official 489:119543c9f674 355 /** @defgroup LCD_BlinkMode LCD Blink Mode
mbed_official 376:cb4d9db17537 356 * @{
mbed_official 376:cb4d9db17537 357 */
mbed_official 376:cb4d9db17537 358
mbed_official 489:119543c9f674 359 #define LCD_BLINKMODE_OFF ((uint32_t)0x00000000) /*!< Blink disabled */
mbed_official 489:119543c9f674 360 #define LCD_BLINKMODE_SEG0_COM0 (LCD_FCR_BLINK_0) /*!< Blink enabled on SEG[0], COM[0] (1 pixel) */
mbed_official 489:119543c9f674 361 #define LCD_BLINKMODE_SEG0_ALLCOM (LCD_FCR_BLINK_1) /*!< Blink enabled on SEG[0], all COM (up to
mbed_official 376:cb4d9db17537 362 8 pixels according to the programmed duty) */
mbed_official 489:119543c9f674 363 #define LCD_BLINKMODE_ALLSEG_ALLCOM (LCD_FCR_BLINK) /*!< Blink enabled on all SEG and all COM (all pixels) */
mbed_official 376:cb4d9db17537 364
mbed_official 489:119543c9f674 365 #define IS_LCD_BLINK_MODE(__MODE__) (((__MODE__) == LCD_BLINKMODE_OFF) || \
mbed_official 489:119543c9f674 366 ((__MODE__) == LCD_BLINKMODE_SEG0_COM0) || \
mbed_official 489:119543c9f674 367 ((__MODE__) == LCD_BLINKMODE_SEG0_ALLCOM) || \
mbed_official 489:119543c9f674 368 ((__MODE__) == LCD_BLINKMODE_ALLSEG_ALLCOM))
mbed_official 376:cb4d9db17537 369 /**
mbed_official 376:cb4d9db17537 370 * @}
mbed_official 376:cb4d9db17537 371 */
mbed_official 376:cb4d9db17537 372
mbed_official 489:119543c9f674 373 /** @defgroup LCD_BlinkFrequency LCD Blink Frequency
mbed_official 376:cb4d9db17537 374 * @{
mbed_official 376:cb4d9db17537 375 */
mbed_official 376:cb4d9db17537 376
mbed_official 489:119543c9f674 377 #define LCD_BLINKFREQUENCY_DIV8 ((uint32_t)0x00000000) /*!< The Blink frequency = fLCD/8 */
mbed_official 489:119543c9f674 378 #define LCD_BLINKFREQUENCY_DIV16 (LCD_FCR_BLINKF_0) /*!< The Blink frequency = fLCD/16 */
mbed_official 489:119543c9f674 379 #define LCD_BLINKFREQUENCY_DIV32 (LCD_FCR_BLINKF_1) /*!< The Blink frequency = fLCD/32 */
mbed_official 489:119543c9f674 380 #define LCD_BLINKFREQUENCY_DIV64 (LCD_FCR_BLINKF_1 | LCD_FCR_BLINKF_0) /*!< The Blink frequency = fLCD/64 */
mbed_official 489:119543c9f674 381 #define LCD_BLINKFREQUENCY_DIV128 (LCD_FCR_BLINKF_2) /*!< The Blink frequency = fLCD/128 */
mbed_official 489:119543c9f674 382 #define LCD_BLINKFREQUENCY_DIV256 (LCD_FCR_BLINKF_2 |LCD_FCR_BLINKF_0) /*!< The Blink frequency = fLCD/256 */
mbed_official 489:119543c9f674 383 #define LCD_BLINKFREQUENCY_DIV512 (LCD_FCR_BLINKF_2 |LCD_FCR_BLINKF_1) /*!< The Blink frequency = fLCD/512 */
mbed_official 489:119543c9f674 384 #define LCD_BLINKFREQUENCY_DIV1024 (LCD_FCR_BLINKF) /*!< The Blink frequency = fLCD/1024 */
mbed_official 376:cb4d9db17537 385
mbed_official 489:119543c9f674 386 #define IS_LCD_BLINK_FREQUENCY(__FREQUENCY__) (((__FREQUENCY__) == LCD_BLINKFREQUENCY_DIV8) || \
mbed_official 489:119543c9f674 387 ((__FREQUENCY__) == LCD_BLINKFREQUENCY_DIV16) || \
mbed_official 489:119543c9f674 388 ((__FREQUENCY__) == LCD_BLINKFREQUENCY_DIV32) || \
mbed_official 489:119543c9f674 389 ((__FREQUENCY__) == LCD_BLINKFREQUENCY_DIV64) || \
mbed_official 489:119543c9f674 390 ((__FREQUENCY__) == LCD_BLINKFREQUENCY_DIV128) || \
mbed_official 489:119543c9f674 391 ((__FREQUENCY__) == LCD_BLINKFREQUENCY_DIV256) || \
mbed_official 489:119543c9f674 392 ((__FREQUENCY__) == LCD_BLINKFREQUENCY_DIV512) || \
mbed_official 489:119543c9f674 393 ((__FREQUENCY__) == LCD_BLINKFREQUENCY_DIV1024))
mbed_official 376:cb4d9db17537 394 /**
mbed_official 376:cb4d9db17537 395 * @}
mbed_official 376:cb4d9db17537 396 */
mbed_official 376:cb4d9db17537 397
mbed_official 489:119543c9f674 398 /** @defgroup LCD_Contrast LCD Contrast
mbed_official 376:cb4d9db17537 399 * @{
mbed_official 376:cb4d9db17537 400 */
mbed_official 376:cb4d9db17537 401
mbed_official 489:119543c9f674 402 #define LCD_CONTRASTLEVEL_0 ((uint32_t)0x00000000) /*!< Maximum Voltage = 2.60V */
mbed_official 489:119543c9f674 403 #define LCD_CONTRASTLEVEL_1 (LCD_FCR_CC_0) /*!< Maximum Voltage = 2.73V */
mbed_official 489:119543c9f674 404 #define LCD_CONTRASTLEVEL_2 (LCD_FCR_CC_1) /*!< Maximum Voltage = 2.86V */
mbed_official 489:119543c9f674 405 #define LCD_CONTRASTLEVEL_3 (LCD_FCR_CC_1 | LCD_FCR_CC_0) /*!< Maximum Voltage = 2.99V */
mbed_official 489:119543c9f674 406 #define LCD_CONTRASTLEVEL_4 (LCD_FCR_CC_2) /*!< Maximum Voltage = 3.12V */
mbed_official 489:119543c9f674 407 #define LCD_CONTRASTLEVEL_5 (LCD_FCR_CC_2 | LCD_FCR_CC_0) /*!< Maximum Voltage = 3.25V */
mbed_official 489:119543c9f674 408 #define LCD_CONTRASTLEVEL_6 (LCD_FCR_CC_2 | LCD_FCR_CC_1) /*!< Maximum Voltage = 3.38V */
mbed_official 489:119543c9f674 409 #define LCD_CONTRASTLEVEL_7 (LCD_FCR_CC) /*!< Maximum Voltage = 3.51V */
mbed_official 376:cb4d9db17537 410
mbed_official 489:119543c9f674 411 #define IS_LCD_CONTRAST(__CONTRAST__) (((__CONTRAST__) == LCD_CONTRASTLEVEL_0) || \
mbed_official 489:119543c9f674 412 ((__CONTRAST__) == LCD_CONTRASTLEVEL_1) || \
mbed_official 489:119543c9f674 413 ((__CONTRAST__) == LCD_CONTRASTLEVEL_2) || \
mbed_official 489:119543c9f674 414 ((__CONTRAST__) == LCD_CONTRASTLEVEL_3) || \
mbed_official 489:119543c9f674 415 ((__CONTRAST__) == LCD_CONTRASTLEVEL_4) || \
mbed_official 489:119543c9f674 416 ((__CONTRAST__) == LCD_CONTRASTLEVEL_5) || \
mbed_official 489:119543c9f674 417 ((__CONTRAST__) == LCD_CONTRASTLEVEL_6) || \
mbed_official 489:119543c9f674 418 ((__CONTRAST__) == LCD_CONTRASTLEVEL_7))
mbed_official 376:cb4d9db17537 419 /**
mbed_official 376:cb4d9db17537 420 * @}
mbed_official 376:cb4d9db17537 421 */
mbed_official 376:cb4d9db17537 422
mbed_official 489:119543c9f674 423 /** @defgroup LCD_Flag LCD Flag
mbed_official 376:cb4d9db17537 424 * @{
mbed_official 376:cb4d9db17537 425 */
mbed_official 376:cb4d9db17537 426
mbed_official 376:cb4d9db17537 427 #define LCD_FLAG_ENS LCD_SR_ENS
mbed_official 376:cb4d9db17537 428 #define LCD_FLAG_SOF LCD_SR_SOF
mbed_official 376:cb4d9db17537 429 #define LCD_FLAG_UDR LCD_SR_UDR
mbed_official 376:cb4d9db17537 430 #define LCD_FLAG_UDD LCD_SR_UDD
mbed_official 376:cb4d9db17537 431 #define LCD_FLAG_RDY LCD_SR_RDY
mbed_official 376:cb4d9db17537 432 #define LCD_FLAG_FCRSF LCD_SR_FCRSR
mbed_official 376:cb4d9db17537 433
mbed_official 376:cb4d9db17537 434 /**
mbed_official 376:cb4d9db17537 435 * @}
mbed_official 376:cb4d9db17537 436 */
mbed_official 376:cb4d9db17537 437
mbed_official 489:119543c9f674 438 /** @defgroup LCD_RAMRegister LCD RAMRegister
mbed_official 376:cb4d9db17537 439 * @{
mbed_official 376:cb4d9db17537 440 */
mbed_official 376:cb4d9db17537 441
mbed_official 376:cb4d9db17537 442 #define LCD_RAM_REGISTER0 ((uint32_t)0x00000000) /*!< LCD RAM Register 0 */
mbed_official 376:cb4d9db17537 443 #define LCD_RAM_REGISTER1 ((uint32_t)0x00000001) /*!< LCD RAM Register 1 */
mbed_official 376:cb4d9db17537 444 #define LCD_RAM_REGISTER2 ((uint32_t)0x00000002) /*!< LCD RAM Register 2 */
mbed_official 376:cb4d9db17537 445 #define LCD_RAM_REGISTER3 ((uint32_t)0x00000003) /*!< LCD RAM Register 3 */
mbed_official 376:cb4d9db17537 446 #define LCD_RAM_REGISTER4 ((uint32_t)0x00000004) /*!< LCD RAM Register 4 */
mbed_official 376:cb4d9db17537 447 #define LCD_RAM_REGISTER5 ((uint32_t)0x00000005) /*!< LCD RAM Register 5 */
mbed_official 376:cb4d9db17537 448 #define LCD_RAM_REGISTER6 ((uint32_t)0x00000006) /*!< LCD RAM Register 6 */
mbed_official 376:cb4d9db17537 449 #define LCD_RAM_REGISTER7 ((uint32_t)0x00000007) /*!< LCD RAM Register 7 */
mbed_official 376:cb4d9db17537 450 #define LCD_RAM_REGISTER8 ((uint32_t)0x00000008) /*!< LCD RAM Register 8 */
mbed_official 376:cb4d9db17537 451 #define LCD_RAM_REGISTER9 ((uint32_t)0x00000009) /*!< LCD RAM Register 9 */
mbed_official 376:cb4d9db17537 452 #define LCD_RAM_REGISTER10 ((uint32_t)0x0000000A) /*!< LCD RAM Register 10 */
mbed_official 376:cb4d9db17537 453 #define LCD_RAM_REGISTER11 ((uint32_t)0x0000000B) /*!< LCD RAM Register 11 */
mbed_official 376:cb4d9db17537 454 #define LCD_RAM_REGISTER12 ((uint32_t)0x0000000C) /*!< LCD RAM Register 12 */
mbed_official 376:cb4d9db17537 455 #define LCD_RAM_REGISTER13 ((uint32_t)0x0000000D) /*!< LCD RAM Register 13 */
mbed_official 376:cb4d9db17537 456 #define LCD_RAM_REGISTER14 ((uint32_t)0x0000000E) /*!< LCD RAM Register 14 */
mbed_official 376:cb4d9db17537 457 #define LCD_RAM_REGISTER15 ((uint32_t)0x0000000F) /*!< LCD RAM Register 15 */
mbed_official 376:cb4d9db17537 458
mbed_official 489:119543c9f674 459 #define IS_LCD_RAM_REGISTER(__REGISTER__) (((__REGISTER__) == LCD_RAM_REGISTER0) || \
mbed_official 489:119543c9f674 460 ((__REGISTER__) == LCD_RAM_REGISTER1) || \
mbed_official 489:119543c9f674 461 ((__REGISTER__) == LCD_RAM_REGISTER2) || \
mbed_official 489:119543c9f674 462 ((__REGISTER__) == LCD_RAM_REGISTER3) || \
mbed_official 489:119543c9f674 463 ((__REGISTER__) == LCD_RAM_REGISTER4) || \
mbed_official 489:119543c9f674 464 ((__REGISTER__) == LCD_RAM_REGISTER5) || \
mbed_official 489:119543c9f674 465 ((__REGISTER__) == LCD_RAM_REGISTER6) || \
mbed_official 489:119543c9f674 466 ((__REGISTER__) == LCD_RAM_REGISTER7) || \
mbed_official 489:119543c9f674 467 ((__REGISTER__) == LCD_RAM_REGISTER8) || \
mbed_official 489:119543c9f674 468 ((__REGISTER__) == LCD_RAM_REGISTER9) || \
mbed_official 489:119543c9f674 469 ((__REGISTER__) == LCD_RAM_REGISTER10) || \
mbed_official 489:119543c9f674 470 ((__REGISTER__) == LCD_RAM_REGISTER11) || \
mbed_official 489:119543c9f674 471 ((__REGISTER__) == LCD_RAM_REGISTER12) || \
mbed_official 489:119543c9f674 472 ((__REGISTER__) == LCD_RAM_REGISTER13) || \
mbed_official 489:119543c9f674 473 ((__REGISTER__) == LCD_RAM_REGISTER14) || \
mbed_official 489:119543c9f674 474 ((__REGISTER__) == LCD_RAM_REGISTER15))
mbed_official 376:cb4d9db17537 475
mbed_official 376:cb4d9db17537 476 /**
mbed_official 376:cb4d9db17537 477 * @}
mbed_official 376:cb4d9db17537 478 */
mbed_official 376:cb4d9db17537 479
mbed_official 376:cb4d9db17537 480 /**
mbed_official 376:cb4d9db17537 481 * @}
mbed_official 376:cb4d9db17537 482 */
mbed_official 376:cb4d9db17537 483
mbed_official 376:cb4d9db17537 484 /* Exported macro ------------------------------------------------------------*/
mbed_official 376:cb4d9db17537 485
mbed_official 489:119543c9f674 486 /** @defgroup LCD_Exported_Macros LCD Exported Macros
mbed_official 376:cb4d9db17537 487 * @{
mbed_official 376:cb4d9db17537 488 */
mbed_official 376:cb4d9db17537 489
mbed_official 376:cb4d9db17537 490 /** @brief Reset LCD handle state
mbed_official 376:cb4d9db17537 491 * @param __HANDLE__: specifies the LCD Handle.
mbed_official 376:cb4d9db17537 492 * @retval None
mbed_official 376:cb4d9db17537 493 */
mbed_official 489:119543c9f674 494 #define __HAL_LCD_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_LCD_STATE_RESET)
mbed_official 376:cb4d9db17537 495
mbed_official 376:cb4d9db17537 496 /** @brief macros to enables or disables the LCD
mbed_official 376:cb4d9db17537 497 * @param __HANDLE__: specifies the LCD Handle.
mbed_official 376:cb4d9db17537 498 * @retval None
mbed_official 376:cb4d9db17537 499 */
mbed_official 489:119543c9f674 500 #define __HAL_LCD_ENABLE(__HANDLE__) (SET_BIT((__HANDLE__)->Instance->CR, LCD_CR_LCDEN))
mbed_official 489:119543c9f674 501 #define __HAL_LCD_DISABLE(__HANDLE__) (CLEAR_BIT((__HANDLE__)->Instance->CR, LCD_CR_LCDEN))
mbed_official 376:cb4d9db17537 502
mbed_official 376:cb4d9db17537 503 /** @brief Macros to enable or disable the low resistance divider. Displays with high
mbed_official 376:cb4d9db17537 504 * internal resistance may need a longer drive time to achieve
mbed_official 376:cb4d9db17537 505 * satisfactory contrast. This function is useful in this case if some
mbed_official 376:cb4d9db17537 506 * additional power consumption can be tolerated.
mbed_official 376:cb4d9db17537 507 * @param __HANDLE__: specifies the LCD Handle.
mbed_official 376:cb4d9db17537 508 * @note When this mode is enabled, the PulseOn Duration (PON) have to be
mbed_official 376:cb4d9db17537 509 * programmed to 1/CK_PS (LCD_PULSEONDURATION_1).
mbed_official 376:cb4d9db17537 510 * @retval None
mbed_official 376:cb4d9db17537 511 */
mbed_official 376:cb4d9db17537 512 #define __HAL_LCD_HIGHDRIVER_ENABLE(__HANDLE__) \
mbed_official 376:cb4d9db17537 513 do{ \
mbed_official 489:119543c9f674 514 SET_BIT((__HANDLE__)->Instance->FCR, LCD_FCR_HD); \
mbed_official 376:cb4d9db17537 515 LCD_WaitForSynchro(__HANDLE__); \
mbed_official 376:cb4d9db17537 516 }while(0)
mbed_official 376:cb4d9db17537 517
mbed_official 376:cb4d9db17537 518 #define __HAL_LCD_HIGHDRIVER_DISABLE(__HANDLE__) \
mbed_official 376:cb4d9db17537 519 do{ \
mbed_official 489:119543c9f674 520 CLEAR_BIT((__HANDLE__)->Instance->FCR, LCD_FCR_HD); \
mbed_official 376:cb4d9db17537 521 LCD_WaitForSynchro(__HANDLE__); \
mbed_official 376:cb4d9db17537 522 }while(0)
mbed_official 489:119543c9f674 523
mbed_official 376:cb4d9db17537 524 /**
mbed_official 376:cb4d9db17537 525 * @brief Macro to configure the LCD pulses on duration.
mbed_official 376:cb4d9db17537 526 * @param __HANDLE__: specifies the LCD Handle.
mbed_official 376:cb4d9db17537 527 * @param __DURATION__: specifies the LCD pulse on duration in terms of
mbed_official 376:cb4d9db17537 528 * CK_PS (prescaled LCD clock period) pulses.
mbed_official 376:cb4d9db17537 529 * This parameter can be one of the following values:
mbed_official 376:cb4d9db17537 530 * @arg LCD_PULSEONDURATION_0: 0 pulse
mbed_official 376:cb4d9db17537 531 * @arg LCD_PULSEONDURATION_1: Pulse ON duration = 1/CK_PS
mbed_official 376:cb4d9db17537 532 * @arg LCD_PULSEONDURATION_2: Pulse ON duration = 2/CK_PS
mbed_official 376:cb4d9db17537 533 * @arg LCD_PULSEONDURATION_3: Pulse ON duration = 3/CK_PS
mbed_official 376:cb4d9db17537 534 * @arg LCD_PULSEONDURATION_4: Pulse ON duration = 4/CK_PS
mbed_official 376:cb4d9db17537 535 * @arg LCD_PULSEONDURATION_5: Pulse ON duration = 5/CK_PS
mbed_official 376:cb4d9db17537 536 * @arg LCD_PULSEONDURATION_6: Pulse ON duration = 6/CK_PS
mbed_official 376:cb4d9db17537 537 * @arg LCD_PULSEONDURATION_7: Pulse ON duration = 7/CK_PS
mbed_official 376:cb4d9db17537 538 * @retval None
mbed_official 376:cb4d9db17537 539 */
mbed_official 376:cb4d9db17537 540 #define __HAL_LCD_PULSEONDURATION_CONFIG(__HANDLE__, __DURATION__) \
mbed_official 376:cb4d9db17537 541 do{ \
mbed_official 376:cb4d9db17537 542 MODIFY_REG((__HANDLE__)->Instance->FCR, LCD_FCR_PON, (__DURATION__)); \
mbed_official 376:cb4d9db17537 543 LCD_WaitForSynchro(__HANDLE__); \
mbed_official 376:cb4d9db17537 544 }while(0)
mbed_official 376:cb4d9db17537 545
mbed_official 376:cb4d9db17537 546 /**
mbed_official 376:cb4d9db17537 547 * @brief Macro to configure the LCD dead time.
mbed_official 376:cb4d9db17537 548 * @param __HANDLE__: specifies the LCD Handle.
mbed_official 376:cb4d9db17537 549 * @param __DEADTIME__: specifies the LCD dead time.
mbed_official 376:cb4d9db17537 550 * This parameter can be one of the following values:
mbed_official 376:cb4d9db17537 551 * @arg LCD_DEADTIME_0: No dead Time
mbed_official 376:cb4d9db17537 552 * @arg LCD_DEADTIME_1: One Phase between different couple of Frame
mbed_official 376:cb4d9db17537 553 * @arg LCD_DEADTIME_2: Two Phase between different couple of Frame
mbed_official 376:cb4d9db17537 554 * @arg LCD_DEADTIME_3: Three Phase between different couple of Frame
mbed_official 376:cb4d9db17537 555 * @arg LCD_DEADTIME_4: Four Phase between different couple of Frame
mbed_official 376:cb4d9db17537 556 * @arg LCD_DEADTIME_5: Five Phase between different couple of Frame
mbed_official 376:cb4d9db17537 557 * @arg LCD_DEADTIME_6: Six Phase between different couple of Frame
mbed_official 376:cb4d9db17537 558 * @arg LCD_DEADTIME_7: Seven Phase between different couple of Frame
mbed_official 376:cb4d9db17537 559 * @retval None
mbed_official 376:cb4d9db17537 560 */
mbed_official 376:cb4d9db17537 561 #define __HAL_LCD_DEADTIME_CONFIG(__HANDLE__, __DEADTIME__) \
mbed_official 376:cb4d9db17537 562 do{ \
mbed_official 376:cb4d9db17537 563 MODIFY_REG((__HANDLE__)->Instance->FCR, LCD_FCR_DEAD, (__DEADTIME__)); \
mbed_official 376:cb4d9db17537 564 LCD_WaitForSynchro(__HANDLE__); \
mbed_official 376:cb4d9db17537 565 }while(0)
mbed_official 376:cb4d9db17537 566
mbed_official 376:cb4d9db17537 567 /**
mbed_official 376:cb4d9db17537 568 * @brief Macro to configure the LCD Contrast.
mbed_official 376:cb4d9db17537 569 * @param __HANDLE__: specifies the LCD Handle.
mbed_official 376:cb4d9db17537 570 * @param __CONTRAST__: specifies the LCD Contrast.
mbed_official 376:cb4d9db17537 571 * This parameter can be one of the following values:
mbed_official 376:cb4d9db17537 572 * @arg LCD_CONTRASTLEVEL_0: Maximum Voltage = 2.60V
mbed_official 376:cb4d9db17537 573 * @arg LCD_CONTRASTLEVEL_1: Maximum Voltage = 2.73V
mbed_official 376:cb4d9db17537 574 * @arg LCD_CONTRASTLEVEL_2: Maximum Voltage = 2.86V
mbed_official 376:cb4d9db17537 575 * @arg LCD_CONTRASTLEVEL_3: Maximum Voltage = 2.99V
mbed_official 376:cb4d9db17537 576 * @arg LCD_CONTRASTLEVEL_4: Maximum Voltage = 3.12V
mbed_official 376:cb4d9db17537 577 * @arg LCD_CONTRASTLEVEL_5: Maximum Voltage = 3.25V
mbed_official 376:cb4d9db17537 578 * @arg LCD_CONTRASTLEVEL_6: Maximum Voltage = 3.38V
mbed_official 376:cb4d9db17537 579 * @arg LCD_CONTRASTLEVEL_7: Maximum Voltage = 3.51V
mbed_official 376:cb4d9db17537 580 * @retval None
mbed_official 376:cb4d9db17537 581 */
mbed_official 376:cb4d9db17537 582 #define __HAL_LCD_CONTRAST_CONFIG(__HANDLE__, __CONTRAST__) \
mbed_official 376:cb4d9db17537 583 do{ \
mbed_official 376:cb4d9db17537 584 MODIFY_REG((__HANDLE__)->Instance->FCR, LCD_FCR_CC, (__CONTRAST__)); \
mbed_official 376:cb4d9db17537 585 LCD_WaitForSynchro(__HANDLE__); \
mbed_official 376:cb4d9db17537 586 } while(0)
mbed_official 489:119543c9f674 587
mbed_official 376:cb4d9db17537 588 /**
mbed_official 376:cb4d9db17537 589 * @brief Macro to configure the LCD Blink mode and Blink frequency.
mbed_official 376:cb4d9db17537 590 * @param __HANDLE__: specifies the LCD Handle.
mbed_official 376:cb4d9db17537 591 * @param __BLINKMODE__: specifies the LCD blink mode.
mbed_official 376:cb4d9db17537 592 * This parameter can be one of the following values:
mbed_official 376:cb4d9db17537 593 * @arg LCD_BLINKMODE_OFF: Blink disabled
mbed_official 376:cb4d9db17537 594 * @arg LCD_BLINKMODE_SEG0_COM0: Blink enabled on SEG[0], COM[0] (1 pixel)
mbed_official 376:cb4d9db17537 595 * @arg LCD_BLINKMODE_SEG0_ALLCOM: Blink enabled on SEG[0], all COM (up to 8
mbed_official 376:cb4d9db17537 596 * pixels according to the programmed duty)
mbed_official 376:cb4d9db17537 597 * @arg LCD_BLINKMODE_ALLSEG_ALLCOM: Blink enabled on all SEG and all COM
mbed_official 376:cb4d9db17537 598 * (all pixels)
mbed_official 376:cb4d9db17537 599 * @param __BLINKFREQUENCY__: specifies the LCD blink frequency.
mbed_official 376:cb4d9db17537 600 * @arg LCD_BLINKFREQUENCY_DIV8: The Blink frequency = fLcd/8
mbed_official 376:cb4d9db17537 601 * @arg LCD_BLINKFREQUENCY_DIV16: The Blink frequency = fLcd/16
mbed_official 376:cb4d9db17537 602 * @arg LCD_BLINKFREQUENCY_DIV32: The Blink frequency = fLcd/32
mbed_official 376:cb4d9db17537 603 * @arg LCD_BLINKFREQUENCY_DIV64: The Blink frequency = fLcd/64
mbed_official 376:cb4d9db17537 604 * @arg LCD_BLINKFREQUENCY_DIV128: The Blink frequency = fLcd/128
mbed_official 376:cb4d9db17537 605 * @arg LCD_BLINKFREQUENCY_DIV256: The Blink frequency = fLcd/256
mbed_official 376:cb4d9db17537 606 * @arg LCD_BLINKFREQUENCY_DIV512: The Blink frequency = fLcd/512
mbed_official 376:cb4d9db17537 607 * @arg LCD_BLINKFREQUENCY_DIV1024: The Blink frequency = fLcd/1024
mbed_official 376:cb4d9db17537 608 * @retval None
mbed_official 376:cb4d9db17537 609 */
mbed_official 376:cb4d9db17537 610 #define __HAL_LCD_BLINK_CONFIG(__HANDLE__, __BLINKMODE__, __BLINKFREQUENCY__) \
mbed_official 376:cb4d9db17537 611 do{ \
mbed_official 376:cb4d9db17537 612 MODIFY_REG((__HANDLE__)->Instance->FCR, (LCD_FCR_BLINKF | LCD_FCR_BLINK), ((__BLINKMODE__) | (__BLINKFREQUENCY__))); \
mbed_official 376:cb4d9db17537 613 LCD_WaitForSynchro(__HANDLE__); \
mbed_official 376:cb4d9db17537 614 }while(0)
mbed_official 376:cb4d9db17537 615
mbed_official 376:cb4d9db17537 616 /** @brief Enables or disables the specified LCD interrupt.
mbed_official 376:cb4d9db17537 617 * @param __HANDLE__: specifies the LCD Handle.
mbed_official 376:cb4d9db17537 618 * @param __INTERRUPT__: specifies the LCD interrupt source to be enabled or disabled.
mbed_official 376:cb4d9db17537 619 * This parameter can be one of the following values:
mbed_official 376:cb4d9db17537 620 * @arg LCD_IT_SOF: Start of Frame Interrupt
mbed_official 376:cb4d9db17537 621 * @arg LCD_IT_UDD: Update Display Done Interrupt
mbed_official 376:cb4d9db17537 622 * @retval None
mbed_official 376:cb4d9db17537 623 */
mbed_official 489:119543c9f674 624 #define __HAL_LCD_ENABLE_IT(__HANDLE__, __INTERRUPT__) \
mbed_official 489:119543c9f674 625 do{ \
mbed_official 489:119543c9f674 626 SET_BIT((__HANDLE__)->Instance->FCR, (__INTERRUPT__)); \
mbed_official 489:119543c9f674 627 LCD_WaitForSynchro(__HANDLE__); \
mbed_official 376:cb4d9db17537 628 }while(0)
mbed_official 489:119543c9f674 629 #define __HAL_LCD_DISABLE_IT(__HANDLE__, __INTERRUPT__) \
mbed_official 489:119543c9f674 630 do{ \
mbed_official 489:119543c9f674 631 CLEAR_BIT((__HANDLE__)->Instance->FCR, (__INTERRUPT__)); \
mbed_official 489:119543c9f674 632 LCD_WaitForSynchro(__HANDLE__); \
mbed_official 489:119543c9f674 633 }while(0)
mbed_official 489:119543c9f674 634
mbed_official 376:cb4d9db17537 635 /** @brief Checks whether the specified LCD interrupt is enabled or not.
mbed_official 376:cb4d9db17537 636 * @param __HANDLE__: specifies the LCD Handle.
mbed_official 376:cb4d9db17537 637 * @param __IT__: specifies the LCD interrupt source to check.
mbed_official 376:cb4d9db17537 638 * This parameter can be one of the following values:
mbed_official 376:cb4d9db17537 639 * @arg LCD_IT_SOF: Start of Frame Interrupt
mbed_official 376:cb4d9db17537 640 * @arg LCD_IT_UDD: Update Display Done Interrupt.
mbed_official 376:cb4d9db17537 641 * @note If the device is in STOP mode (PCLK not provided) UDD will not
mbed_official 376:cb4d9db17537 642 * generate an interrupt even if UDDIE = 1.
mbed_official 376:cb4d9db17537 643 * If the display is not enabled the UDD interrupt will never occur.
mbed_official 376:cb4d9db17537 644 * @retval The state of __IT__ (TRUE or FALSE).
mbed_official 376:cb4d9db17537 645 */
mbed_official 376:cb4d9db17537 646 #define __HAL_LCD_GET_IT_SOURCE(__HANDLE__, __IT__) (((__HANDLE__)->Instance->FCR) & (__IT__))
mbed_official 376:cb4d9db17537 647
mbed_official 376:cb4d9db17537 648 /** @brief Checks whether the specified LCD flag is set or not.
mbed_official 376:cb4d9db17537 649 * @param __HANDLE__: specifies the LCD Handle.
mbed_official 376:cb4d9db17537 650 * @param __FLAG__: specifies the flag to check.
mbed_official 376:cb4d9db17537 651 * This parameter can be one of the following values:
mbed_official 376:cb4d9db17537 652 * @arg LCD_FLAG_ENS: LCD Enabled flag. It indicates the LCD controller status.
mbed_official 376:cb4d9db17537 653 * @note The ENS bit is set immediately when the LCDEN bit in the LCD_CR
mbed_official 376:cb4d9db17537 654 * goes from 0 to 1. On deactivation it reflects the real status of
mbed_official 376:cb4d9db17537 655 * LCD so it becomes 0 at the end of the last displayed frame.
mbed_official 376:cb4d9db17537 656 * @arg LCD_FLAG_SOF: Start of Frame flag. This flag is set by hardware at
mbed_official 376:cb4d9db17537 657 * the beginning of a new frame, at the same time as the display data is
mbed_official 376:cb4d9db17537 658 * updated.
mbed_official 376:cb4d9db17537 659 * @arg LCD_FLAG_UDR: Update Display Request flag.
mbed_official 376:cb4d9db17537 660 * @arg LCD_FLAG_UDD: Update Display Done flag.
mbed_official 376:cb4d9db17537 661 * @arg LCD_FLAG_RDY: Step_up converter Ready flag. It indicates the status
mbed_official 376:cb4d9db17537 662 * of the step-up converter.
mbed_official 376:cb4d9db17537 663 * @arg LCD_FLAG_FCRSF: LCD Frame Control Register Synchronization Flag.
mbed_official 376:cb4d9db17537 664 * This flag is set by hardware each time the LCD_FCR register is updated
mbed_official 376:cb4d9db17537 665 * in the LCDCLK domain.
mbed_official 376:cb4d9db17537 666 * @retval The new state of __FLAG__ (TRUE or FALSE).
mbed_official 376:cb4d9db17537 667 */
mbed_official 489:119543c9f674 668 #define __HAL_LCD_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))
mbed_official 376:cb4d9db17537 669
mbed_official 376:cb4d9db17537 670 /** @brief Clears the specified LCD pending flag.
mbed_official 376:cb4d9db17537 671 * @param __HANDLE__: specifies the LCD Handle.
mbed_official 489:119543c9f674 672 * @param __FLAG__: specifies the flag to clear.
mbed_official 376:cb4d9db17537 673 * This parameter can be any combination of the following values:
mbed_official 376:cb4d9db17537 674 * @arg LCD_FLAG_SOF: Start of Frame Interrupt
mbed_official 376:cb4d9db17537 675 * @arg LCD_FLAG_UDD: Update Display Done Interrupt
mbed_official 376:cb4d9db17537 676 * @retval None
mbed_official 376:cb4d9db17537 677 */
mbed_official 489:119543c9f674 678 #define __HAL_LCD_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->CLR = (__FLAG__))
mbed_official 376:cb4d9db17537 679
mbed_official 376:cb4d9db17537 680 /**
mbed_official 376:cb4d9db17537 681 * @}
mbed_official 376:cb4d9db17537 682 */
mbed_official 376:cb4d9db17537 683
mbed_official 376:cb4d9db17537 684 /* Exported functions ------------------------------------------------------- */
mbed_official 489:119543c9f674 685
mbed_official 489:119543c9f674 686 /** @addtogroup LCD_Exported_Functions
mbed_official 489:119543c9f674 687 * @{
mbed_official 489:119543c9f674 688 */
mbed_official 489:119543c9f674 689
mbed_official 489:119543c9f674 690 /** @addtogroup LCD_Exported_Functions_Group1
mbed_official 489:119543c9f674 691 * @{
mbed_official 489:119543c9f674 692 */
mbed_official 489:119543c9f674 693
mbed_official 376:cb4d9db17537 694 /* Initialization/de-initialization methods **********************************/
mbed_official 489:119543c9f674 695 HAL_StatusTypeDef HAL_LCD_DeInit(LCD_HandleTypeDef *hlcd);
mbed_official 489:119543c9f674 696 HAL_StatusTypeDef HAL_LCD_Init(LCD_HandleTypeDef *hlcd);
mbed_official 489:119543c9f674 697 void HAL_LCD_MspInit(LCD_HandleTypeDef *hlcd);
mbed_official 489:119543c9f674 698 void HAL_LCD_MspDeInit(LCD_HandleTypeDef *hlcd);
mbed_official 489:119543c9f674 699
mbed_official 489:119543c9f674 700 /**
mbed_official 489:119543c9f674 701 * @}
mbed_official 489:119543c9f674 702 */
mbed_official 489:119543c9f674 703
mbed_official 489:119543c9f674 704 /** @addtogroup LCD_Exported_Functions_Group2
mbed_official 489:119543c9f674 705 * @{
mbed_official 489:119543c9f674 706 */
mbed_official 489:119543c9f674 707
mbed_official 376:cb4d9db17537 708 /* IO operation methods *******************************************************/
mbed_official 489:119543c9f674 709 HAL_StatusTypeDef HAL_LCD_Write(LCD_HandleTypeDef *hlcd, uint32_t RAMRegisterIndex, uint32_t RAMRegisterMask, uint32_t Data);
mbed_official 489:119543c9f674 710 HAL_StatusTypeDef HAL_LCD_Clear(LCD_HandleTypeDef *hlcd);
mbed_official 489:119543c9f674 711 HAL_StatusTypeDef HAL_LCD_UpdateDisplayRequest(LCD_HandleTypeDef *hlcd);
mbed_official 489:119543c9f674 712
mbed_official 489:119543c9f674 713 /**
mbed_official 489:119543c9f674 714 * @}
mbed_official 489:119543c9f674 715 */
mbed_official 489:119543c9f674 716
mbed_official 489:119543c9f674 717 /** @addtogroup LCD_Exported_Functions_Group3
mbed_official 489:119543c9f674 718 * @{
mbed_official 489:119543c9f674 719 */
mbed_official 376:cb4d9db17537 720
mbed_official 376:cb4d9db17537 721 /* Peripheral State methods **************************************************/
mbed_official 489:119543c9f674 722 HAL_LCD_StateTypeDef HAL_LCD_GetState(LCD_HandleTypeDef *hlcd);
mbed_official 489:119543c9f674 723 uint32_t HAL_LCD_GetError(LCD_HandleTypeDef *hlcd);
mbed_official 376:cb4d9db17537 724
mbed_official 376:cb4d9db17537 725 /**
mbed_official 376:cb4d9db17537 726 * @}
mbed_official 376:cb4d9db17537 727 */
mbed_official 376:cb4d9db17537 728
mbed_official 376:cb4d9db17537 729 /**
mbed_official 376:cb4d9db17537 730 * @}
mbed_official 376:cb4d9db17537 731 */
mbed_official 376:cb4d9db17537 732
mbed_official 489:119543c9f674 733 /** @addtogroup LCD_Private_Functions
mbed_official 489:119543c9f674 734 * @{
mbed_official 489:119543c9f674 735 */
mbed_official 489:119543c9f674 736
mbed_official 489:119543c9f674 737 /* Private functions ---------------------------------------------------------*/
mbed_official 489:119543c9f674 738 HAL_StatusTypeDef LCD_WaitForSynchro(LCD_HandleTypeDef *hlcd);
mbed_official 489:119543c9f674 739
mbed_official 489:119543c9f674 740 /**
mbed_official 489:119543c9f674 741 * @}
mbed_official 489:119543c9f674 742 */
mbed_official 489:119543c9f674 743
mbed_official 489:119543c9f674 744 /**
mbed_official 489:119543c9f674 745 * @}
mbed_official 489:119543c9f674 746 */
mbed_official 489:119543c9f674 747
mbed_official 489:119543c9f674 748 /**
mbed_official 489:119543c9f674 749 * @}
mbed_official 489:119543c9f674 750 */
mbed_official 489:119543c9f674 751
mbed_official 489:119543c9f674 752 #ifdef __cplusplus
mbed_official 489:119543c9f674 753 }
mbed_official 489:119543c9f674 754 #endif
mbed_official 489:119543c9f674 755
mbed_official 489:119543c9f674 756 #endif /* __STM32L0xx_HAL_LCD_H */
mbed_official 489:119543c9f674 757
mbed_official 489:119543c9f674 758
mbed_official 489:119543c9f674 759 #endif /* STM32L053xx || STM32L063xx || STM32L073xx || STM32L083xx */
mbed_official 489:119543c9f674 760
mbed_official 489:119543c9f674 761 /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/
mbed_official 489:119543c9f674 762