Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/os/platform/stm32/
Dgpio.c96 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 …]
Dspi.c238 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()
Di2c.c785 gpioConfigAlt(gpio, board->gpioSpeed, board->gpioPull, GPIO_OUT_OPEN_DRAIN, in stmI2cGpioInit()
805 gpioConfigOutput(sda, board->gpioSpeed, GPIO_PULL_NONE, GPIO_OUT_OPEN_DRAIN, 1); in i2cMasterReset()
811 gpioConfigOutput(scl, board->gpioSpeed, GPIO_PULL_NONE, GPIO_OUT_OPEN_DRAIN, 1); in i2cMasterReset()
/device/google/contexthub/firmware/os/inc/
Dgpio.h71 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…
DsyscallDo.h244 static inline void eOsGpioConfigInput(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum G… in eOsGpioConfigInput() argument
246 …N_OS, SYSCALL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_CFG_IN), gpio, gpioSpeed, pull); in eOsGpioConfigInput()
249 static inline void eOsGpioConfigOutput(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum … in eOsGpioConfigOutput() argument
251 …LL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_CFG_OUT), gpio, gpioSpeed, pull, odrMode, … in eOsGpioConfigOutput()
254 static inline void eOsGpioConfigAlt(const struct Gpio* __restrict gpio, int32_t gpioSpeed, enum Gpi… in eOsGpioConfigAlt() argument
256 …LL_OS_DRIVERS, SYSCALL_OS_DRV_GPIO, SYSCALL_OS_DRV_GPIO_CFG_ALT), gpio, gpioSpeed, pull, odrMode, … in eOsGpioConfigAlt()
/device/google/contexthub/firmware/variant/argonkey/src/os/
Dspi.c28 .gpioSpeed = GPIO_SPEED_MEDIUM,
43 .gpioSpeed = GPIO_SPEED_MEDIUM,
/device/google/contexthub/firmware/variant/nucleo/src/os/
Dspi.c28 .gpioSpeed = GPIO_SPEED_MEDIUM,
43 .gpioSpeed = GPIO_SPEED_MEDIUM,
/device/google/contexthub/firmware/variant/lunchbox/src/os/
Dspi.c28 .gpioSpeed = GPIO_SPEED_MEDIUM,
43 .gpioSpeed = GPIO_SPEED_MEDIUM,
/device/google/contexthub/firmware/variant/neonkey/src/os/
Dspi.c28 .gpioSpeed = GPIO_SPEED_MEDIUM,
/device/google/contexthub/firmware/os/platform/stm32/inc/plat/
Dspi.h38 enum StmGpioSpeed gpioSpeed; member
Di2c.h40 enum StmGpioSpeed gpioSpeed; member