Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
Kojto
Date:
Wed Nov 25 13:21:40 2015 +0000
Revision:
110:165afa46840b
Parent:
106:ba1f97679dad
Release 110  of the mbed library

Changes:
- new platforms - STM32F410R, DISCO_F429ZI, DISCO_F469NI
- Nucleo L476 - gcc and uvision template
- k22,k64f targets - ADC channels A addition
- EFM32 - bugfixes in sleep, serial and spi
- Delta DFCM NNN40 - pinnames update

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 92:4fc01daae5a5 1 /**
bogdanm 92:4fc01daae5a5 2 ******************************************************************************
bogdanm 92:4fc01daae5a5 3 * @file stm32f4xx_hal_rng.h
bogdanm 92:4fc01daae5a5 4 * @author MCD Application Team
Kojto 110:165afa46840b 5 * @version V1.4.1
Kojto 110:165afa46840b 6 * @date 09-October-2015
bogdanm 92:4fc01daae5a5 7 * @brief Header file of RNG HAL module.
bogdanm 92:4fc01daae5a5 8 ******************************************************************************
bogdanm 92:4fc01daae5a5 9 * @attention
bogdanm 92:4fc01daae5a5 10 *
Kojto 99:dbbf35b96557 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
bogdanm 92:4fc01daae5a5 12 *
bogdanm 92:4fc01daae5a5 13 * Redistribution and use in source and binary forms, with or without modification,
bogdanm 92:4fc01daae5a5 14 * are permitted provided that the following conditions are met:
bogdanm 92:4fc01daae5a5 15 * 1. Redistributions of source code must retain the above copyright notice,
bogdanm 92:4fc01daae5a5 16 * this list of conditions and the following disclaimer.
bogdanm 92:4fc01daae5a5 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
bogdanm 92:4fc01daae5a5 18 * this list of conditions and the following disclaimer in the documentation
bogdanm 92:4fc01daae5a5 19 * and/or other materials provided with the distribution.
bogdanm 92:4fc01daae5a5 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
bogdanm 92:4fc01daae5a5 21 * may be used to endorse or promote products derived from this software
bogdanm 92:4fc01daae5a5 22 * without specific prior written permission.
bogdanm 92:4fc01daae5a5 23 *
bogdanm 92:4fc01daae5a5 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
bogdanm 92:4fc01daae5a5 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
bogdanm 92:4fc01daae5a5 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
bogdanm 92:4fc01daae5a5 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
bogdanm 92:4fc01daae5a5 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
bogdanm 92:4fc01daae5a5 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
bogdanm 92:4fc01daae5a5 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
bogdanm 92:4fc01daae5a5 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
bogdanm 92:4fc01daae5a5 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
bogdanm 92:4fc01daae5a5 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
bogdanm 92:4fc01daae5a5 34 *
bogdanm 92:4fc01daae5a5 35 ******************************************************************************
Kojto 99:dbbf35b96557 36 */
bogdanm 92:4fc01daae5a5 37
bogdanm 92:4fc01daae5a5 38 /* Define to prevent recursive inclusion -------------------------------------*/
bogdanm 92:4fc01daae5a5 39 #ifndef __STM32F4xx_HAL_RNG_H
bogdanm 92:4fc01daae5a5 40 #define __STM32F4xx_HAL_RNG_H
bogdanm 92:4fc01daae5a5 41
bogdanm 92:4fc01daae5a5 42 #ifdef __cplusplus
bogdanm 92:4fc01daae5a5 43 extern "C" {
bogdanm 92:4fc01daae5a5 44 #endif
bogdanm 92:4fc01daae5a5 45
bogdanm 92:4fc01daae5a5 46 #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) ||\
Kojto 110:165afa46840b 47 defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||\
Kojto 110:165afa46840b 48 defined(STM32F410Tx) || defined(STM32F410Cx) || defined(STM32F410Rx) || defined(STM32F469xx) ||\
Kojto 110:165afa46840b 49 defined(STM32F479xx)
Kojto 99:dbbf35b96557 50
bogdanm 92:4fc01daae5a5 51 /* Includes ------------------------------------------------------------------*/
bogdanm 92:4fc01daae5a5 52 #include "stm32f4xx_hal_def.h"
bogdanm 92:4fc01daae5a5 53
bogdanm 92:4fc01daae5a5 54 /** @addtogroup STM32F4xx_HAL_Driver
bogdanm 92:4fc01daae5a5 55 * @{
bogdanm 92:4fc01daae5a5 56 */
bogdanm 92:4fc01daae5a5 57
Kojto 99:dbbf35b96557 58 /** @defgroup RNG RNG
Kojto 99:dbbf35b96557 59 * @brief RNG HAL module driver
bogdanm 92:4fc01daae5a5 60 * @{
Kojto 99:dbbf35b96557 61 */
bogdanm 92:4fc01daae5a5 62
bogdanm 92:4fc01daae5a5 63 /* Exported types ------------------------------------------------------------*/
bogdanm 92:4fc01daae5a5 64
Kojto 99:dbbf35b96557 65 /** @defgroup RNG_Exported_Types RNG Exported Types
Kojto 99:dbbf35b96557 66 * @{
Kojto 99:dbbf35b96557 67 */
Kojto 99:dbbf35b96557 68
Kojto 99:dbbf35b96557 69 /** @defgroup RNG_Exported_Types_Group1 RNG State Structure definition
Kojto 99:dbbf35b96557 70 * @{
Kojto 99:dbbf35b96557 71 */
bogdanm 92:4fc01daae5a5 72 typedef enum
bogdanm 92:4fc01daae5a5 73 {
bogdanm 92:4fc01daae5a5 74 HAL_RNG_STATE_RESET = 0x00, /*!< RNG not yet initialized or disabled */
bogdanm 92:4fc01daae5a5 75 HAL_RNG_STATE_READY = 0x01, /*!< RNG initialized and ready for use */
bogdanm 92:4fc01daae5a5 76 HAL_RNG_STATE_BUSY = 0x02, /*!< RNG internal process is ongoing */
bogdanm 92:4fc01daae5a5 77 HAL_RNG_STATE_TIMEOUT = 0x03, /*!< RNG timeout state */
bogdanm 92:4fc01daae5a5 78 HAL_RNG_STATE_ERROR = 0x04 /*!< RNG error state */
bogdanm 92:4fc01daae5a5 79
bogdanm 92:4fc01daae5a5 80 }HAL_RNG_StateTypeDef;
bogdanm 92:4fc01daae5a5 81
bogdanm 92:4fc01daae5a5 82 /**
Kojto 99:dbbf35b96557 83 * @}
Kojto 99:dbbf35b96557 84 */
Kojto 99:dbbf35b96557 85
Kojto 99:dbbf35b96557 86 /** @defgroup RNG_Exported_Types_Group2 RNG Handle Structure definition
Kojto 99:dbbf35b96557 87 * @{
bogdanm 92:4fc01daae5a5 88 */
bogdanm 92:4fc01daae5a5 89 typedef struct
bogdanm 92:4fc01daae5a5 90 {
Kojto 99:dbbf35b96557 91 RNG_TypeDef *Instance; /*!< Register base address */
Kojto 99:dbbf35b96557 92
Kojto 99:dbbf35b96557 93 HAL_LockTypeDef Lock; /*!< RNG locking object */
bogdanm 92:4fc01daae5a5 94
Kojto 99:dbbf35b96557 95 __IO HAL_RNG_StateTypeDef State; /*!< RNG communication state */
bogdanm 92:4fc01daae5a5 96
Kojto 99:dbbf35b96557 97 uint32_t RandomNumber; /*!< Last Generated RNG Data */
bogdanm 92:4fc01daae5a5 98
bogdanm 92:4fc01daae5a5 99 }RNG_HandleTypeDef;
bogdanm 92:4fc01daae5a5 100
Kojto 99:dbbf35b96557 101 /**
Kojto 99:dbbf35b96557 102 * @}
Kojto 99:dbbf35b96557 103 */
Kojto 99:dbbf35b96557 104
Kojto 99:dbbf35b96557 105 /**
Kojto 99:dbbf35b96557 106 * @}
Kojto 99:dbbf35b96557 107 */
Kojto 99:dbbf35b96557 108
bogdanm 92:4fc01daae5a5 109 /* Exported constants --------------------------------------------------------*/
bogdanm 92:4fc01daae5a5 110
Kojto 99:dbbf35b96557 111 /** @defgroup RNG_Exported_Constants RNG Exported Constants
bogdanm 92:4fc01daae5a5 112 * @{
bogdanm 92:4fc01daae5a5 113 */
bogdanm 92:4fc01daae5a5 114
Kojto 99:dbbf35b96557 115 /** @defgroup RNG_Exported_Constants_Group1 RNG Interrupt definition
bogdanm 92:4fc01daae5a5 116 * @{
Kojto 99:dbbf35b96557 117 */
Kojto 99:dbbf35b96557 118 #define RNG_IT_DRDY RNG_SR_DRDY /*!< Data Ready interrupt */
Kojto 99:dbbf35b96557 119 #define RNG_IT_CEI RNG_SR_CEIS /*!< Clock error interrupt */
Kojto 99:dbbf35b96557 120 #define RNG_IT_SEI RNG_SR_SEIS /*!< Seed error interrupt */
bogdanm 92:4fc01daae5a5 121 /**
bogdanm 92:4fc01daae5a5 122 * @}
bogdanm 92:4fc01daae5a5 123 */
bogdanm 92:4fc01daae5a5 124
Kojto 99:dbbf35b96557 125 /** @defgroup RNG_Exported_Constants_Group2 RNG Flag definition
bogdanm 92:4fc01daae5a5 126 * @{
Kojto 99:dbbf35b96557 127 */
Kojto 99:dbbf35b96557 128 #define RNG_FLAG_DRDY RNG_SR_DRDY /*!< Data ready */
Kojto 99:dbbf35b96557 129 #define RNG_FLAG_CECS RNG_SR_CECS /*!< Clock error current status */
Kojto 99:dbbf35b96557 130 #define RNG_FLAG_SECS RNG_SR_SECS /*!< Seed error current status */
bogdanm 92:4fc01daae5a5 131
bogdanm 92:4fc01daae5a5 132 /**
bogdanm 92:4fc01daae5a5 133 * @}
bogdanm 92:4fc01daae5a5 134 */
bogdanm 92:4fc01daae5a5 135
bogdanm 92:4fc01daae5a5 136 /**
bogdanm 92:4fc01daae5a5 137 * @}
bogdanm 92:4fc01daae5a5 138 */
bogdanm 92:4fc01daae5a5 139
Kojto 99:dbbf35b96557 140 /* Exported macros -----------------------------------------------------------*/
Kojto 99:dbbf35b96557 141
Kojto 99:dbbf35b96557 142 /** @defgroup RNG_Exported_Macros RNG Exported Macros
Kojto 99:dbbf35b96557 143 * @{
Kojto 99:dbbf35b96557 144 */
bogdanm 92:4fc01daae5a5 145
bogdanm 92:4fc01daae5a5 146 /** @brief Reset RNG handle state
bogdanm 92:4fc01daae5a5 147 * @param __HANDLE__: RNG Handle
bogdanm 92:4fc01daae5a5 148 * @retval None
bogdanm 92:4fc01daae5a5 149 */
bogdanm 92:4fc01daae5a5 150 #define __HAL_RNG_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_RNG_STATE_RESET)
bogdanm 92:4fc01daae5a5 151
bogdanm 92:4fc01daae5a5 152 /**
bogdanm 92:4fc01daae5a5 153 * @brief Enables the RNG peripheral.
bogdanm 92:4fc01daae5a5 154 * @param __HANDLE__: RNG Handle
bogdanm 92:4fc01daae5a5 155 * @retval None
bogdanm 92:4fc01daae5a5 156 */
bogdanm 92:4fc01daae5a5 157 #define __HAL_RNG_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= RNG_CR_RNGEN)
bogdanm 92:4fc01daae5a5 158
bogdanm 92:4fc01daae5a5 159 /**
bogdanm 92:4fc01daae5a5 160 * @brief Disables the RNG peripheral.
bogdanm 92:4fc01daae5a5 161 * @param __HANDLE__: RNG Handle
bogdanm 92:4fc01daae5a5 162 * @retval None
bogdanm 92:4fc01daae5a5 163 */
bogdanm 92:4fc01daae5a5 164 #define __HAL_RNG_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~RNG_CR_RNGEN)
bogdanm 92:4fc01daae5a5 165
bogdanm 92:4fc01daae5a5 166 /**
Kojto 99:dbbf35b96557 167 * @brief Check the selected RNG flag status.
bogdanm 92:4fc01daae5a5 168 * @param __HANDLE__: RNG Handle
bogdanm 92:4fc01daae5a5 169 * @param __FLAG__: RNG flag
Kojto 99:dbbf35b96557 170 * This parameter can be one of the following values:
Kojto 99:dbbf35b96557 171 * @arg RNG_FLAG_DRDY: Data ready
Kojto 99:dbbf35b96557 172 * @arg RNG_FLAG_CECS: Clock error current status
Kojto 99:dbbf35b96557 173 * @arg RNG_FLAG_SECS: Seed error current status
Kojto 99:dbbf35b96557 174 * @retval The new state of __FLAG__ (SET or RESET).
bogdanm 92:4fc01daae5a5 175 */
bogdanm 92:4fc01daae5a5 176 #define __HAL_RNG_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))
bogdanm 92:4fc01daae5a5 177
bogdanm 92:4fc01daae5a5 178 /**
Kojto 99:dbbf35b96557 179 * @brief Clears the selected RNG flag status.
Kojto 99:dbbf35b96557 180 * @param __HANDLE__: RNG handle
Kojto 99:dbbf35b96557 181 * @param __FLAG__: RNG flag to clear
Kojto 99:dbbf35b96557 182 * @note WARNING: This is a dummy macro for HAL code alignment,
Kojto 99:dbbf35b96557 183 * flags RNG_FLAG_DRDY, RNG_FLAG_CECS and RNG_FLAG_SECS are read-only.
bogdanm 92:4fc01daae5a5 184 * @retval None
bogdanm 92:4fc01daae5a5 185 */
Kojto 99:dbbf35b96557 186 #define __HAL_RNG_CLEAR_FLAG(__HANDLE__, __FLAG__) /* dummy macro */
Kojto 99:dbbf35b96557 187
Kojto 99:dbbf35b96557 188
Kojto 99:dbbf35b96557 189
bogdanm 92:4fc01daae5a5 190 /**
bogdanm 92:4fc01daae5a5 191 * @brief Enables the RNG interrupts.
bogdanm 92:4fc01daae5a5 192 * @param __HANDLE__: RNG Handle
bogdanm 92:4fc01daae5a5 193 * @retval None
bogdanm 92:4fc01daae5a5 194 */
bogdanm 92:4fc01daae5a5 195 #define __HAL_RNG_ENABLE_IT(__HANDLE__) ((__HANDLE__)->Instance->CR |= RNG_CR_IE)
bogdanm 92:4fc01daae5a5 196
bogdanm 92:4fc01daae5a5 197 /**
bogdanm 92:4fc01daae5a5 198 * @brief Disables the RNG interrupts.
bogdanm 92:4fc01daae5a5 199 * @param __HANDLE__: RNG Handle
bogdanm 92:4fc01daae5a5 200 * @retval None
bogdanm 92:4fc01daae5a5 201 */
bogdanm 92:4fc01daae5a5 202 #define __HAL_RNG_DISABLE_IT(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~RNG_CR_IE)
bogdanm 92:4fc01daae5a5 203
bogdanm 92:4fc01daae5a5 204 /**
bogdanm 92:4fc01daae5a5 205 * @brief Checks whether the specified RNG interrupt has occurred or not.
bogdanm 92:4fc01daae5a5 206 * @param __HANDLE__: RNG Handle
Kojto 99:dbbf35b96557 207 * @param __INTERRUPT__: specifies the RNG interrupt status flag to check.
bogdanm 92:4fc01daae5a5 208 * This parameter can be one of the following values:
Kojto 99:dbbf35b96557 209 * @arg RNG_IT_DRDY: Data ready interrupt
Kojto 99:dbbf35b96557 210 * @arg RNG_IT_CEI: Clock error interrupt
Kojto 99:dbbf35b96557 211 * @arg RNG_IT_SEI: Seed error interrupt
Kojto 99:dbbf35b96557 212 * @retval The new state of __INTERRUPT__ (SET or RESET).
bogdanm 92:4fc01daae5a5 213 */
bogdanm 92:4fc01daae5a5 214 #define __HAL_RNG_GET_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->SR & (__INTERRUPT__)) == (__INTERRUPT__))
bogdanm 92:4fc01daae5a5 215
Kojto 99:dbbf35b96557 216 /**
Kojto 99:dbbf35b96557 217 * @brief Clear the RNG interrupt status flags.
Kojto 99:dbbf35b96557 218 * @param __HANDLE__: RNG Handle
Kojto 99:dbbf35b96557 219 * @param __INTERRUPT__: specifies the RNG interrupt status flag to clear.
Kojto 99:dbbf35b96557 220 * This parameter can be one of the following values:
Kojto 99:dbbf35b96557 221 * @arg RNG_IT_CEI: Clock error interrupt
Kojto 99:dbbf35b96557 222 * @arg RNG_IT_SEI: Seed error interrupt
Kojto 99:dbbf35b96557 223 * @note RNG_IT_DRDY flag is read-only, reading RNG_DR register automatically clears RNG_IT_DRDY.
Kojto 99:dbbf35b96557 224 * @retval None
Kojto 99:dbbf35b96557 225 */
Kojto 99:dbbf35b96557 226 #define __HAL_RNG_CLEAR_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->SR) = ~(__INTERRUPT__))
bogdanm 92:4fc01daae5a5 227
Kojto 99:dbbf35b96557 228 /**
Kojto 99:dbbf35b96557 229 * @}
Kojto 99:dbbf35b96557 230 */
Kojto 99:dbbf35b96557 231
Kojto 99:dbbf35b96557 232 /* Exported functions --------------------------------------------------------*/
Kojto 99:dbbf35b96557 233 /** @defgroup RNG_Exported_Functions RNG Exported Functions
Kojto 99:dbbf35b96557 234 * @{
Kojto 99:dbbf35b96557 235 */
Kojto 99:dbbf35b96557 236
Kojto 99:dbbf35b96557 237 /** @defgroup RNG_Exported_Functions_Group1 Initialization and de-initialization functions
Kojto 99:dbbf35b96557 238 * @{
Kojto 99:dbbf35b96557 239 */
bogdanm 92:4fc01daae5a5 240 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng);
bogdanm 92:4fc01daae5a5 241 HAL_StatusTypeDef HAL_RNG_DeInit (RNG_HandleTypeDef *hrng);
bogdanm 92:4fc01daae5a5 242 void HAL_RNG_MspInit(RNG_HandleTypeDef *hrng);
bogdanm 92:4fc01daae5a5 243 void HAL_RNG_MspDeInit(RNG_HandleTypeDef *hrng);
bogdanm 92:4fc01daae5a5 244
Kojto 99:dbbf35b96557 245 /**
Kojto 99:dbbf35b96557 246 * @}
Kojto 99:dbbf35b96557 247 */
Kojto 99:dbbf35b96557 248
Kojto 99:dbbf35b96557 249 /** @defgroup RNG_Exported_Functions_Group2 Peripheral Control functions
Kojto 99:dbbf35b96557 250 * @{
Kojto 99:dbbf35b96557 251 */
Kojto 99:dbbf35b96557 252 uint32_t HAL_RNG_GetRandomNumber(RNG_HandleTypeDef *hrng); /* Obsolete, use HAL_RNG_GenerateRandomNumber() instead */
Kojto 99:dbbf35b96557 253 uint32_t HAL_RNG_GetRandomNumber_IT(RNG_HandleTypeDef *hrng); /* Obsolete, use HAL_RNG_GenerateRandomNumber_IT() instead */
Kojto 99:dbbf35b96557 254
Kojto 99:dbbf35b96557 255 HAL_StatusTypeDef HAL_RNG_GenerateRandomNumber(RNG_HandleTypeDef *hrng, uint32_t *random32bit);
Kojto 99:dbbf35b96557 256 HAL_StatusTypeDef HAL_RNG_GenerateRandomNumber_IT(RNG_HandleTypeDef *hrng);
Kojto 99:dbbf35b96557 257 uint32_t HAL_RNG_ReadLastRandomNumber(RNG_HandleTypeDef *hrng);
Kojto 99:dbbf35b96557 258
bogdanm 92:4fc01daae5a5 259 void HAL_RNG_IRQHandler(RNG_HandleTypeDef *hrng);
bogdanm 92:4fc01daae5a5 260 void HAL_RNG_ErrorCallback(RNG_HandleTypeDef *hrng);
Kojto 99:dbbf35b96557 261 void HAL_RNG_ReadyDataCallback(RNG_HandleTypeDef* hrng, uint32_t random32bit);
bogdanm 92:4fc01daae5a5 262
Kojto 99:dbbf35b96557 263 /**
Kojto 99:dbbf35b96557 264 * @}
Kojto 99:dbbf35b96557 265 */
Kojto 99:dbbf35b96557 266
Kojto 99:dbbf35b96557 267 /** @defgroup RNG_Exported_Functions_Group3 Peripheral State functions
Kojto 99:dbbf35b96557 268 * @{
Kojto 99:dbbf35b96557 269 */
bogdanm 92:4fc01daae5a5 270 HAL_RNG_StateTypeDef HAL_RNG_GetState(RNG_HandleTypeDef *hrng);
bogdanm 92:4fc01daae5a5 271
Kojto 99:dbbf35b96557 272 /**
Kojto 99:dbbf35b96557 273 * @}
Kojto 99:dbbf35b96557 274 */
Kojto 99:dbbf35b96557 275
Kojto 99:dbbf35b96557 276 /**
Kojto 99:dbbf35b96557 277 * @}
Kojto 99:dbbf35b96557 278 */
Kojto 99:dbbf35b96557 279
Kojto 99:dbbf35b96557 280 /* Private types -------------------------------------------------------------*/
Kojto 99:dbbf35b96557 281 /** @defgroup RNG_Private_Types RNG Private Types
Kojto 99:dbbf35b96557 282 * @{
Kojto 99:dbbf35b96557 283 */
Kojto 99:dbbf35b96557 284
Kojto 99:dbbf35b96557 285 /**
Kojto 99:dbbf35b96557 286 * @}
Kojto 99:dbbf35b96557 287 */
Kojto 99:dbbf35b96557 288
Kojto 99:dbbf35b96557 289 /* Private defines -----------------------------------------------------------*/
Kojto 99:dbbf35b96557 290 /** @defgroup RNG_Private_Defines RNG Private Defines
Kojto 99:dbbf35b96557 291 * @{
Kojto 99:dbbf35b96557 292 */
Kojto 99:dbbf35b96557 293
Kojto 99:dbbf35b96557 294 /**
Kojto 99:dbbf35b96557 295 * @}
Kojto 99:dbbf35b96557 296 */
Kojto 99:dbbf35b96557 297
Kojto 99:dbbf35b96557 298 /* Private variables ---------------------------------------------------------*/
Kojto 99:dbbf35b96557 299 /** @defgroup RNG_Private_Variables RNG Private Variables
Kojto 99:dbbf35b96557 300 * @{
Kojto 99:dbbf35b96557 301 */
Kojto 99:dbbf35b96557 302
Kojto 99:dbbf35b96557 303 /**
Kojto 99:dbbf35b96557 304 * @}
Kojto 99:dbbf35b96557 305 */
Kojto 99:dbbf35b96557 306
Kojto 99:dbbf35b96557 307 /* Private constants ---------------------------------------------------------*/
Kojto 99:dbbf35b96557 308 /** @defgroup RNG_Private_Constants RNG Private Constants
Kojto 99:dbbf35b96557 309 * @{
Kojto 99:dbbf35b96557 310 */
Kojto 99:dbbf35b96557 311
Kojto 99:dbbf35b96557 312 /**
Kojto 99:dbbf35b96557 313 * @}
Kojto 99:dbbf35b96557 314 */
Kojto 99:dbbf35b96557 315
Kojto 99:dbbf35b96557 316 /* Private macros ------------------------------------------------------------*/
Kojto 99:dbbf35b96557 317 /** @defgroup RNG_Private_Macros RNG Private Macros
Kojto 99:dbbf35b96557 318 * @{
Kojto 99:dbbf35b96557 319 */
Kojto 99:dbbf35b96557 320 #define IS_RNG_IT(IT) (((IT) == RNG_IT_CEI) || \
Kojto 99:dbbf35b96557 321 ((IT) == RNG_IT_SEI))
Kojto 99:dbbf35b96557 322
Kojto 99:dbbf35b96557 323 #define IS_RNG_FLAG(FLAG) (((FLAG) == RNG_FLAG_DRDY) || \
Kojto 99:dbbf35b96557 324 ((FLAG) == RNG_FLAG_CECS) || \
Kojto 99:dbbf35b96557 325 ((FLAG) == RNG_FLAG_SECS))
Kojto 99:dbbf35b96557 326
Kojto 99:dbbf35b96557 327 /**
Kojto 99:dbbf35b96557 328 * @}
Kojto 99:dbbf35b96557 329 */
Kojto 99:dbbf35b96557 330
Kojto 99:dbbf35b96557 331 /* Private functions prototypes ----------------------------------------------*/
Kojto 99:dbbf35b96557 332 /** @defgroup RNG_Private_Functions_Prototypes RNG Private Functions Prototypes
Kojto 99:dbbf35b96557 333 * @{
Kojto 99:dbbf35b96557 334 */
Kojto 99:dbbf35b96557 335
Kojto 99:dbbf35b96557 336 /**
Kojto 99:dbbf35b96557 337 * @}
Kojto 99:dbbf35b96557 338 */
Kojto 99:dbbf35b96557 339
Kojto 99:dbbf35b96557 340 /* Private functions ---------------------------------------------------------*/
Kojto 99:dbbf35b96557 341 /** @defgroup RNG_Private_Functions RNG Private Functions
Kojto 99:dbbf35b96557 342 * @{
Kojto 99:dbbf35b96557 343 */
Kojto 99:dbbf35b96557 344
Kojto 99:dbbf35b96557 345 /**
Kojto 99:dbbf35b96557 346 * @}
Kojto 99:dbbf35b96557 347 */
bogdanm 92:4fc01daae5a5 348
bogdanm 92:4fc01daae5a5 349 /**
bogdanm 92:4fc01daae5a5 350 * @}
bogdanm 92:4fc01daae5a5 351 */
bogdanm 92:4fc01daae5a5 352
bogdanm 92:4fc01daae5a5 353 /**
bogdanm 92:4fc01daae5a5 354 * @}
bogdanm 92:4fc01daae5a5 355 */
bogdanm 92:4fc01daae5a5 356
Kojto 110:165afa46840b 357 #endif /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F427xx || STM32F437xx ||\
Kojto 110:165afa46840b 358 STM32F429xx || STM32F439xx || STM32F410xx || STM32F469xx || STM32F479xx */
Kojto 99:dbbf35b96557 359
bogdanm 92:4fc01daae5a5 360 #ifdef __cplusplus
bogdanm 92:4fc01daae5a5 361 }
bogdanm 92:4fc01daae5a5 362 #endif
bogdanm 92:4fc01daae5a5 363
Kojto 99:dbbf35b96557 364
bogdanm 92:4fc01daae5a5 365 #endif /* __STM32F4xx_HAL_RNG_H */
bogdanm 92:4fc01daae5a5 366
bogdanm 92:4fc01daae5a5 367 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/