micropython/ports/stm32/mboot/sdcard.c
Damien George e316306546 stm32/mboot: Add support for reading from SD card.
Tested on PYBV10 and PYBD_SF6, with MBOOT_FSLOAD enabled and programming
new firmware from a .dfu.gz file stored on the SD card.

Signed-off-by: Damien George <damien@micropython.org>
2022-03-22 13:33:43 +11:00

14 lines
299 B
C

// Include relevant source files for SD card only when it's needed and
// configured at the C level (in mpconfigboard.h).
#include "py/mpconfig.h"
#if defined(MBOOT_SDCARD_ADDR)
#define MICROPY_HW_DMA_ENABLE_AUTO_TURN_OFF (0)
#include "ports/stm32/dma.c"
#include "ports/stm32/sdcard.c"
#endif