mirror of
https://github.com/licsber/micropython.git
synced 2024-09-23 02:20:25 +08:00
14 lines
299 B
C
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
|