Lines Matching refs:GPIOSecName
188 int32_t esCFG_GetGPIOSecKeyCount(char *GPIOSecName) in esCFG_GetGPIOSecKeyCount() argument
192 …if (!rt_strcmp(GPIOSecName, "pwm1") || !rt_strcmp(GPIOSecName, "pwm2") || !rt_strcmp(GPIOSecName, … in esCFG_GetGPIOSecKeyCount()
196 else if (!rt_strcmp(GPIOSecName, "sdc0") || !rt_strcmp(GPIOSecName, "sdc1")) in esCFG_GetGPIOSecKeyCount()
200 else if (!rt_strcmp(GPIOSecName, "spi0")) in esCFG_GetGPIOSecKeyCount()
202 return hal_spi_gpio_cfg_count(GPIOSecName); in esCFG_GetGPIOSecKeyCount()
204 else if (sscanf(GPIOSecName, "twi%d", &id) == 1) in esCFG_GetGPIOSecKeyCount()
225 int32_t esCFG_GetGPIOSecData(char *GPIOSecName, void *pGPIOCfg, int32_t GPIONum) in esCFG_GetGPIOSecData() argument
231 if (!rt_strcmp(GPIOSecName, "pwm1")) in esCFG_GetGPIOSecData()
241 else if (!rt_strcmp(GPIOSecName, "pwm2")) in esCFG_GetGPIOSecData()
251 else if (!rt_strcmp(GPIOSecName, "pwm7")) in esCFG_GetGPIOSecData()
261 else if (!rt_strcmp(GPIOSecName, "sdc0")) in esCFG_GetGPIOSecData()
276 strcpy(gpio_cfg->gpio_name, GPIOSecName); in esCFG_GetGPIOSecData()
286 else if (!rt_strcmp(GPIOSecName, "sdc1")) in esCFG_GetGPIOSecData()
301 strcpy(gpio_cfg->gpio_name, GPIOSecName); in esCFG_GetGPIOSecData()
311 else if (sscanf(GPIOSecName, "spi%d", &id) == 1) in esCFG_GetGPIOSecData()
315 else if (sscanf(GPIOSecName, "twi%d", &id) == 1) in esCFG_GetGPIOSecData()