Home
last modified time | relevance | path

Searched refs:hrng (Results 1 – 25 of 44) sorted by relevance

12

/hal_stm32-3.5.0/stm32cube/stm32wlxx/drivers/src/
Dstm32wlxx_hal_rng.c163 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) in HAL_RNG_Init() argument
167 if (hrng == NULL) in HAL_RNG_Init()
172 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNG_Init()
173 assert_param(IS_RNG_CED(hrng->Init.ClockErrorDetection)); in HAL_RNG_Init()
176 if (hrng->State == HAL_RNG_STATE_RESET) in HAL_RNG_Init()
179 hrng->Lock = HAL_UNLOCKED; in HAL_RNG_Init()
181 hrng->ReadyDataCallback = HAL_RNG_ReadyDataCallback; /* Legacy weak ReadyDataCallback */ in HAL_RNG_Init()
182 hrng->ErrorCallback = HAL_RNG_ErrorCallback; /* Legacy weak ErrorCallback */ in HAL_RNG_Init()
184 if (hrng->MspInitCallback == NULL) in HAL_RNG_Init()
186 hrng->MspInitCallback = HAL_RNG_MspInit; /* Legacy weak MspInit */ in HAL_RNG_Init()
[all …]
Dstm32wlxx_hal_rng_ex.c94 HAL_StatusTypeDef HAL_RNGEx_SetConfig(RNG_HandleTypeDef *hrng, RNG_ConfigTypeDef *pConf) in HAL_RNGEx_SetConfig() argument
101 if ((hrng == NULL) || (pConf == NULL)) in HAL_RNGEx_SetConfig()
107 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNGEx_SetConfig()
115 if (hrng->State == HAL_RNG_STATE_READY) in HAL_RNGEx_SetConfig()
118 hrng->State = HAL_RNG_STATE_BUSY; in HAL_RNGEx_SetConfig()
121 __HAL_RNG_DISABLE(hrng); in HAL_RNGEx_SetConfig()
133 MODIFY_REG(hrng->Instance->CR, RNG_CR_NISTC | RNG_CR_CLKDIV | RNG_CR_RNG_CONFIG1 in HAL_RNGEx_SetConfig()
139 WRITE_REG(hrng->Instance->HTCR, RNG_HTCFG_1); in HAL_RNGEx_SetConfig()
141 WRITE_REG(hrng->Instance->HTCR, RNG_HTCFG); in HAL_RNGEx_SetConfig()
145 CLEAR_BIT(hrng->Instance->CR, RNG_CR_CONDRST); in HAL_RNGEx_SetConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_hal_rng.c163 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) in HAL_RNG_Init() argument
167 if (hrng == NULL) in HAL_RNG_Init()
172 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNG_Init()
173 assert_param(IS_RNG_CED(hrng->Init.ClockErrorDetection)); in HAL_RNG_Init()
176 if (hrng->State == HAL_RNG_STATE_RESET) in HAL_RNG_Init()
179 hrng->Lock = HAL_UNLOCKED; in HAL_RNG_Init()
181 hrng->ReadyDataCallback = HAL_RNG_ReadyDataCallback; /* Legacy weak ReadyDataCallback */ in HAL_RNG_Init()
182 hrng->ErrorCallback = HAL_RNG_ErrorCallback; /* Legacy weak ErrorCallback */ in HAL_RNG_Init()
184 if (hrng->MspInitCallback == NULL) in HAL_RNG_Init()
186 hrng->MspInitCallback = HAL_RNG_MspInit; /* Legacy weak MspInit */ in HAL_RNG_Init()
[all …]
Dstm32l5xx_hal_rng_ex.c94 HAL_StatusTypeDef HAL_RNGEx_SetConfig(RNG_HandleTypeDef *hrng, RNG_ConfigTypeDef *pConf) in HAL_RNGEx_SetConfig() argument
101 if ((hrng == NULL) || (pConf == NULL)) in HAL_RNGEx_SetConfig()
107 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNGEx_SetConfig()
115 if (hrng->State == HAL_RNG_STATE_READY) in HAL_RNGEx_SetConfig()
118 hrng->State = HAL_RNG_STATE_BUSY; in HAL_RNGEx_SetConfig()
121 __HAL_RNG_DISABLE(hrng); in HAL_RNGEx_SetConfig()
133 MODIFY_REG(hrng->Instance->CR, RNG_CR_NISTC | RNG_CR_CLKDIV | RNG_CR_RNG_CONFIG1 in HAL_RNGEx_SetConfig()
139 WRITE_REG(hrng->Instance->HTCR, RNG_HTCFG_1); in HAL_RNGEx_SetConfig()
141 WRITE_REG(hrng->Instance->HTCR, RNG_HTCFG); in HAL_RNGEx_SetConfig()
145 CLEAR_BIT(hrng->Instance->CR, RNG_CR_CONDRST); in HAL_RNGEx_SetConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_hal_rng.c167 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) in HAL_RNG_Init() argument
171 if (hrng == NULL) in HAL_RNG_Init()
176 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNG_Init()
177 assert_param(IS_RNG_CED(hrng->Init.ClockErrorDetection)); in HAL_RNG_Init()
180 if (hrng->State == HAL_RNG_STATE_RESET) in HAL_RNG_Init()
183 hrng->Lock = HAL_UNLOCKED; in HAL_RNG_Init()
185 hrng->ReadyDataCallback = HAL_RNG_ReadyDataCallback; /* Legacy weak ReadyDataCallback */ in HAL_RNG_Init()
186 hrng->ErrorCallback = HAL_RNG_ErrorCallback; /* Legacy weak ErrorCallback */ in HAL_RNG_Init()
188 if (hrng->MspInitCallback == NULL) in HAL_RNG_Init()
190 hrng->MspInitCallback = HAL_RNG_MspInit; /* Legacy weak MspInit */ in HAL_RNG_Init()
[all …]
Dstm32h7xx_hal_rng_ex.c98 HAL_StatusTypeDef HAL_RNGEx_SetConfig(RNG_HandleTypeDef *hrng, RNG_ConfigTypeDef *pConf) in HAL_RNGEx_SetConfig() argument
105 if ((hrng == NULL) || (pConf == NULL)) in HAL_RNGEx_SetConfig()
111 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNGEx_SetConfig()
119 if (hrng->State == HAL_RNG_STATE_READY) in HAL_RNGEx_SetConfig()
122 hrng->State = HAL_RNG_STATE_BUSY; in HAL_RNGEx_SetConfig()
125 __HAL_RNG_DISABLE(hrng); in HAL_RNGEx_SetConfig()
137 MODIFY_REG(hrng->Instance->CR, RNG_CR_NISTC | RNG_CR_CLKDIV | RNG_CR_RNG_CONFIG1 in HAL_RNGEx_SetConfig()
143 WRITE_REG(hrng->Instance->HTCR, RNG_HTCFG_1); in HAL_RNGEx_SetConfig()
145 WRITE_REG(hrng->Instance->HTCR, RNG_HTCFG); in HAL_RNGEx_SetConfig()
149 CLEAR_BIT(hrng->Instance->CR, RNG_CR_CONDRST); in HAL_RNGEx_SetConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32u5xx/drivers/src/
Dstm32u5xx_hal_rng.c154 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) in HAL_RNG_Init() argument
158 if (hrng == NULL) in HAL_RNG_Init()
163 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNG_Init()
164 assert_param(IS_RNG_CED(hrng->Init.ClockErrorDetection)); in HAL_RNG_Init()
167 if (hrng->State == HAL_RNG_STATE_RESET) in HAL_RNG_Init()
170 hrng->Lock = HAL_UNLOCKED; in HAL_RNG_Init()
172 hrng->ReadyDataCallback = HAL_RNG_ReadyDataCallback; /* Legacy weak ReadyDataCallback */ in HAL_RNG_Init()
173 hrng->ErrorCallback = HAL_RNG_ErrorCallback; /* Legacy weak ErrorCallback */ in HAL_RNG_Init()
175 if (hrng->MspInitCallback == NULL) in HAL_RNG_Init()
177 hrng->MspInitCallback = HAL_RNG_MspInit; /* Legacy weak MspInit */ in HAL_RNG_Init()
[all …]
Dstm32u5xx_hal_rng_ex.c85 HAL_StatusTypeDef HAL_RNGEx_SetConfig(RNG_HandleTypeDef *hrng, const RNG_ConfigTypeDef *pConf) in HAL_RNGEx_SetConfig() argument
92 if ((hrng == NULL) || (pConf == NULL)) in HAL_RNGEx_SetConfig()
98 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNGEx_SetConfig()
107 if (hrng->State == HAL_RNG_STATE_READY) in HAL_RNGEx_SetConfig()
110 hrng->State = HAL_RNG_STATE_BUSY; in HAL_RNGEx_SetConfig()
113 __HAL_RNG_DISABLE(hrng); in HAL_RNGEx_SetConfig()
125 MODIFY_REG(hrng->Instance->CR, RNG_CR_NISTC | RNG_CR_CLKDIV | RNG_CR_RNG_CONFIG1 in HAL_RNGEx_SetConfig()
130 WRITE_REG(hrng->Instance->HTCR, pConf->HealthTest); in HAL_RNGEx_SetConfig()
133 CLEAR_BIT(hrng->Instance->CR, RNG_CR_CONDRST); in HAL_RNGEx_SetConfig()
138 while (HAL_IS_BIT_SET(hrng->Instance->CR, RNG_CR_CONDRST)) in HAL_RNGEx_SetConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32wbaxx/drivers/src/
Dstm32wbaxx_hal_rng.c154 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) in HAL_RNG_Init() argument
158 if (hrng == NULL) in HAL_RNG_Init()
163 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNG_Init()
164 assert_param(IS_RNG_CED(hrng->Init.ClockErrorDetection)); in HAL_RNG_Init()
167 if (hrng->State == HAL_RNG_STATE_RESET) in HAL_RNG_Init()
170 hrng->Lock = HAL_UNLOCKED; in HAL_RNG_Init()
172 hrng->ReadyDataCallback = HAL_RNG_ReadyDataCallback; /* Legacy weak ReadyDataCallback */ in HAL_RNG_Init()
173 hrng->ErrorCallback = HAL_RNG_ErrorCallback; /* Legacy weak ErrorCallback */ in HAL_RNG_Init()
175 if (hrng->MspInitCallback == NULL) in HAL_RNG_Init()
177 hrng->MspInitCallback = HAL_RNG_MspInit; /* Legacy weak MspInit */ in HAL_RNG_Init()
[all …]
Dstm32wbaxx_hal_rng_ex.c85 HAL_StatusTypeDef HAL_RNGEx_SetConfig(RNG_HandleTypeDef *hrng, const RNG_ConfigTypeDef *pConf) in HAL_RNGEx_SetConfig() argument
92 if ((hrng == NULL) || (pConf == NULL)) in HAL_RNGEx_SetConfig()
98 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNGEx_SetConfig()
107 if (hrng->State == HAL_RNG_STATE_READY) in HAL_RNGEx_SetConfig()
110 hrng->State = HAL_RNG_STATE_BUSY; in HAL_RNGEx_SetConfig()
113 __HAL_RNG_DISABLE(hrng); in HAL_RNGEx_SetConfig()
125 MODIFY_REG(hrng->Instance->CR, RNG_CR_NISTC | RNG_CR_CLKDIV | RNG_CR_RNG_CONFIG1 in HAL_RNGEx_SetConfig()
130 WRITE_REG(hrng->Instance->HTCR, pConf->HealthTest); in HAL_RNGEx_SetConfig()
133 CLEAR_BIT(hrng->Instance->CR, RNG_CR_CONDRST); in HAL_RNGEx_SetConfig()
138 while (HAL_IS_BIT_SET(hrng->Instance->CR, RNG_CR_CONDRST)) in HAL_RNGEx_SetConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32h5xx/drivers/src/
Dstm32h5xx_hal_rng.c154 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) in HAL_RNG_Init() argument
158 if (hrng == NULL) in HAL_RNG_Init()
163 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNG_Init()
164 assert_param(IS_RNG_CED(hrng->Init.ClockErrorDetection)); in HAL_RNG_Init()
167 if (hrng->State == HAL_RNG_STATE_RESET) in HAL_RNG_Init()
170 hrng->Lock = HAL_UNLOCKED; in HAL_RNG_Init()
172 hrng->ReadyDataCallback = HAL_RNG_ReadyDataCallback; /* Legacy weak ReadyDataCallback */ in HAL_RNG_Init()
173 hrng->ErrorCallback = HAL_RNG_ErrorCallback; /* Legacy weak ErrorCallback */ in HAL_RNG_Init()
175 if (hrng->MspInitCallback == NULL) in HAL_RNG_Init()
177 hrng->MspInitCallback = HAL_RNG_MspInit; /* Legacy weak MspInit */ in HAL_RNG_Init()
[all …]
Dstm32h5xx_hal_rng_ex.c85 HAL_StatusTypeDef HAL_RNGEx_SetConfig(RNG_HandleTypeDef *hrng, RNG_ConfigTypeDef *pConf) in HAL_RNGEx_SetConfig() argument
92 if ((hrng == NULL) || (pConf == NULL)) in HAL_RNGEx_SetConfig()
98 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNGEx_SetConfig()
107 if (hrng->State == HAL_RNG_STATE_READY) in HAL_RNGEx_SetConfig()
110 hrng->State = HAL_RNG_STATE_BUSY; in HAL_RNGEx_SetConfig()
113 __HAL_RNG_DISABLE(hrng); in HAL_RNGEx_SetConfig()
125 MODIFY_REG(hrng->Instance->CR, RNG_CR_NISTC | RNG_CR_CLKDIV | RNG_CR_RNG_CONFIG1 in HAL_RNGEx_SetConfig()
130 WRITE_REG(hrng->Instance->HTCR, pConf->HealthTest); in HAL_RNGEx_SetConfig()
133 CLEAR_BIT(hrng->Instance->CR, RNG_CR_CONDRST); in HAL_RNGEx_SetConfig()
138 while (HAL_IS_BIT_SET(hrng->Instance->CR, RNG_CR_CONDRST)) in HAL_RNGEx_SetConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_hal_rng.c155 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) in HAL_RNG_Init() argument
162 if (hrng == NULL) in HAL_RNG_Init()
167 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNG_Init()
169 assert_param(IS_RNG_CED(hrng->Init.ClockErrorDetection)); in HAL_RNG_Init()
173 if (hrng->State == HAL_RNG_STATE_RESET) in HAL_RNG_Init()
176 hrng->Lock = HAL_UNLOCKED; in HAL_RNG_Init()
178 hrng->ReadyDataCallback = HAL_RNG_ReadyDataCallback; /* Legacy weak ReadyDataCallback */ in HAL_RNG_Init()
179 hrng->ErrorCallback = HAL_RNG_ErrorCallback; /* Legacy weak ErrorCallback */ in HAL_RNG_Init()
181 if (hrng->MspInitCallback == NULL) in HAL_RNG_Init()
183 hrng->MspInitCallback = HAL_RNG_MspInit; /* Legacy weak MspInit */ in HAL_RNG_Init()
[all …]
Dstm32l4xx_hal_rng_ex.c100 HAL_StatusTypeDef HAL_RNGEx_SetConfig(RNG_HandleTypeDef *hrng, RNG_ConfigTypeDef *pConf) in HAL_RNGEx_SetConfig() argument
107 if ((hrng == NULL)||(pConf == NULL)) in HAL_RNGEx_SetConfig()
113 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNGEx_SetConfig()
121 if (hrng->State == HAL_RNG_STATE_READY) in HAL_RNGEx_SetConfig()
124 hrng->State = HAL_RNG_STATE_BUSY; in HAL_RNGEx_SetConfig()
127 __HAL_RNG_DISABLE(hrng); in HAL_RNGEx_SetConfig()
139 MODIFY_REG(hrng->Instance->CR, RNG_CR_NISTC | RNG_CR_CLKDIV | RNG_CR_RNG_CONFIG1 in HAL_RNGEx_SetConfig()
145 WRITE_REG(hrng->Instance->HTCR, RNG_HTCFG_1); in HAL_RNGEx_SetConfig()
147 WRITE_REG(hrng->Instance->HTCR, RNG_HTCFG); in HAL_RNGEx_SetConfig()
151 CLEAR_BIT(hrng->Instance->CR, RNG_CR_CONDRST); in HAL_RNGEx_SetConfig()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f7xx/drivers/src/
Dstm32f7xx_hal_rng.c155 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) in HAL_RNG_Init() argument
158 if (hrng == NULL) in HAL_RNG_Init()
163 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNG_Init()
166 if (hrng->State == HAL_RNG_STATE_RESET) in HAL_RNG_Init()
169 hrng->Lock = HAL_UNLOCKED; in HAL_RNG_Init()
171 hrng->ReadyDataCallback = HAL_RNG_ReadyDataCallback; /* Legacy weak ReadyDataCallback */ in HAL_RNG_Init()
172 hrng->ErrorCallback = HAL_RNG_ErrorCallback; /* Legacy weak ErrorCallback */ in HAL_RNG_Init()
174 if (hrng->MspInitCallback == NULL) in HAL_RNG_Init()
176 hrng->MspInitCallback = HAL_RNG_MspInit; /* Legacy weak MspInit */ in HAL_RNG_Init()
180 hrng->MspInitCallback(hrng); in HAL_RNG_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f4xx/drivers/src/
Dstm32f4xx_hal_rng.c155 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) in HAL_RNG_Init() argument
158 if (hrng == NULL) in HAL_RNG_Init()
163 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNG_Init()
166 if (hrng->State == HAL_RNG_STATE_RESET) in HAL_RNG_Init()
169 hrng->Lock = HAL_UNLOCKED; in HAL_RNG_Init()
171 hrng->ReadyDataCallback = HAL_RNG_ReadyDataCallback; /* Legacy weak ReadyDataCallback */ in HAL_RNG_Init()
172 hrng->ErrorCallback = HAL_RNG_ErrorCallback; /* Legacy weak ErrorCallback */ in HAL_RNG_Init()
174 if (hrng->MspInitCallback == NULL) in HAL_RNG_Init()
176 hrng->MspInitCallback = HAL_RNG_MspInit; /* Legacy weak MspInit */ in HAL_RNG_Init()
180 hrng->MspInitCallback(hrng); in HAL_RNG_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f2xx/drivers/src/
Dstm32f2xx_hal_rng.c155 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) in HAL_RNG_Init() argument
158 if (hrng == NULL) in HAL_RNG_Init()
163 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNG_Init()
166 if (hrng->State == HAL_RNG_STATE_RESET) in HAL_RNG_Init()
169 hrng->Lock = HAL_UNLOCKED; in HAL_RNG_Init()
171 hrng->ReadyDataCallback = HAL_RNG_ReadyDataCallback; /* Legacy weak ReadyDataCallback */ in HAL_RNG_Init()
172 hrng->ErrorCallback = HAL_RNG_ErrorCallback; /* Legacy weak ErrorCallback */ in HAL_RNG_Init()
174 if (hrng->MspInitCallback == NULL) in HAL_RNG_Init()
176 hrng->MspInitCallback = HAL_RNG_MspInit; /* Legacy weak MspInit */ in HAL_RNG_Init()
180 hrng->MspInitCallback(hrng); in HAL_RNG_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l0xx/drivers/src/
Dstm32l0xx_hal_rng.c155 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) in HAL_RNG_Init() argument
158 if (hrng == NULL) in HAL_RNG_Init()
163 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNG_Init()
166 if (hrng->State == HAL_RNG_STATE_RESET) in HAL_RNG_Init()
169 hrng->Lock = HAL_UNLOCKED; in HAL_RNG_Init()
171 hrng->ReadyDataCallback = HAL_RNG_ReadyDataCallback; /* Legacy weak ReadyDataCallback */ in HAL_RNG_Init()
172 hrng->ErrorCallback = HAL_RNG_ErrorCallback; /* Legacy weak ErrorCallback */ in HAL_RNG_Init()
174 if (hrng->MspInitCallback == NULL) in HAL_RNG_Init()
176 hrng->MspInitCallback = HAL_RNG_MspInit; /* Legacy weak MspInit */ in HAL_RNG_Init()
180 hrng->MspInitCallback(hrng); in HAL_RNG_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32g0xx/drivers/src/
Dstm32g0xx_hal_rng.c155 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) in HAL_RNG_Init() argument
158 if (hrng == NULL) in HAL_RNG_Init()
163 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNG_Init()
164 assert_param(IS_RNG_CED(hrng->Init.ClockErrorDetection)); in HAL_RNG_Init()
167 if (hrng->State == HAL_RNG_STATE_RESET) in HAL_RNG_Init()
170 hrng->Lock = HAL_UNLOCKED; in HAL_RNG_Init()
172 hrng->ReadyDataCallback = HAL_RNG_ReadyDataCallback; /* Legacy weak ReadyDataCallback */ in HAL_RNG_Init()
173 hrng->ErrorCallback = HAL_RNG_ErrorCallback; /* Legacy weak ErrorCallback */ in HAL_RNG_Init()
175 if (hrng->MspInitCallback == NULL) in HAL_RNG_Init()
177 hrng->MspInitCallback = HAL_RNG_MspInit; /* Legacy weak MspInit */ in HAL_RNG_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32mp1xx/drivers/src/
Dstm32mp1xx_hal_rng.c155 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) in HAL_RNG_Init() argument
158 if (hrng == NULL) in HAL_RNG_Init()
163 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNG_Init()
164 assert_param(IS_RNG_CED(hrng->Init.ClockErrorDetection)); in HAL_RNG_Init()
167 if (hrng->State == HAL_RNG_STATE_RESET) in HAL_RNG_Init()
170 hrng->Lock = HAL_UNLOCKED; in HAL_RNG_Init()
172 hrng->ReadyDataCallback = HAL_RNG_ReadyDataCallback; /* Legacy weak ReadyDataCallback */ in HAL_RNG_Init()
173 hrng->ErrorCallback = HAL_RNG_ErrorCallback; /* Legacy weak ErrorCallback */ in HAL_RNG_Init()
175 if (hrng->MspInitCallback == NULL) in HAL_RNG_Init()
177 hrng->MspInitCallback = HAL_RNG_MspInit; /* Legacy weak MspInit */ in HAL_RNG_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32g4xx/drivers/src/
Dstm32g4xx_hal_rng.c155 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) in HAL_RNG_Init() argument
158 if (hrng == NULL) in HAL_RNG_Init()
163 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNG_Init()
164 assert_param(IS_RNG_CED(hrng->Init.ClockErrorDetection)); in HAL_RNG_Init()
167 if (hrng->State == HAL_RNG_STATE_RESET) in HAL_RNG_Init()
170 hrng->Lock = HAL_UNLOCKED; in HAL_RNG_Init()
172 hrng->ReadyDataCallback = HAL_RNG_ReadyDataCallback; /* Legacy weak ReadyDataCallback */ in HAL_RNG_Init()
173 hrng->ErrorCallback = HAL_RNG_ErrorCallback; /* Legacy weak ErrorCallback */ in HAL_RNG_Init()
175 if (hrng->MspInitCallback == NULL) in HAL_RNG_Init()
177 hrng->MspInitCallback = HAL_RNG_MspInit; /* Legacy weak MspInit */ in HAL_RNG_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32wbxx/drivers/src/
Dstm32wbxx_hal_rng.c155 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) in HAL_RNG_Init() argument
158 if (hrng == NULL) in HAL_RNG_Init()
163 assert_param(IS_RNG_ALL_INSTANCE(hrng->Instance)); in HAL_RNG_Init()
164 assert_param(IS_RNG_CED(hrng->Init.ClockErrorDetection)); in HAL_RNG_Init()
167 if (hrng->State == HAL_RNG_STATE_RESET) in HAL_RNG_Init()
170 hrng->Lock = HAL_UNLOCKED; in HAL_RNG_Init()
172 hrng->ReadyDataCallback = HAL_RNG_ReadyDataCallback; /* Legacy weak ReadyDataCallback */ in HAL_RNG_Init()
173 hrng->ErrorCallback = HAL_RNG_ErrorCallback; /* Legacy weak ErrorCallback */ in HAL_RNG_Init()
175 if (hrng->MspInitCallback == NULL) in HAL_RNG_Init()
177 hrng->MspInitCallback = HAL_RNG_MspInit; /* Legacy weak MspInit */ in HAL_RNG_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l0xx/drivers/include/
Dstm32l0xx_hal_rng.h92 …void (* ReadyDataCallback)(struct __RNG_HandleTypeDef *hrng, uint32_t random32bit); /*!< RNG Data…
93 …void (* ErrorCallback)(struct __RNG_HandleTypeDef *hrng); /*!< RNG Erro…
95 …void (* MspInitCallback)(struct __RNG_HandleTypeDef *hrng); /*!< RNG Msp …
96 …void (* MspDeInitCallback)(struct __RNG_HandleTypeDef *hrng); /*!< RNG Msp …
117 typedef void (*pRNG_CallbackTypeDef)(RNG_HandleTypeDef *hrng); /*…
118 typedef void (*pRNG_ReadyDataCallbackTypeDef)(RNG_HandleTypeDef *hrng, uint32_t random32bit); /*…
279 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng);
280 HAL_StatusTypeDef HAL_RNG_DeInit(RNG_HandleTypeDef *hrng);
281 void HAL_RNG_MspInit(RNG_HandleTypeDef *hrng);
282 void HAL_RNG_MspDeInit(RNG_HandleTypeDef *hrng);
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f4xx/drivers/include/
Dstm32f4xx_hal_rng.h92 …void (* ReadyDataCallback)(struct __RNG_HandleTypeDef *hrng, uint32_t random32bit); /*!< RNG Data…
93 …void (* ErrorCallback)(struct __RNG_HandleTypeDef *hrng); /*!< RNG Erro…
95 …void (* MspInitCallback)(struct __RNG_HandleTypeDef *hrng); /*!< RNG Msp …
96 …void (* MspDeInitCallback)(struct __RNG_HandleTypeDef *hrng); /*!< RNG Msp …
117 typedef void (*pRNG_CallbackTypeDef)(RNG_HandleTypeDef *hrng); /*…
118 typedef void (*pRNG_ReadyDataCallbackTypeDef)(RNG_HandleTypeDef *hrng, uint32_t random32bit); /*…
279 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng);
280 HAL_StatusTypeDef HAL_RNG_DeInit(RNG_HandleTypeDef *hrng);
281 void HAL_RNG_MspInit(RNG_HandleTypeDef *hrng);
282 void HAL_RNG_MspDeInit(RNG_HandleTypeDef *hrng);
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f2xx/drivers/include/
Dstm32f2xx_hal_rng.h92 …void (* ReadyDataCallback)(struct __RNG_HandleTypeDef *hrng, uint32_t random32bit); /*!< RNG Data…
93 …void (* ErrorCallback)(struct __RNG_HandleTypeDef *hrng); /*!< RNG Erro…
95 …void (* MspInitCallback)(struct __RNG_HandleTypeDef *hrng); /*!< RNG Msp …
96 …void (* MspDeInitCallback)(struct __RNG_HandleTypeDef *hrng); /*!< RNG Msp …
117 typedef void (*pRNG_CallbackTypeDef)(RNG_HandleTypeDef *hrng); /*…
118 typedef void (*pRNG_ReadyDataCallbackTypeDef)(RNG_HandleTypeDef *hrng, uint32_t random32bit); /*…
279 HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng);
280 HAL_StatusTypeDef HAL_RNG_DeInit(RNG_HandleTypeDef *hrng);
281 void HAL_RNG_MspInit(RNG_HandleTypeDef *hrng);
282 void HAL_RNG_MspDeInit(RNG_HandleTypeDef *hrng);
[all …]

12