Home
last modified time | relevance | path

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

/drivers/hdf_core/adapter/platform/gpio/
Dgpio_bes.c141 struct HAL_IOMUX_PIN_FUNCTION_MAP gpioCfg; in InitGpioDevice() local
146 gpioCfg.pin = device->port; in InitGpioDevice()
147 gpioCfg.function = HAL_IOMUX_FUNC_AS_GPIO; in InitGpioDevice()
148 gpioCfg.volt = HAL_IOMUX_PIN_VOLTAGE_VIO; in InitGpioDevice()
152 gpioCfg.pull_sel = HAL_IOMUX_PIN_PULLUP_ENABLE; in InitGpioDevice()
154 gpioCfg.pull_sel = HAL_IOMUX_PIN_PULLDOWN_ENABLE; in InitGpioDevice()
156 gpioCfg.pull_sel = HAL_IOMUX_PIN_NOPULL; in InitGpioDevice()
159 hal_iomux_init(&gpioCfg, 1); in InitGpioDevice()
453 struct HAL_GPIO_IRQ_CFG_T gpioCfg; local
462 gpioCfg.irq_enable = true;
[all …]
/drivers/hdf_core/framework/model/sensor/driver/ppg/
Dsensor_ppg_config.c79 struct GpiosPinSetCfg *gpioCfg = NULL; in ParsePpgGpiosConfig() local
104 gpioCfg = &pinCfg->gpios[index]; in ParsePpgGpiosConfig()
105 ret = GpioSetDir(gpioCfg->gpioNo, gpioCfg->dirType); in ParsePpgGpiosConfig()
112 ret = GpioWrite(gpioCfg->gpioNo, gpioCfg->gpioValue); in ParsePpgGpiosConfig()