sd detect pin feature (#222)

* test sd detect pin
* sd detect support for f2 board
This commit is contained in:
DrZlo13
2020-11-11 09:17:53 +03:00
committed by GitHub
parent 748f7e4fc3
commit 49fdb28871
10 changed files with 46 additions and 5 deletions

View File

@@ -12,3 +12,7 @@ void hal_gpio_init(GpioPin* gpio, GpioMode mode, GpioPull pull, GpioSpeed speed)
HAL_GPIO_Init(gpio->port, &GPIO_InitStruct);
}
bool hal_gpio_read_sd_detect(void) {
return true;
}

View File

@@ -58,4 +58,6 @@ static inline bool hal_gpio_read(const GpioPin* gpio) {
} else {
return false;
}
}
}
bool hal_gpio_read_sd_detect(void);