Searched refs:shift_2b (Results 1 – 1 of 1) sorted by relevance
100 const uint32_t shift_2b = (gpioNum & GPIO_PIN_MASK) * 2; in gpioConfigWithNum() local102 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() local123 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() local141 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 …]