Home
last modified time | relevance | path

Searched refs:position (Results 1 – 25 of 32) sorted by relevance

12

/hal_stm32-3.5.0/stm32cube/stm32u5xx/drivers/src/
Dstm32u5xx_hal_gpio.c205 uint32_t position = 0U; in HAL_GPIO_Init() local
217 while (((pGPIO_Init->Pin) >> position) != 0U) in HAL_GPIO_Init()
220 iocurrent = (pGPIO_Init->Pin) & (1UL << position); in HAL_GPIO_Init()
223 pin_position = position; in HAL_GPIO_Init()
233 tmp &= ~(LPGPIO_MODER_MOD0 << position); in HAL_GPIO_Init()
234 tmp |= ((pGPIO_Init->Mode & GPIO_MODE_OUTPUT_PP) << position); in HAL_GPIO_Init()
238 p_gpio = LPGPIO_Map[position].GPIO_PORT; in HAL_GPIO_Init()
239 pin_position = LPGPIO_Map[position].Pin_Pos; in HAL_GPIO_Init()
261 tmp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
262 tmp &= ~(0x0FUL << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
[all …]
Dstm32u5xx_hal_gtzc.c2018 uint32_t position; in HAL_GTZC_IRQHandler() local
2038 position = 0U; in HAL_GTZC_IRQHandler()
2039 while ((flag >> position) != 0U) in HAL_GTZC_IRQHandler()
2041 if ((flag & (1UL << position)) != 0U) in HAL_GTZC_IRQHandler()
2043 HAL_GTZC_TZIC_Callback(GTZC1_PERIPH_REG1 | position); in HAL_GTZC_IRQHandler()
2047 position++; in HAL_GTZC_IRQHandler()
2062 position = 0U; in HAL_GTZC_IRQHandler()
2063 while ((flag >> position) != 0U) in HAL_GTZC_IRQHandler()
2065 if ((flag & (1UL << position)) != 0U) in HAL_GTZC_IRQHandler()
2067 HAL_GTZC_TZIC_Callback(GTZC1_PERIPH_REG2 | position); in HAL_GTZC_IRQHandler()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_hal_gpio.c161 uint32_t position = 0U; in HAL_GPIO_Init() local
171 while (((GPIO_Init->Pin) >> position) != 0U) in HAL_GPIO_Init()
174 iocurrent = (GPIO_Init->Pin) & (1UL << position); in HAL_GPIO_Init()
187 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); in HAL_GPIO_Init()
188 temp |= (GPIO_Init->Speed << (position * 2U)); in HAL_GPIO_Init()
193 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
194 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
205 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
206 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
218 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
[all …]
Dstm32l5xx_hal_gtzc.c1395 uint32_t position; in HAL_GTZC_IRQHandler() local
1411 position = 0U; in HAL_GTZC_IRQHandler()
1412 while ((flag >> position) != 0U) in HAL_GTZC_IRQHandler()
1414 if ((flag & (1UL << position)) != 0U) in HAL_GTZC_IRQHandler()
1416 HAL_GTZC_TZIC_Callback(GTZC_PERIPH_REG1 | position); in HAL_GTZC_IRQHandler()
1420 position++; in HAL_GTZC_IRQHandler()
1435 position = 0U; in HAL_GTZC_IRQHandler()
1436 while ((flag >> position) != 0U) in HAL_GTZC_IRQHandler()
1438 if ((flag & (1UL << position)) != 0U) in HAL_GTZC_IRQHandler()
1440 HAL_GTZC_TZIC_Callback(GTZC_PERIPH_REG2 | position); in HAL_GTZC_IRQHandler()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32h5xx/drivers/src/
Dstm32h5xx_hal_gpio.c182 uint32_t position = 0U; in HAL_GPIO_Init() local
192 while (((pGPIO_Init->Pin) >> position) != 0U) in HAL_GPIO_Init()
195 iocurrent = (pGPIO_Init->Pin) & (1UL << position); in HAL_GPIO_Init()
208 tmp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
209 tmp &= ~(0x0FUL << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
210 tmp |= ((pGPIO_Init->Alternate & 0x0FUL) << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
211 GPIOx->AFR[position >> 3U] = tmp; in HAL_GPIO_Init()
216 tmp &= ~(GPIO_MODER_MODE0 << (position * 2U)); in HAL_GPIO_Init()
217 tmp |= ((pGPIO_Init->Mode & GPIO_MODE) << (position * 2U)); in HAL_GPIO_Init()
229 tmp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); in HAL_GPIO_Init()
[all …]
Dstm32h5xx_hal_gtzc.c1715 uint32_t position; in HAL_GTZC_IRQHandler() local
1731 position = 0U; in HAL_GTZC_IRQHandler()
1732 while ((flag >> position) != 0U) in HAL_GTZC_IRQHandler()
1734 if ((flag & (1UL << position)) != 0U) in HAL_GTZC_IRQHandler()
1736 HAL_GTZC_TZIC_Callback(GTZC1_PERIPH_REG1 | position); in HAL_GTZC_IRQHandler()
1740 position++; in HAL_GTZC_IRQHandler()
1755 position = 0U; in HAL_GTZC_IRQHandler()
1756 while ((flag >> position) != 0U) in HAL_GTZC_IRQHandler()
1758 if ((flag & (1UL << position)) != 0U) in HAL_GTZC_IRQHandler()
1760 HAL_GTZC_TZIC_Callback(GTZC1_PERIPH_REG2 | position); in HAL_GTZC_IRQHandler()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_hal_gpio.c165 uint32_t position = 0x00u; in HAL_GPIO_Init() local
175 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
178 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
191 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_Init()
192 temp |= (GPIO_Init->Speed << (position * 2u)); in HAL_GPIO_Init()
197 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
198 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
209 temp &= ~(GPIO_ASCR_ASC0 << position) ; in HAL_GPIO_Init()
210 temp |= (((GPIO_Init->Mode & GPIO_MODE_ANALOG_ADC_CONTROL) >> 3) << position); in HAL_GPIO_Init()
223 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f7xx/drivers/src/
Dstm32f7xx_hal_gpio.c164 uint32_t position = 0x00; in HAL_GPIO_Init() local
175 for(position = 0; position < GPIO_NUMBER; position++) in HAL_GPIO_Init()
178 ioposition = ((uint32_t)0x01) << position; in HAL_GPIO_Init()
192 temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2)); in HAL_GPIO_Init()
193 temp |= (GPIO_Init->Speed << (position * 2)); in HAL_GPIO_Init()
198 temp &= ~(GPIO_OTYPER_OT_0 << position) ; in HAL_GPIO_Init()
199 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
210 temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2)); in HAL_GPIO_Init()
211 temp |= ((GPIO_Init->Pull) << (position * 2)); in HAL_GPIO_Init()
222 temp = GPIOx->AFR[position >> 3]; in HAL_GPIO_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f4xx/drivers/src/
Dstm32f4xx_hal_gpio.c166 uint32_t position; in HAL_GPIO_Init() local
177 for(position = 0U; position < GPIO_NUMBER; position++) in HAL_GPIO_Init()
180 ioposition = 0x01U << position; in HAL_GPIO_Init()
195 temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2U)); in HAL_GPIO_Init()
196 temp |= (GPIO_Init->Speed << (position * 2U)); in HAL_GPIO_Init()
201 temp &= ~(GPIO_OTYPER_OT_0 << position) ; in HAL_GPIO_Init()
202 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
213 temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2U)); in HAL_GPIO_Init()
214 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
224 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32mp1xx/drivers/src/
Dstm32mp1xx_hal_gpio.c170 uint32_t position; in HAL_GPIO_Init() local
189 for(position = 0; position < GPIO_NUMBER; position++) in HAL_GPIO_Init()
192 ioposition = ((uint32_t)0x01) << position; in HAL_GPIO_Init()
206 temp = GPIOx->AFR[position >> 3]; in HAL_GPIO_Init()
207 temp &= ~((uint32_t)0xF << ((uint32_t)(position & (uint32_t)0x07) * 4)) ; in HAL_GPIO_Init()
208 temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & (uint32_t)0x07) * 4)); in HAL_GPIO_Init()
209 GPIOx->AFR[position >> 3] = temp; in HAL_GPIO_Init()
214 temp &= ~(GPIO_MODER_MODER0 << (position * 2)); in HAL_GPIO_Init()
215 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2)); in HAL_GPIO_Init()
226 temp &= ~(GPIO_OSPEEDR_OSPEEDR0 << (position * 2)); in HAL_GPIO_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f0xx/drivers/src/
Dstm32f0xx_hal_gpio.c171 uint32_t position = 0x00u; in HAL_GPIO_Init() local
181 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
184 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
197 temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2u)); in HAL_GPIO_Init()
198 temp |= (GPIO_Init->Speed << (position * 2u)); in HAL_GPIO_Init()
203 temp &= ~(GPIO_OTYPER_OT_0 << position) ; in HAL_GPIO_Init()
204 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
215 temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2u)); in HAL_GPIO_Init()
216 temp |= ((GPIO_Init->Pull) << (position * 2u)); in HAL_GPIO_Init()
228 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f2xx/drivers/src/
Dstm32f2xx_hal_gpio.c171 uint32_t position = 0x00u; in HAL_GPIO_Init() local
181 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
184 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
195 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_Init()
196 temp |= (GPIO_Init->Speed << (position * 2u)); in HAL_GPIO_Init()
201 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
202 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
212 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2u)); in HAL_GPIO_Init()
213 temp |= ((GPIO_Init->Pull) << (position * 2u)); in HAL_GPIO_Init()
226 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32g4xx/drivers/src/
Dstm32g4xx_hal_gpio.c164 uint32_t position = 0x00U; in HAL_GPIO_Init() local
174 while (((GPIO_Init->Pin) >> position) != 0U) in HAL_GPIO_Init()
177 iocurrent = (GPIO_Init->Pin) & (1UL << position); in HAL_GPIO_Init()
190 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); in HAL_GPIO_Init()
191 temp |= (GPIO_Init->Speed << (position * 2U)); in HAL_GPIO_Init()
196 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
197 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
208 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
209 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
221 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32g0xx/drivers/src/
Dstm32g0xx_hal_gpio.c164 uint32_t position = 0x00u; in HAL_GPIO_Init() local
174 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
177 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
190 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_Init()
191 temp |= (GPIO_Init->Speed << (position * 2u)); in HAL_GPIO_Init()
196 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
197 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
208 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2u)); in HAL_GPIO_Init()
209 temp |= ((GPIO_Init->Pull) << (position * 2u)); in HAL_GPIO_Init()
221 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f3xx/drivers/src/
Dstm32f3xx_hal_gpio.c173 uint32_t position = 0x00u; in HAL_GPIO_Init() local
183 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
186 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
198 temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2u)); in HAL_GPIO_Init()
199 temp |= (GPIO_Init->Speed << (position * 2u)); in HAL_GPIO_Init()
204 temp &= ~(GPIO_OTYPER_OT_0 << position) ; in HAL_GPIO_Init()
205 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
216 temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2u)); in HAL_GPIO_Init()
217 temp |= ((GPIO_Init->Pull) << (position * 2u)); in HAL_GPIO_Init()
230 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l0xx/drivers/src/
Dstm32l0xx_hal_gpio.c158 uint32_t position = 0x00U; in HAL_GPIO_Init() local
167 while (((GPIO_Init->Pin) >> position) != 0) in HAL_GPIO_Init()
170 iocurrent = (GPIO_Init->Pin) & (1U << position); in HAL_GPIO_Init()
183 temp &= ~(GPIO_OSPEEDER_OSPEED0 << (position * 2U)); in HAL_GPIO_Init()
184 temp |= (GPIO_Init->Speed << (position * 2U)); in HAL_GPIO_Init()
189 temp &= ~(GPIO_OTYPER_OT_0 << position) ; in HAL_GPIO_Init()
190 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
201 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
202 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
214 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32wbxx/drivers/src/
Dstm32wbxx_hal_gpio.c166 uint32_t position = 0x00u; in HAL_GPIO_Init() local
177 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
180 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
192 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_Init()
193 temp |= (GPIO_Init->Speed << (position * 2u)); in HAL_GPIO_Init()
198 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
199 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
207 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
208 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
220 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32wlxx/drivers/src/
Dstm32wlxx_hal_gpio.c161 uint32_t position = 0x00u; in HAL_GPIO_Init() local
172 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
175 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
187 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); in HAL_GPIO_Init()
188 temp |= (GPIO_Init->Speed << (position * 2U)); in HAL_GPIO_Init()
193 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
194 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
202 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
203 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
215 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
[all …]
Dstm32wlxx_hal_gtzc.c701 uint32_t position = 0x00u; in HAL_GTZC_IRQHandler() local
709 while ((flag >> position) != 0x00u) in HAL_GTZC_IRQHandler()
711 if ((flag & (1UL << position)) != 0x00u) in HAL_GTZC_IRQHandler()
713 HAL_GTZC_TZIC_Callback(GTZC_PERIPH_REG1 | position); in HAL_GTZC_IRQHandler()
717 position++; in HAL_GTZC_IRQHandler()
/hal_stm32-3.5.0/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_hal_gpio.c167 uint32_t position = 0x00U; in HAL_GPIO_Init() local
184 while (((GPIO_Init->Pin) >> position) != 0x00U) in HAL_GPIO_Init()
187 iocurrent = (GPIO_Init->Pin) & (1UL << position); in HAL_GPIO_Init()
200 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); in HAL_GPIO_Init()
201 temp |= (GPIO_Init->Speed << (position * 2U)); in HAL_GPIO_Init()
206 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
207 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
218 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U)); in HAL_GPIO_Init()
219 temp |= ((GPIO_Init->Pull) << (position * 2U)); in HAL_GPIO_Init()
231 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l1xx/drivers/src/
Dstm32l1xx_hal_gpio.c172 uint32_t position = 0x00; in HAL_GPIO_Init() local
182 while (((GPIO_Init->Pin) >> position) != 0) in HAL_GPIO_Init()
185 iocurrent = (GPIO_Init->Pin) & (1U << position); in HAL_GPIO_Init()
198 CLEAR_BIT(temp, GPIO_OSPEEDER_OSPEEDR0 << (position * 2)); in HAL_GPIO_Init()
199 SET_BIT(temp, GPIO_Init->Speed << (position * 2)); in HAL_GPIO_Init()
204 CLEAR_BIT(temp, GPIO_OTYPER_OT_0 << position) ; in HAL_GPIO_Init()
205 SET_BIT(temp, ((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
216 CLEAR_BIT(temp, GPIO_PUPDR_PUPDR0 << (position * 2)); in HAL_GPIO_Init()
217 SET_BIT(temp, (GPIO_Init->Pull) << (position * 2)); in HAL_GPIO_Init()
230 temp = GPIOx->AFR[position >> 3]; in HAL_GPIO_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32c0xx/drivers/src/
Dstm32c0xx_hal_gpio.c177 uint32_t position = 0U; in HAL_GPIO_Init() local
185 while (((pGPIO_Init->Pin) >> position) != 0U) in HAL_GPIO_Init()
188 iocurrent = (pGPIO_Init->Pin) & (1UL << position); in HAL_GPIO_Init()
201 tmp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
202 tmp &= ~(0xFUL << ((position & 0x07U) * 4U)) ; in HAL_GPIO_Init()
203 tmp |= ((pGPIO_Init->Alternate & 0x0FUL) << ((position & 0x07U) * 4U)); in HAL_GPIO_Init()
204 GPIOx->AFR[position >> 3U] = tmp; in HAL_GPIO_Init()
209 tmp &= ~(GPIO_MODER_MODE0 << (position * 2U)); in HAL_GPIO_Init()
210 tmp |= ((pGPIO_Init->Mode & GPIO_MODE) << (position * 2U)); in HAL_GPIO_Init()
222 tmp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U)); in HAL_GPIO_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32wbaxx/drivers/src/
Dstm32wbaxx_hal_gpio.c170 uint32_t position = 0x00u; in HAL_GPIO_Init() local
180 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
183 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
196 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_Init()
197 temp |= (GPIO_Init->Speed << (position * 2u)); in HAL_GPIO_Init()
202 temp &= ~(GPIO_OTYPER_OT0 << position) ; in HAL_GPIO_Init()
203 temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); in HAL_GPIO_Init()
214 temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2u)); in HAL_GPIO_Init()
215 temp |= ((GPIO_Init->Pull) << (position * 2u)); in HAL_GPIO_Init()
227 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
[all …]
Dstm32wbaxx_hal_gtzc.c1384 uint32_t position; in HAL_GTZC_IRQHandler() local
1404 position = 0U; in HAL_GTZC_IRQHandler()
1405 while ((flag >> position) != 0U) in HAL_GTZC_IRQHandler()
1407 if ((flag & (1UL << position)) != 0U) in HAL_GTZC_IRQHandler()
1409 HAL_GTZC_TZIC_Callback(GTZC_PERIPH_REG1 | position); in HAL_GTZC_IRQHandler()
1413 position++; in HAL_GTZC_IRQHandler()
1428 position = 0U; in HAL_GTZC_IRQHandler()
1429 while ((flag >> position) != 0U) in HAL_GTZC_IRQHandler()
1431 if ((flag & (1UL << position)) != 0U) in HAL_GTZC_IRQHandler()
1433 HAL_GTZC_TZIC_Callback(GTZC_PERIPH_REG2 | position); in HAL_GTZC_IRQHandler()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_hal_gpio.c180 uint32_t position = 0x00u; in HAL_GPIO_Init() local
194 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
197 ioposition = (0x01uL << position); in HAL_GPIO_Init()
281 registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u); in HAL_GPIO_Init()
292 temp = AFIO->EXTICR[position >> 2u]; in HAL_GPIO_Init()
293 CLEAR_BIT(temp, (0x0Fu) << (4u * (position & 0x03u))); in HAL_GPIO_Init()
294 SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4u * (position & 0x03u))); in HAL_GPIO_Init()
295 AFIO->EXTICR[position >> 2u] = temp; in HAL_GPIO_Init()
340 position++; in HAL_GPIO_Init()
353 uint32_t position = 0x00u; in HAL_GPIO_DeInit() local
[all …]

12