Home
last modified time | relevance | path

Searched refs:GPIO_InitStruct (Results 1 – 25 of 69) sorted by relevance

123

/hal_stm32-latest/stm32cube/stm32mp1xx/drivers/src/
Dstm32mp1xx_ll_gpio.c199 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
205 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
206 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
207 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
211 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
214 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00000000U) in LL_GPIO_Init()
217 currentpin = (GPIO_InitStruct->Pin) & (0x00000001U << pinpos); in LL_GPIO_Init()
222 LL_GPIO_SetPinMode(GPIOx, currentpin, GPIO_InitStruct->Mode); in LL_GPIO_Init()
224 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
227 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32wlxx/drivers/src/
Dstm32wlxx_ll_gpio.c150 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
157 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
158 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
159 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
166 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
170 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00u) in LL_GPIO_Init()
173 currentpin = (GPIO_InitStruct->Pin) & (0x00000001uL << pinpos); in LL_GPIO_Init()
178 LL_GPIO_SetPinMode(GPIOx, currentpin, GPIO_InitStruct->Mode); in LL_GPIO_Init()
180 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
183 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32g4xx/drivers/src/
Dstm32g4xx_ll_gpio.c168 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
175 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
176 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
177 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
181 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
184 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00000000U) in LL_GPIO_Init()
187 currentpin = (GPIO_InitStruct->Pin) & (0x00000001UL << pinpos); in LL_GPIO_Init()
191 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
194 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
197 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32f2xx/drivers/src/
Dstm32f2xx_ll_gpio.c202 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
209 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
210 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
211 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
215 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
218 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00u) in LL_GPIO_Init()
221 currentpin = (GPIO_InitStruct->Pin) & (0x00000001uL << pinpos); in LL_GPIO_Init()
225 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
228 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
231 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32h5xx/drivers/src/
Dstm32h5xx_ll_gpio.c186 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
193 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
194 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
195 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
199 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
202 while (((GPIO_InitStruct->Pin) >> pinpos) != 0U) in LL_GPIO_Init()
205 currentpin = (GPIO_InitStruct->Pin) & (1UL << pinpos); in LL_GPIO_Init()
209 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
212 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
215 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32f3xx/drivers/src/
Dstm32f3xx_ll_gpio.c193 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
200 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
201 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
202 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
206 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
209 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00u) in LL_GPIO_Init()
212 currentpin = (GPIO_InitStruct->Pin) & (0x00000001uL << pinpos); in LL_GPIO_Init()
216 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
219 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
222 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_ll_gpio.c190 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
197 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
198 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
199 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
203 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
206 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00u) in LL_GPIO_Init()
209 currentpin = (GPIO_InitStruct->Pin) & (0x00000001uL << pinpos); in LL_GPIO_Init()
213 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
216 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
219 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32wbaxx/drivers/src/
Dstm32wbaxx_ll_gpio.c152 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
159 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
160 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
161 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
165 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
168 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00u) in LL_GPIO_Init()
171 currentpin = (GPIO_InitStruct->Pin) & (0x00000001uL << pinpos); in LL_GPIO_Init()
175 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
178 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
181 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32f0xx/drivers/src/
Dstm32f0xx_ll_gpio.c172 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
179 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
180 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
181 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
188 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00u) in LL_GPIO_Init()
191 currentpin = (GPIO_InitStruct->Pin) & (0x00000001uL << pinpos); in LL_GPIO_Init()
195 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
198 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
201 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
204 assert_param(IS_LL_GPIO_OUTPUT_TYPE(GPIO_InitStruct->OutputType)); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32l0xx/drivers/src/
Dstm32l0xx_ll_gpio.c156 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
163 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
164 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
165 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
172 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00000000U) in LL_GPIO_Init()
175 currentpin = (GPIO_InitStruct->Pin) & (0x00000001U << pinpos); in LL_GPIO_Init()
179 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
182 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
185 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
188 assert_param(IS_LL_GPIO_OUTPUT_TYPE(GPIO_InitStruct->OutputType)); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32f7xx/drivers/src/
Dstm32f7xx_ll_gpio.c199 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
206 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
207 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
208 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
212 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
215 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00000000U) in LL_GPIO_Init()
218 currentpin = (GPIO_InitStruct->Pin) & (0x00000001U << pinpos); in LL_GPIO_Init()
222 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
225 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
228 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32u5xx/drivers/src/
Dstm32u5xx_ll_gpio.c193 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
200 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
201 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
202 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
206 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
209 while (((GPIO_InitStruct->Pin) >> pinpos) != 0U) in LL_GPIO_Init()
212 currentpin = (GPIO_InitStruct->Pin) & (1UL << pinpos); in LL_GPIO_Init()
216 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
219 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
222 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_ll_gpio.c200 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
206 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
207 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
208 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
212 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
215 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00000000U) in LL_GPIO_Init()
218 currentpin = (GPIO_InitStruct->Pin) & (0x00000001UL << pinpos); in LL_GPIO_Init()
223 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
226 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
229 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32wb0x/drivers/src/
Dstm32wb0x_ll_gpio.c136 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
143 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
144 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
145 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
152 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00u) in LL_GPIO_Init()
155 currentpin = (GPIO_InitStruct->Pin) & (0x00000001uL << pinpos); in LL_GPIO_Init()
159 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
162 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
165 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
168 assert_param(IS_LL_GPIO_OUTPUT_TYPE(GPIO_InitStruct->OutputType)); in LL_GPIO_Init()
[all …]
Dstm32wb0x_hal_rcc_ex.c382 GPIO_InitTypeDef GPIO_InitStruct; in HAL_RCCEx_EnableLSCO() local
391 GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; in HAL_RCCEx_EnableLSCO()
392 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; in HAL_RCCEx_EnableLSCO()
396 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; in HAL_RCCEx_EnableLSCO()
397 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; in HAL_RCCEx_EnableLSCO()
399 GPIO_InitStruct.Pull = GPIO_NOPULL; in HAL_RCCEx_EnableLSCO()
407 GPIO_InitStruct.Pin = LSCO1_PIN; in HAL_RCCEx_EnableLSCO()
408 GPIO_InitStruct.Alternate = LSCO1_GPIO_AF; in HAL_RCCEx_EnableLSCO()
409 HAL_GPIO_Init(LSCO1_GPIO_PORT, &GPIO_InitStruct); in HAL_RCCEx_EnableLSCO()
418 GPIO_InitStruct.Pin = LSCO2_PIN; in HAL_RCCEx_EnableLSCO()
[all …]
/hal_stm32-latest/stm32cube/stm32wbxx/drivers/src/
Dstm32wbxx_ll_gpio.c169 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
176 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
177 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
178 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
182 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
185 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00u) in LL_GPIO_Init()
188 currentpin = (GPIO_InitStruct->Pin) & (0x00000001uL << pinpos); in LL_GPIO_Init()
192 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
195 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
198 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_ll_gpio.c178 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
185 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
186 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
187 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
191 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
194 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00000000U) in LL_GPIO_Init()
197 currentpin = (GPIO_InitStruct->Pin) & (1UL << pinpos); in LL_GPIO_Init()
201 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
204 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
207 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32l1xx/drivers/src/
Dstm32l1xx_ll_gpio.c178 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
185 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
186 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
187 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
191 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
194 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00000000U) in LL_GPIO_Init()
197 currentpin = (GPIO_InitStruct->Pin) & (0x00000001U << pinpos); in LL_GPIO_Init()
202 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
205 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
208 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32f4xx/drivers/src/
Dstm32f4xx_ll_gpio.c199 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
206 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
207 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
208 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
212 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
215 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00000000U) in LL_GPIO_Init()
218 currentpin = (GPIO_InitStruct->Pin) & (0x00000001U << pinpos); in LL_GPIO_Init()
223 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
226 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
229 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32h7rsxx/drivers/src/
Dstm32h7rsxx_ll_gpio.c194 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, const LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
201 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
202 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
203 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
207 pinpos = POSITION_VAL(GPIO_InitStruct->Pin); in LL_GPIO_Init()
210 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00u) in LL_GPIO_Init()
213 currentpin = (GPIO_InitStruct->Pin) & (0x00000001uL << pinpos); in LL_GPIO_Init()
217 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
220 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
223 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32u0xx/drivers/src/
Dstm32u0xx_ll_gpio.c163 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
170 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
171 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
172 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
179 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00u) in LL_GPIO_Init()
182 currentpin = (GPIO_InitStruct->Pin) & (0x00000001uL << pinpos); in LL_GPIO_Init()
186 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
189 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
192 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
195 assert_param(IS_LL_GPIO_OUTPUT_TYPE(GPIO_InitStruct->OutputType)); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32c0xx/drivers/src/
Dstm32c0xx_ll_gpio.c155 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
162 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
163 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
164 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
171 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00u) in LL_GPIO_Init()
174 currentpin = (GPIO_InitStruct->Pin) & (0x00000001uL << pinpos); in LL_GPIO_Init()
178 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
181 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
184 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
187 assert_param(IS_LL_GPIO_OUTPUT_TYPE(GPIO_InitStruct->OutputType)); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32g0xx/drivers/src/
Dstm32g0xx_ll_gpio.c175 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
182 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
183 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
184 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
191 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00u) in LL_GPIO_Init()
194 currentpin = (GPIO_InitStruct->Pin) & (0x00000001uL << pinpos); in LL_GPIO_Init()
198 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
201 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
204 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
207 assert_param(IS_LL_GPIO_OUTPUT_TYPE(GPIO_InitStruct->OutputType)); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32n6xx/drivers/src/
Dstm32n6xx_ll_gpio.c192 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, const LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
199 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
200 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
201 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
208 while (((GPIO_InitStruct->Pin) >> pinpos) != 0x00u) in LL_GPIO_Init()
211 currentpin = (GPIO_InitStruct->Pin) & (0x00000001uL << pinpos); in LL_GPIO_Init()
215 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
218 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
221 LL_GPIO_SetPinSpeed(GPIOx, currentpin, GPIO_InitStruct->Speed); in LL_GPIO_Init()
224 assert_param(IS_LL_GPIO_OUTPUT_TYPE(GPIO_InitStruct->OutputType)); in LL_GPIO_Init()
[all …]
/hal_stm32-latest/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_ll_gpio.c155 ErrorStatus LL_GPIO_Init(GPIO_TypeDef *GPIOx, LL_GPIO_InitTypeDef *GPIO_InitStruct) in LL_GPIO_Init() argument
163 assert_param(IS_LL_GPIO_PIN(GPIO_InitStruct->Pin)); in LL_GPIO_Init()
168 pinmask = ((GPIO_InitStruct->Pin) << GPIO_PIN_MASK_POS) >> GPIO_PIN_NB; in LL_GPIO_Init()
187 if (GPIO_InitStruct->Mode == LL_GPIO_MODE_INPUT) in LL_GPIO_Init()
190 assert_param(IS_LL_GPIO_PULL(GPIO_InitStruct->Pull)); in LL_GPIO_Init()
193 LL_GPIO_SetPinPull(GPIOx, currentpin, GPIO_InitStruct->Pull); in LL_GPIO_Init()
197 assert_param(IS_LL_GPIO_MODE(GPIO_InitStruct->Mode)); in LL_GPIO_Init()
200 LL_GPIO_SetPinMode(GPIOx, currentpin, GPIO_InitStruct->Mode); in LL_GPIO_Init()
202 …if ((GPIO_InitStruct->Mode == LL_GPIO_MODE_OUTPUT) || (GPIO_InitStruct->Mode == LL_GPIO_MODE_ALTER… in LL_GPIO_Init()
205 assert_param(IS_LL_GPIO_SPEED(GPIO_InitStruct->Speed)); in LL_GPIO_Init()
[all …]

123