Home
last modified time | relevance | path

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

/loramac-node-latest/src/boards/mcu/stm32/STM32L4xx_HAL_Driver/Src/
Dstm32l4xx_hal_gpio.c190 uint32_t position = 0x00u; in HAL_GPIO_Init() local
201 while (((GPIO_Init->Pin) >> position) != 0x00u) in HAL_GPIO_Init()
204 iocurrent = (GPIO_Init->Pin) & (1uL << position); in HAL_GPIO_Init()
217 temp = GPIOx->AFR[position >> 3u]; in HAL_GPIO_Init()
218 temp &= ~(0xFu << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
219 temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u)); in HAL_GPIO_Init()
220 GPIOx->AFR[position >> 3u] = temp; in HAL_GPIO_Init()
225 temp &= ~(GPIO_MODER_MODE0 << (position * 2u)); in HAL_GPIO_Init()
226 temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u)); in HAL_GPIO_Init()
237 temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2u)); in HAL_GPIO_Init()
[all …]
/loramac-node-latest/src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Src/
Dstm32l0xx_hal_gpio.c185 uint32_t position = 0x00U; in HAL_GPIO_Init() local
195 while (((GPIO_Init->Pin) >> position) != 0) in HAL_GPIO_Init()
198 iocurrent = (GPIO_Init->Pin) & (1U << position); in HAL_GPIO_Init()
209 temp = GPIOx->AFR[position >> 3U]; in HAL_GPIO_Init()
210 temp &= ~((uint32_t)0xFU << ((uint32_t)(position & (uint32_t)0x07U) * 4U)) ; in HAL_GPIO_Init()
211 … temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & (uint32_t)0x07U) * 4U)) ; in HAL_GPIO_Init()
212 GPIOx->AFR[position >> 3U] = temp; in HAL_GPIO_Init()
223 temp &= ~(GPIO_OSPEEDER_OSPEED0 << (position * 2U)); in HAL_GPIO_Init()
224 temp |= (GPIO_Init->Speed << (position * 2U)); in HAL_GPIO_Init()
229 temp &= ~(GPIO_OTYPER_OT_0 << position) ; in HAL_GPIO_Init()
[all …]
/loramac-node-latest/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Src/
Dstm32l1xx_hal_gpio.c196 uint32_t position = 0x00; in HAL_GPIO_Init() local
207 while (((GPIO_Init->Pin) >> position) != 0) in HAL_GPIO_Init()
210 iocurrent = (GPIO_Init->Pin) & (1U << position); in HAL_GPIO_Init()
224 temp = GPIOx->AFR[position >> 3]; in HAL_GPIO_Init()
225 CLEAR_BIT(temp, 0xFU << ((uint32_t)(position & 0x07U) * 4)) ; in HAL_GPIO_Init()
226 … SET_BIT(temp, (uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4)); in HAL_GPIO_Init()
227 GPIOx->AFR[position >> 3] = temp; in HAL_GPIO_Init()
232 CLEAR_BIT(temp, GPIO_MODER_MODER0 << (position * 2)); in HAL_GPIO_Init()
233 SET_BIT(temp, (GPIO_Init->Mode & GPIO_MODE) << (position * 2)); in HAL_GPIO_Init()
244 CLEAR_BIT(temp, GPIO_OSPEEDER_OSPEEDR0 << (position * 2)); in HAL_GPIO_Init()
[all …]
/loramac-node-latest/src/boards/mcu/saml21/hal/utils/src/
Dutils_event.c56 const uint8_t position = id >> 3; in event_subscribe() local
61 if (event->mask[position] & mask) { in event_subscribe()
70 event->mask[position] |= mask; in event_subscribe()
72 subscribed[position] |= mask; in event_subscribe()
80 const uint8_t position = id >> 3; in event_unsubscribe() local
87 if (!(event->mask[position] & mask)) { in event_unsubscribe()
91 event->mask[position] &= ~mask; in event_unsubscribe()
96 if (current->mask[position] & mask) { in event_unsubscribe()
101 subscribed[position] &= ~mask; in event_unsubscribe()
118 const uint8_t position = id >> 3; in event_post() local
[all …]