Lines Matching refs:cd
75 struct gpio_dt_spec cd; member
454 if (!priv->cd.port) { in stm32_sdmmc_card_present()
458 err = gpio_pin_get_dt(&priv->cd); in stm32_sdmmc_card_present()
497 if (!priv->cd.port) { in stm32_sdmmc_card_detect_init()
501 if (!gpio_is_ready_dt(&priv->cd)) { in stm32_sdmmc_card_detect_init()
506 1 << priv->cd.pin); in stm32_sdmmc_card_detect_init()
508 err = gpio_add_callback(priv->cd.port, &priv->cd_cb); in stm32_sdmmc_card_detect_init()
513 err = gpio_pin_configure_dt(&priv->cd, GPIO_INPUT); in stm32_sdmmc_card_detect_init()
518 err = gpio_pin_interrupt_configure_dt(&priv->cd, GPIO_INT_EDGE_BOTH); in stm32_sdmmc_card_detect_init()
525 gpio_pin_configure_dt(&priv->cd, GPIO_DISCONNECTED); in stm32_sdmmc_card_detect_init()
527 gpio_remove_callback(priv->cd.port, &priv->cd_cb); in stm32_sdmmc_card_detect_init()
533 if (!priv->cd.port) { in stm32_sdmmc_card_detect_uninit()
537 gpio_pin_interrupt_configure_dt(&priv->cd, GPIO_INT_MODE_DISABLED); in stm32_sdmmc_card_detect_uninit()
538 gpio_pin_configure_dt(&priv->cd, GPIO_DISCONNECTED); in stm32_sdmmc_card_detect_uninit()
539 gpio_remove_callback(priv->cd.port, &priv->cd_cb); in stm32_sdmmc_card_detect_uninit()
697 .cd = GPIO_DT_SPEC_INST_GET(0, cd_gpios),