Skip to content

Commit

Permalink
Initial cut on H7 SD card. No idea if works. Compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
DzikuVx authored and bkleiner committed Nov 6, 2021
1 parent 408a62a commit fee2394
Show file tree
Hide file tree
Showing 5 changed files with 666 additions and 6 deletions.
3 changes: 2 additions & 1 deletion cmake/stm32h7.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ main_sources(STM32H7_SRC
drivers/system_stm32h7xx.c
drivers/serial_uart_stm32h7xx.c
drivers/serial_uart_hal.c
# drivers/sdcard/sdmmc_sdio_h7xx.c
drivers/sdio.h
drivers/sdcard/sdmmc_sdio_h7xx.c
)

main_sources(STM32H7_MSC_SRC
Expand Down
4 changes: 4 additions & 0 deletions src/main/drivers/sdcard/sdmmc_sdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@

#ifdef STM32F7
#include "stm32f7xx.h"
#endif

#ifdef STM32H7
#include "stm32h7xx.h"
#endif

/* SDCARD pinouts
Expand Down
Loading

0 comments on commit fee2394

Please sign in to comment.