/device/google/contexthub/firmware/src/platform/stm32f4xx/ |
D | gpio.c | 96 static void gpioConfigWithNum(uint32_t gpioNum, int32_t gpioSpeed, enum GpioPullMode pull, enum Gpi… in gpioConfigWithNum() argument 108 …R = (block->OSPEEDR & ~mask_2b) | (((uint32_t)gpioSpeedFromRequestedSpeed(gpioSpeed)) << shift_2b); in gpioConfigWithNum() 119 static void gpioConfigInputWithNum(uint32_t gpioNum, int32_t gpioSpeed, enum GpioPullMode pull) in gpioConfigInputWithNum() argument 125 gpioConfigWithNum(gpioNum, gpioSpeed, pull, GPIO_OUT_PUSH_PULL); in gpioConfigInputWithNum() 131 void gpioConfigInput(const struct Gpio* __restrict gpioHandle, int32_t gpioSpeed, enum GpioPullMode… in gpioConfigInput() argument 134 gpioConfigInputWithNum((uint32_t)gpioHandle - GPIO_HANDLE_OFFSET, gpioSpeed, pull); in gpioConfigInput() 137 static void gpioConfigOutputWithNum(uint32_t gpioNum, int32_t gpioSpeed, enum GpioPullMode pull, en… in gpioConfigOutputWithNum() argument 143 gpioConfigWithNum(gpioNum, gpioSpeed, pull, output); in gpioConfigOutputWithNum() 152 void gpioConfigOutput(const struct Gpio* __restrict gpioHandle, int32_t gpioSpeed, enum GpioPullMod… in gpioConfigOutput() argument 155 …gpioConfigOutputWithNum((uint32_t)gpioHandle - GPIO_HANDLE_OFFSET, gpioSpeed, pull, output, value); in gpioConfigOutput() [all …]
|
D | spi.c | 238 stmSpiDataPullMode(pdev, pdev->board->gpioSpeed, pdev->board->gpioPull); in stmSpiMasterStartSync() 239 stmSpiSckPullMode(pdev, pdev->board->gpioSpeed, mode->cpol ? GPIO_PULL_UP : GPIO_PULL_DOWN); in stmSpiMasterStartSync() 245 … gpioConfigOutput(pdev->nss, pdev->board->gpioSpeed, pdev->board->gpioPull, GPIO_OUT_PUSH_PULL, 1); in stmSpiMasterStartSync() 255 stmSpiDataPullMode(pdev, pdev->board->gpioSpeed, GPIO_PULL_NONE); in stmSpiSlaveStartSync() 256 stmSpiSckPullMode(pdev, pdev->board->gpioSpeed, GPIO_PULL_NONE); in stmSpiSlaveStartSync() 259 … pdev->nss = stmSpiGpioInit(pdev->board->gpioNss, pdev->board->gpioSpeed, pdev->board->gpioFunc); in stmSpiSlaveStartSync() 424 stmSpiSckPullMode(pdev, pdev->board->gpioSpeed, pdev->board->gpioPull); in stmSpiDisable() 596 pdev->miso = stmSpiGpioInit(board->gpioMiso, board->gpioSpeed, board->gpioFunc); in stmSpiInit() 597 pdev->mosi = stmSpiGpioInit(board->gpioMosi, board->gpioSpeed, board->gpioFunc); in stmSpiInit() 598 pdev->sck = stmSpiGpioInit(board->gpioSclk, board->gpioSpeed, board->gpioFunc); in stmSpiInit()
|
D | i2c.c | 764 gpioConfigAlt(gpio, board->gpioSpeed, board->gpioPull, GPIO_OUT_OPEN_DRAIN, in stmI2cGpioInit()
|
/device/google/contexthub/firmware/inc/ |
D | gpio.h | 71 void gpioConfigInput(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum GpioPullMode pull); 72 void gpioConfigOutput(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum GpioPullMode pull… 73 void gpioConfigAlt(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum GpioPullMode pull, e…
|
D | syscallDo.h | 271 static inline void eOsGpioConfigInput(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum G… in eOsGpioConfigInput() argument 273 …N_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_CFG_IN), gpio, gpioSpeed, pull); in eOsGpioConfigInput() 276 static inline void eOsGpioConfigOutput(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum … in eOsGpioConfigOutput() argument 278 …LL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_CFG_OUT), gpio, gpioSpeed, pull, odrMode, … in eOsGpioConfigOutput() 281 static inline void eOsGpioConfigAlt(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum Gpi… in eOsGpioConfigAlt() argument 283 …LL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_CFG_ALT), gpio, gpioSpeed, pull, odrMode, … in eOsGpioConfigAlt()
|
/device/google/contexthub/firmware/src/variant/lunchbox/ |
D | spi.c | 28 .gpioSpeed = GPIO_SPEED_MEDIUM, 43 .gpioSpeed = GPIO_SPEED_MEDIUM,
|
/device/google/contexthub/firmware/src/variant/nucleo/ |
D | spi.c | 28 .gpioSpeed = GPIO_SPEED_MEDIUM, 43 .gpioSpeed = GPIO_SPEED_MEDIUM,
|
/device/google/contexthub/firmware/inc/platform/stm32f4xx/ |
D | spi.h | 38 enum StmGpioSpeed gpioSpeed; member
|
D | i2c.h | 40 enum StmGpioSpeed gpioSpeed; member
|