STM32H7: Fix SDMMC build for all other BSPs

This commit is contained in:
Christian Mauderer 2021-04-01 15:36:46 +02:00
parent e0fcb31f01
commit aef7a74b94
2 changed files with 12 additions and 0 deletions

View File

@ -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 */

View File

@ -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 */