Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/src/platform/stm32f4xx/
Dsyscfg.c39 const uint32_t shift_4b = nibbleNo << 2UL; in syscfgSetExtiPort() local
40 const uint32_t mask_4b = 0x0FUL << shift_4b; in syscfgSetExtiPort()
44 block->EXTICR[regNo] = (block->EXTICR[regNo] & ~mask_4b) | (bankNo << shift_4b); in syscfgSetExtiPort()
Dgpio.c165 const uint32_t shift_4b = nibbleNo * 4; in gpioConfigAltWithNum() local
167 const uint32_t mask_4b = (15UL << shift_4b); in gpioConfigAltWithNum()
172 block->AFR[regNo] = (block->AFR[regNo] & ~mask_4b) | (((uint32_t)altFunc) << shift_4b); in gpioConfigAltWithNum()