A simple 128x32 graphical LCD program to quickstart with LCD on ARM mbed IoT Starter Kit. This requires mbed Applciation Shield with FRDM-K64F platform.

Dependencies:   C12832

Committer:
tushki7
Date:
Sun Apr 12 15:45:52 2015 +0000
Revision:
1:eb68c94a8ee5
Parent:
0:60d829a0353a
A simple 128x32 LCD program with ARM mbed IoT Starter Kit;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tushki7 0:60d829a0353a 1 /**
tushki7 0:60d829a0353a 2 ******************************************************************************
tushki7 0:60d829a0353a 3 * @file stm32f3xx_hal_wwdg.h
tushki7 0:60d829a0353a 4 * @author MCD Application Team
tushki7 0:60d829a0353a 5 * @version V1.1.0
tushki7 0:60d829a0353a 6 * @date 12-Sept-2014
tushki7 0:60d829a0353a 7 * @brief Header file of WWDG HAL module.
tushki7 0:60d829a0353a 8 ******************************************************************************
tushki7 0:60d829a0353a 9 * @attention
tushki7 0:60d829a0353a 10 *
tushki7 0:60d829a0353a 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
tushki7 0:60d829a0353a 12 *
tushki7 0:60d829a0353a 13 * Redistribution and use in source and binary forms, with or without modification,
tushki7 0:60d829a0353a 14 * are permitted provided that the following conditions are met:
tushki7 0:60d829a0353a 15 * 1. Redistributions of source code must retain the above copyright notice,
tushki7 0:60d829a0353a 16 * this list of conditions and the following disclaimer.
tushki7 0:60d829a0353a 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
tushki7 0:60d829a0353a 18 * this list of conditions and the following disclaimer in the documentation
tushki7 0:60d829a0353a 19 * and/or other materials provided with the distribution.
tushki7 0:60d829a0353a 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
tushki7 0:60d829a0353a 21 * may be used to endorse or promote products derived from this software
tushki7 0:60d829a0353a 22 * without specific prior written permission.
tushki7 0:60d829a0353a 23 *
tushki7 0:60d829a0353a 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
tushki7 0:60d829a0353a 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
tushki7 0:60d829a0353a 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
tushki7 0:60d829a0353a 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
tushki7 0:60d829a0353a 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
tushki7 0:60d829a0353a 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
tushki7 0:60d829a0353a 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
tushki7 0:60d829a0353a 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
tushki7 0:60d829a0353a 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
tushki7 0:60d829a0353a 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
tushki7 0:60d829a0353a 34 *
tushki7 0:60d829a0353a 35 ******************************************************************************
tushki7 0:60d829a0353a 36 */
tushki7 0:60d829a0353a 37
tushki7 0:60d829a0353a 38 /* Define to prevent recursive inclusion -------------------------------------*/
tushki7 0:60d829a0353a 39 #ifndef __STM32F3xx_HAL_WWDG_H
tushki7 0:60d829a0353a 40 #define __STM32F3xx_HAL_WWDG_H
tushki7 0:60d829a0353a 41
tushki7 0:60d829a0353a 42 #ifdef __cplusplus
tushki7 0:60d829a0353a 43 extern "C" {
tushki7 0:60d829a0353a 44 #endif
tushki7 0:60d829a0353a 45
tushki7 0:60d829a0353a 46 /* Includes ------------------------------------------------------------------*/
tushki7 0:60d829a0353a 47 #include "stm32f3xx_hal_def.h"
tushki7 0:60d829a0353a 48
tushki7 0:60d829a0353a 49 /** @addtogroup STM32F3xx_HAL_Driver
tushki7 0:60d829a0353a 50 * @{
tushki7 0:60d829a0353a 51 */
tushki7 0:60d829a0353a 52
tushki7 0:60d829a0353a 53 /** @addtogroup WWDG
tushki7 0:60d829a0353a 54 * @{
tushki7 0:60d829a0353a 55 */
tushki7 0:60d829a0353a 56
tushki7 0:60d829a0353a 57 /* Exported types ------------------------------------------------------------*/
tushki7 0:60d829a0353a 58
tushki7 0:60d829a0353a 59 /** @defgroup WWDG_Exported_Types WWDG Exported Types
tushki7 0:60d829a0353a 60 * @{
tushki7 0:60d829a0353a 61 */
tushki7 0:60d829a0353a 62 /**
tushki7 0:60d829a0353a 63 * @brief WWDG HAL State Structure definition
tushki7 0:60d829a0353a 64 */
tushki7 0:60d829a0353a 65 typedef enum
tushki7 0:60d829a0353a 66 {
tushki7 0:60d829a0353a 67 HAL_WWDG_STATE_RESET = 0x00, /*!< WWDG not yet initialized or disabled */
tushki7 0:60d829a0353a 68 HAL_WWDG_STATE_READY = 0x01, /*!< WWDG initialized and ready for use */
tushki7 0:60d829a0353a 69 HAL_WWDG_STATE_BUSY = 0x02, /*!< WWDG internal process is ongoing */
tushki7 0:60d829a0353a 70 HAL_WWDG_STATE_TIMEOUT = 0x03, /*!< WWDG timeout state */
tushki7 0:60d829a0353a 71 HAL_WWDG_STATE_ERROR = 0x04 /*!< WWDG error state */
tushki7 0:60d829a0353a 72
tushki7 0:60d829a0353a 73 }HAL_WWDG_StateTypeDef;
tushki7 0:60d829a0353a 74
tushki7 0:60d829a0353a 75 /**
tushki7 0:60d829a0353a 76 * @brief WWDG Init structure definition
tushki7 0:60d829a0353a 77 */
tushki7 0:60d829a0353a 78 typedef struct
tushki7 0:60d829a0353a 79 {
tushki7 0:60d829a0353a 80 uint32_t Prescaler; /*!< Specifies the prescaler value of the WWDG.
tushki7 0:60d829a0353a 81 This parameter can be a value of @ref WWDG_Prescaler */
tushki7 0:60d829a0353a 82
tushki7 0:60d829a0353a 83 uint32_t Window; /*!< Specifies the WWDG window value to be compared to the downcounter.
tushki7 0:60d829a0353a 84 This parameter must be a number lower than Max_Data = 0x80 */
tushki7 0:60d829a0353a 85
tushki7 0:60d829a0353a 86 uint32_t Counter; /*!< Specifies the WWDG free-running downcounter value.
tushki7 0:60d829a0353a 87 This parameter must be a number between Min_Data = 0x40 and Max_Data = 0x7F */
tushki7 0:60d829a0353a 88
tushki7 0:60d829a0353a 89 } WWDG_InitTypeDef;
tushki7 0:60d829a0353a 90
tushki7 0:60d829a0353a 91 /**
tushki7 0:60d829a0353a 92 * @brief WWDG Handle Structure definition
tushki7 0:60d829a0353a 93 */
tushki7 0:60d829a0353a 94 typedef struct
tushki7 0:60d829a0353a 95 {
tushki7 0:60d829a0353a 96 WWDG_TypeDef *Instance; /*!< Register base address */
tushki7 0:60d829a0353a 97
tushki7 0:60d829a0353a 98 WWDG_InitTypeDef Init; /*!< WWDG required parameters */
tushki7 0:60d829a0353a 99
tushki7 0:60d829a0353a 100 HAL_LockTypeDef Lock; /*!< WWDG Locking object */
tushki7 0:60d829a0353a 101
tushki7 0:60d829a0353a 102 __IO HAL_WWDG_StateTypeDef State; /*!< WWDG communication state */
tushki7 0:60d829a0353a 103
tushki7 0:60d829a0353a 104 } WWDG_HandleTypeDef;
tushki7 0:60d829a0353a 105
tushki7 0:60d829a0353a 106 /**
tushki7 0:60d829a0353a 107 * @}
tushki7 0:60d829a0353a 108 */
tushki7 0:60d829a0353a 109
tushki7 0:60d829a0353a 110 /* Exported constants --------------------------------------------------------*/
tushki7 0:60d829a0353a 111
tushki7 0:60d829a0353a 112 /** @defgroup WWDG_Exported_Constants WWDG Exported Constants
tushki7 0:60d829a0353a 113 * @{
tushki7 0:60d829a0353a 114 */
tushki7 0:60d829a0353a 115
tushki7 0:60d829a0353a 116 /** @defgroup WWDG_BitAddress_AliasRegion WWDG registers bit address in the alias region
tushki7 0:60d829a0353a 117 * @brief WWDG registers bit address in the alias region
tushki7 0:60d829a0353a 118 * @{
tushki7 0:60d829a0353a 119 */
tushki7 0:60d829a0353a 120
tushki7 0:60d829a0353a 121 /* --- CFR Register ---*/
tushki7 0:60d829a0353a 122 /* Alias word address of EWI bit */
tushki7 0:60d829a0353a 123 #define CFR_BASE (uint32_t)(WWDG_BASE + 0x04)
tushki7 0:60d829a0353a 124
tushki7 0:60d829a0353a 125 /**
tushki7 0:60d829a0353a 126 * @}
tushki7 0:60d829a0353a 127 */
tushki7 0:60d829a0353a 128
tushki7 0:60d829a0353a 129 /** @defgroup WWDG_Interrupt_definition WWDG Interrupt definition
tushki7 0:60d829a0353a 130 * @brief WWDG registers bit address in the alias region
tushki7 0:60d829a0353a 131 * @{
tushki7 0:60d829a0353a 132 */
tushki7 0:60d829a0353a 133 #define WWDG_IT_EWI ((uint32_t)WWDG_CFR_EWI)
tushki7 0:60d829a0353a 134
tushki7 0:60d829a0353a 135 #define IS_WWDG_IT(__IT__) ((__IT__) == WWDG_IT_EWI)
tushki7 0:60d829a0353a 136
tushki7 0:60d829a0353a 137 /**
tushki7 0:60d829a0353a 138 * @}
tushki7 0:60d829a0353a 139 */
tushki7 0:60d829a0353a 140
tushki7 0:60d829a0353a 141 /** @defgroup WWDG_Flag_definition WWDG Flag definition
tushki7 0:60d829a0353a 142 * @brief WWDG Flag definition
tushki7 0:60d829a0353a 143 * @{
tushki7 0:60d829a0353a 144 */
tushki7 0:60d829a0353a 145 #define WWDG_FLAG_EWIF ((uint32_t)WWDG_SR_EWIF) /*!< Early Wakeup Interrupt Flag */
tushki7 0:60d829a0353a 146
tushki7 0:60d829a0353a 147 #define IS_WWDG_FLAG(__FLAG__) ((__FLAG__) == WWDG_FLAG_EWIF))
tushki7 0:60d829a0353a 148
tushki7 0:60d829a0353a 149 /**
tushki7 0:60d829a0353a 150 * @}
tushki7 0:60d829a0353a 151 */
tushki7 0:60d829a0353a 152
tushki7 0:60d829a0353a 153 /** @defgroup WWDG_Prescaler WWDG Prescaler
tushki7 0:60d829a0353a 154 * @{
tushki7 0:60d829a0353a 155 */
tushki7 0:60d829a0353a 156 #define WWDG_PRESCALER_1 ((uint32_t)0x00000000) /*!< WWDG counter clock = (PCLK1/4096)/1 */
tushki7 0:60d829a0353a 157 #define WWDG_PRESCALER_2 ((uint32_t)WWDG_CFR_WDGTB0) /*!< WWDG counter clock = (PCLK1/4096)/2 */
tushki7 0:60d829a0353a 158 #define WWDG_PRESCALER_4 ((uint32_t)WWDG_CFR_WDGTB1) /*!< WWDG counter clock = (PCLK1/4096)/4 */
tushki7 0:60d829a0353a 159 #define WWDG_PRESCALER_8 ((uint32_t)WWDG_CFR_WDGTB) /*!< WWDG counter clock = (PCLK1/4096)/8 */
tushki7 0:60d829a0353a 160
tushki7 0:60d829a0353a 161 #define IS_WWDG_PRESCALER(__PRESCALER__) (((__PRESCALER__) == WWDG_PRESCALER_1) || \
tushki7 0:60d829a0353a 162 ((__PRESCALER__) == WWDG_PRESCALER_2) || \
tushki7 0:60d829a0353a 163 ((__PRESCALER__) == WWDG_PRESCALER_4) || \
tushki7 0:60d829a0353a 164 ((__PRESCALER__) == WWDG_PRESCALER_8))
tushki7 0:60d829a0353a 165
tushki7 0:60d829a0353a 166 /**
tushki7 0:60d829a0353a 167 * @}
tushki7 0:60d829a0353a 168 */
tushki7 0:60d829a0353a 169
tushki7 0:60d829a0353a 170 /** @defgroup WWDG_Window WWDG Window
tushki7 0:60d829a0353a 171 * @{
tushki7 0:60d829a0353a 172 */
tushki7 0:60d829a0353a 173 #define IS_WWDG_WINDOW(__WINDOW__) ((__WINDOW__) <= 0x7F)
tushki7 0:60d829a0353a 174
tushki7 0:60d829a0353a 175 /**
tushki7 0:60d829a0353a 176 * @}
tushki7 0:60d829a0353a 177 */
tushki7 0:60d829a0353a 178
tushki7 0:60d829a0353a 179 /** @defgroup WWDG_Counter WWDG Counter
tushki7 0:60d829a0353a 180 * @{
tushki7 0:60d829a0353a 181 */
tushki7 0:60d829a0353a 182 #define IS_WWDG_COUNTER(__COUNTER__) (((__COUNTER__) >= 0x40) && ((__COUNTER__) <= 0x7F))
tushki7 0:60d829a0353a 183
tushki7 0:60d829a0353a 184 /**
tushki7 0:60d829a0353a 185 * @}
tushki7 0:60d829a0353a 186 */
tushki7 0:60d829a0353a 187
tushki7 0:60d829a0353a 188 /**
tushki7 0:60d829a0353a 189 * @}
tushki7 0:60d829a0353a 190 */
tushki7 0:60d829a0353a 191
tushki7 0:60d829a0353a 192 /* Exported macros -----------------------------------------------------------*/
tushki7 0:60d829a0353a 193
tushki7 0:60d829a0353a 194 /** @defgroup WWDG_Exported_Macros WWDG Exported Macros
tushki7 0:60d829a0353a 195 * @{
tushki7 0:60d829a0353a 196 */
tushki7 0:60d829a0353a 197
tushki7 0:60d829a0353a 198 /** @brief Reset WWDG handle state
tushki7 0:60d829a0353a 199 * @param __HANDLE__: WWDG handle.
tushki7 0:60d829a0353a 200 * @retval None
tushki7 0:60d829a0353a 201 */
tushki7 0:60d829a0353a 202 #define __HAL_WWDG_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_WWDG_STATE_RESET)
tushki7 0:60d829a0353a 203
tushki7 0:60d829a0353a 204 /**
tushki7 0:60d829a0353a 205 * @brief Enable the WWDG peripheral.
tushki7 0:60d829a0353a 206 * @param __HANDLE__: WWDG handle
tushki7 0:60d829a0353a 207 * @retval None
tushki7 0:60d829a0353a 208 */
tushki7 0:60d829a0353a 209 #define __HAL_WWDG_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR, WWDG_CR_WDGA)
tushki7 0:60d829a0353a 210
tushki7 0:60d829a0353a 211 /**
tushki7 0:60d829a0353a 212 * @brief Get the selected WWDG's flag status.
tushki7 0:60d829a0353a 213 * @param __HANDLE__: WWDG handle
tushki7 0:60d829a0353a 214 * @param __FLAG__: specifies the flag to check.
tushki7 0:60d829a0353a 215 * This parameter can be one of the following values:
tushki7 0:60d829a0353a 216 * @arg WWDG_FLAG_EWIF: Early Wakeup Interrupt flag
tushki7 0:60d829a0353a 217 * @retval The new state of WWDG_FLAG (SET or RESET).
tushki7 0:60d829a0353a 218 */
tushki7 0:60d829a0353a 219 #define __HAL_WWDG_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))
tushki7 0:60d829a0353a 220
tushki7 0:60d829a0353a 221 /**
tushki7 0:60d829a0353a 222 * @brief Clear the WWDG's pending flags.
tushki7 0:60d829a0353a 223 * @param __HANDLE__: WWDG handle
tushki7 0:60d829a0353a 224 * @param __FLAG__: specifies the flag to clear.
tushki7 0:60d829a0353a 225 * This parameter can be one of the following values:
tushki7 0:60d829a0353a 226 * @arg WWDG_FLAG_EWIF: Early Wakeup Interrupt flag
tushki7 0:60d829a0353a 227 * @retval None
tushki7 0:60d829a0353a 228 */
tushki7 0:60d829a0353a 229 #define __HAL_WWDG_CLEAR_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR) = ~(__FLAG__))
tushki7 0:60d829a0353a 230
tushki7 0:60d829a0353a 231 /**
tushki7 0:60d829a0353a 232 * @brief Enable the WWDG early wakeup interrupt.
tushki7 0:60d829a0353a 233 * @note Once enabled this interrupt cannot be disabled except by a system reset.
tushki7 0:60d829a0353a 234 * @retval None
tushki7 0:60d829a0353a 235 */
tushki7 0:60d829a0353a 236 #define __HAL_WWDG_ENABLE_IT(__INTERRUPT__) (*(__IO uint32_t *) CFR_BASE |= (__INTERRUPT__))
tushki7 0:60d829a0353a 237
tushki7 0:60d829a0353a 238 /** @brief Clear the WWDG's interrupt pending bits
tushki7 0:60d829a0353a 239 * bits to clear the selected interrupt pending bits.
tushki7 0:60d829a0353a 240 * @param __HANDLE__: WWDG handle
tushki7 0:60d829a0353a 241 * @param __INTERRUPT__: specifies the interrupt pending bit to clear.
tushki7 0:60d829a0353a 242 * This parameter can be one of the following values:
tushki7 0:60d829a0353a 243 * @arg WWDG_FLAG_EWIF: Early wakeup interrupt flag
tushki7 0:60d829a0353a 244 */
tushki7 0:60d829a0353a 245 #define __HAL_WWDG_CLEAR_IT(__HANDLE__, __INTERRUPT__) __HAL_WWDG_CLEAR_FLAG((__HANDLE__), (__INTERRUPT__))
tushki7 0:60d829a0353a 246 /**
tushki7 0:60d829a0353a 247 * @}
tushki7 0:60d829a0353a 248 */
tushki7 0:60d829a0353a 249
tushki7 0:60d829a0353a 250 /* Exported functions --------------------------------------------------------*/
tushki7 0:60d829a0353a 251 /** @addtogroup WWDG_Exported_Functions WWDG Exported Functions
tushki7 0:60d829a0353a 252 * @{
tushki7 0:60d829a0353a 253 */
tushki7 0:60d829a0353a 254
tushki7 0:60d829a0353a 255 /** @addtogroup WWDG_Exported_Functions_Group1 Initialization and de-initialization functions
tushki7 0:60d829a0353a 256 * @brief Initialization and Configuration functions.
tushki7 0:60d829a0353a 257 * @{
tushki7 0:60d829a0353a 258 */
tushki7 0:60d829a0353a 259
tushki7 0:60d829a0353a 260 /* Initialization/de-initialization functions **********************************/
tushki7 0:60d829a0353a 261 HAL_StatusTypeDef HAL_WWDG_Init(WWDG_HandleTypeDef *hwwdg);
tushki7 0:60d829a0353a 262 HAL_StatusTypeDef HAL_WWDG_DeInit(WWDG_HandleTypeDef *hwwdg);
tushki7 0:60d829a0353a 263 void HAL_WWDG_MspInit(WWDG_HandleTypeDef *hwwdg);
tushki7 0:60d829a0353a 264 void HAL_WWDG_MspDeInit(WWDG_HandleTypeDef *hwwdg);
tushki7 0:60d829a0353a 265 void HAL_WWDG_WakeupCallback(WWDG_HandleTypeDef* hwwdg);
tushki7 0:60d829a0353a 266 /**
tushki7 0:60d829a0353a 267 * @}
tushki7 0:60d829a0353a 268 */
tushki7 0:60d829a0353a 269
tushki7 0:60d829a0353a 270 /** @addtogroup WWDG_Exported_Functions_Group2 Input and Output operation functions
tushki7 0:60d829a0353a 271 * @brief I/O operation functions
tushki7 0:60d829a0353a 272 * @{
tushki7 0:60d829a0353a 273 */
tushki7 0:60d829a0353a 274 /* I/O operation functions ******************************************************/
tushki7 0:60d829a0353a 275 HAL_StatusTypeDef HAL_WWDG_Start(WWDG_HandleTypeDef *hwwdg);
tushki7 0:60d829a0353a 276 HAL_StatusTypeDef HAL_WWDG_Start_IT(WWDG_HandleTypeDef *hwwdg);
tushki7 0:60d829a0353a 277 HAL_StatusTypeDef HAL_WWDG_Refresh(WWDG_HandleTypeDef *hwwdg, uint32_t Counter);
tushki7 0:60d829a0353a 278 void HAL_WWDG_IRQHandler(WWDG_HandleTypeDef *hwwdg);
tushki7 0:60d829a0353a 279 /**
tushki7 0:60d829a0353a 280 * @}
tushki7 0:60d829a0353a 281 */
tushki7 0:60d829a0353a 282
tushki7 0:60d829a0353a 283 /** @addtogroup WWDG_Exported_Functions_Group3 Peripheral State functions
tushki7 0:60d829a0353a 284 * @brief Peripheral State functions.
tushki7 0:60d829a0353a 285 * @{
tushki7 0:60d829a0353a 286 */
tushki7 0:60d829a0353a 287 /* Peripheral State functions **************************************************/
tushki7 0:60d829a0353a 288 HAL_WWDG_StateTypeDef HAL_WWDG_GetState(WWDG_HandleTypeDef *hwwdg);
tushki7 0:60d829a0353a 289 /**
tushki7 0:60d829a0353a 290 * @}
tushki7 0:60d829a0353a 291 */
tushki7 0:60d829a0353a 292
tushki7 0:60d829a0353a 293 /**
tushki7 0:60d829a0353a 294 * @}
tushki7 0:60d829a0353a 295 */
tushki7 0:60d829a0353a 296
tushki7 0:60d829a0353a 297 /**
tushki7 0:60d829a0353a 298 * @}
tushki7 0:60d829a0353a 299 */
tushki7 0:60d829a0353a 300
tushki7 0:60d829a0353a 301 /**
tushki7 0:60d829a0353a 302 * @}
tushki7 0:60d829a0353a 303 */
tushki7 0:60d829a0353a 304
tushki7 0:60d829a0353a 305 #ifdef __cplusplus
tushki7 0:60d829a0353a 306 }
tushki7 0:60d829a0353a 307 #endif
tushki7 0:60d829a0353a 308
tushki7 0:60d829a0353a 309 #endif /* __STM32F3xx_HAL_WWDG_H */
tushki7 0:60d829a0353a 310
tushki7 0:60d829a0353a 311 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/