mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-25 20:35:36 +08:00
STM32H7: Fix SDMMC build for all other BSPs
This commit is contained in:
parent
e0fcb31f01
commit
aef7a74b94
@ -25,6 +25,10 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <bsp.h>
|
||||
|
||||
#ifdef LIBBSP_ARM_STM32H7_BSP_H
|
||||
|
||||
#include <bsp/st-sdmmc-config.h>
|
||||
#include <dev/mmc/mmcreg.h>
|
||||
|
||||
@ -44,3 +48,5 @@ st_sdmmc_get_config(uintptr_t sdmmc_base, struct st_sdmmc_config *cfg)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* LIBBSP_ARM_STM32H7_BSP_H */
|
||||
|
@ -64,6 +64,10 @@
|
||||
#include <rtems/malloc.h>
|
||||
#include <rtems/irq-extension.h>
|
||||
|
||||
#include <bsp.h>
|
||||
|
||||
#ifdef LIBBSP_ARM_STM32H7_BSP_H
|
||||
|
||||
#include <stm32h7/hal.h>
|
||||
#include <stm32h7/memory.h>
|
||||
|
||||
@ -845,3 +849,5 @@ static devclass_t st_sdmmc_devclass;
|
||||
DRIVER_MODULE(st_sdmmc, nexus, st_sdmmc_driver, st_sdmmc_devclass, NULL, NULL);
|
||||
DRIVER_MODULE(mmc, st_sdmmc, mmc_driver, mmc_devclass, NULL, NULL);
|
||||
MODULE_DEPEND(st_sdmmc, mmc, 1, 1, 1);
|
||||
|
||||
#endif /* LIBBSP_ARM_STM32H7_BSP_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user