Initial commit

Dependencies:   FastPWM

Committer:
lypinator
Date:
Wed Sep 16 01:11:49 2020 +0000
Revision:
0:bb348c97df44
Added PWM

Who changed what in which revision?

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