diff options
author | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2021-04-01 15:36:46 +0200 |
---|---|---|
committer | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2021-04-01 16:04:44 +0200 |
commit | aef7a74b94f8860c59438933239fb41314f1abb7 (patch) | |
tree | efdd1d21ee69d89eff10c09c0b9d28601d3c24e8 | |
parent | e0fcb31f0162ec61126e5dfe11eaa14a36d0a5c3 (diff) |
STM32H7: Fix SDMMC build for all other BSPs
-rw-r--r-- | rtemsbsd/sys/dev/mmc/st-sdmmc-config.c | 6 | ||||
-rw-r--r-- | rtemsbsd/sys/dev/mmc/st-sdmmc.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/rtemsbsd/sys/dev/mmc/st-sdmmc-config.c b/rtemsbsd/sys/dev/mmc/st-sdmmc-config.c index 723a169b..ec3c9cdd 100644 --- a/rtemsbsd/sys/dev/mmc/st-sdmmc-config.c +++ b/rtemsbsd/sys/dev/mmc/st-sdmmc-config.c @@ -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 */ diff --git a/rtemsbsd/sys/dev/mmc/st-sdmmc.c b/rtemsbsd/sys/dev/mmc/st-sdmmc.c index bf8831a4..e50b400a 100644 --- a/rtemsbsd/sys/dev/mmc/st-sdmmc.c +++ b/rtemsbsd/sys/dev/mmc/st-sdmmc.c @@ -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 */ |