Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/platform/stm32/
Dgpio.c100 const uint32_t shift_2b = (gpioNum & GPIO_PIN_MASK) * 2; in gpioConfigWithNum() local
102 const uint32_t mask_2b = (3UL << shift_2b); in gpioConfigWithNum()
108 …R = (block->OSPEEDR & ~mask_2b) | (((uint32_t)gpioSpeedFromRequestedSpeed(gpioSpeed)) << shift_2b); in gpioConfigWithNum()
111 block->PUPDR = (block->PUPDR & ~mask_2b) | (((uint32_t)pull) << shift_2b); in gpioConfigWithNum()
122 const uint32_t shift_2b = (gpioNum & GPIO_PIN_MASK) * 2; in gpioConfigInputWithNum() local
123 const uint32_t mask_2b = (3UL << shift_2b); in gpioConfigInputWithNum()
128 block->MODER = (block->MODER & ~mask_2b) | (((uint32_t)GPIO_MODE_IN) << shift_2b); in gpioConfigInputWithNum()
140 const uint32_t shift_2b = (gpioNum & GPIO_PIN_MASK) * 2; in gpioConfigOutputWithNum() local
141 const uint32_t mask_2b = (3UL << shift_2b); in gpioConfigOutputWithNum()
149 block->MODER = (block->MODER & ~mask_2b) | (((uint32_t)GPIO_MODE_OUT) << shift_2b); in gpioConfigOutputWithNum()
[all …]