Searched refs:GPIO_PIN_MASK (Results 1 – 6 of 6) sorted by relevance
/device/google/contexthub/firmware/os/platform/stm32/ |
D | gpio.c | 99 const uint32_t shift_1b = gpioNum & GPIO_PIN_MASK; in gpioConfigWithNum() 100 const uint32_t shift_2b = (gpioNum & GPIO_PIN_MASK) * 2; in gpioConfigWithNum() 122 const uint32_t shift_2b = (gpioNum & GPIO_PIN_MASK) * 2; in gpioConfigInputWithNum() 140 const uint32_t shift_2b = (gpioNum & GPIO_PIN_MASK) * 2; in gpioConfigOutputWithNum() 161 const uint32_t pinNo = gpioNum & GPIO_PIN_MASK; in gpioConfigAltWithNum() 163 const uint32_t nibbleNo = pinNo & (GPIO_PIN_MASK >> 1); in gpioConfigAltWithNum() 187 const uint32_t pinNo = gpioNum & GPIO_PIN_MASK; in gpioConfigAnalogWithNum() 206 const uint32_t shift_1b = gpioNum & GPIO_PIN_MASK; in gpioSetWithNum() 222 const uint32_t shift_1b = gpioNum & GPIO_PIN_MASK; in gpioGetWithNum() 239 …int32_t bsrrVals[] = {(1 << (DEBUG_UART_PIN & GPIO_PIN_MASK)) << 16, (1 << (DEBUG_UART_PIN & GPIO_… in gpioBitbangedUartOut()
|
D | syscfg.c | 36 const uint32_t pinNo = gpioNum & GPIO_PIN_MASK; in syscfgSetExtiPort()
|
/device/google/contexthub/firmware/os/platform/stm32/inc/plat/ |
D | exti.h | 77 extiEnableIntLine(gpioNum & GPIO_PIN_MASK, trigger); in extiEnableIntGpio() 84 extiDisableIntLine(gpioNum & GPIO_PIN_MASK); in extiDisableIntGpio() 91 return extiIsPendingLine(gpioNum & GPIO_PIN_MASK); in extiIsPendingGpio() 99 extiClearPendingLine(gpioNum & GPIO_PIN_MASK); in extiClearPendingGpio()
|
D | gpio.h | 55 #define GPIO_PIN_MASK 0xf macro
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/PL061GpioDxe/ |
D | PL061Gpio.c | 189 if (PL061GetPins (RegisterBase + PL061_GPIO_DATA_REG, GPIO_PIN_MASK (Offset))) { in Get() 235 ~GPIO_PIN_MASK(Offset) & 0xFF); in Set() 240 MmioOr8 (RegisterBase + PL061_GPIO_DIR_REG, GPIO_PIN_MASK(Offset)); in Set() 242 PL061SetPins (RegisterBase + PL061_GPIO_DATA_REG, GPIO_PIN_MASK(Offset), 0); in Set() 247 MmioOr8 (RegisterBase + PL061_GPIO_DIR_REG, GPIO_PIN_MASK(Offset)); in Set() 249 PL061SetPins (RegisterBase + PL061_GPIO_DATA_REG, GPIO_PIN_MASK(Offset), 0xff); in Set() 298 if (MmioRead8 (RegisterBase + PL061_GPIO_DIR_REG) & GPIO_PIN_MASK(Offset)) { in GetMode() 300 if (PL061GetPins (RegisterBase + PL061_GPIO_DATA_REG, GPIO_PIN_MASK(Offset))) { in GetMode()
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/Include/Drivers/ |
D | PL061Gpio.h | 47 #define GPIO_PIN_MASK(Pin) (1UL << ((UINTN)(Pin))) macro
|