aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/Makefile
diff options
context:
space:
mode:
authorDamien George2018-03-02 23:49:00 +1100
committerDamien George2018-03-02 23:55:45 +1100
commit0210383da5804976d9282247d7c308664dc2e6f6 (patch)
tree44242fe00587d2b74206b04c9d6ad13fae29c8bf /ports/stm32/Makefile
parenta0dfc386410b3a397e8643b269e352a8930b5f53 (diff)
stm32/spibdev: Add option to configure SPI block dev to use QSPI flash.
To use QSPI (in software QSPI mode) the configuration needed is: #define MICROPY_HW_SPIFLASH_SIZE_BITS (n * 1024 * 1024) #define MICROPY_HW_SPIFLASH_CS (pin_x1) #define MICROPY_HW_SPIFLASH_SCK (pin_x2) #define MICROPY_HW_SPIFLASH_IO0 (pin_x3) #define MICROPY_HW_SPIFLASH_IO1 (pin_x4) #define MICROPY_HW_SPIFLASH_IO2 (pin_x5) #define MICROPY_HW_SPIFLASH_IO3 (pin_x6)
Diffstat (limited to 'ports/stm32/Makefile')
-rw-r--r--ports/stm32/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile
index 854820abe..18e64899b 100644
--- a/ports/stm32/Makefile
+++ b/ports/stm32/Makefile
@@ -185,6 +185,7 @@ EXTMOD_SRC_C = $(addprefix extmod/,\
)
DRIVERS_SRC_C = $(addprefix drivers/,\
+ bus/softqspi.c \
memory/spiflash.c \
dht/dht.c \
)