文件名称:STM32F4_SD_SPI
介绍说明--下载内容均来自于网络,请自行研究使用
If you want to use SPI communication instead of SDIO on STM32F4xx for any reason, you can do that. To enable SPI communication, open your defines.h file and set constant
Now, SPI is activated. Make sure, that you include dependencies libraries, described in “Dependencies” section. By default SPI1 is used with Pinspack 1, but you can set it to your own SPI (in defines.h file) with
Look here to see, which pins are associated with each SPI. For SPI is also used CS (Chip select) pin. You can leave it’s settings as it is, or change it to what you want. You can do this with (in defines.h)
Now, SPI is activated. Make sure, that you include dependencies libraries, described in “Dependencies” section. By default SPI1 is used with Pinspack 1, but you can set it to your own SPI (in defines.h file) with
Look here to see, which pins are associated with each SPI. For SPI is also used CS (Chip select) pin. You can leave it’s settings as it is, or change it to what you want. You can do this with (in defines.h)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
STM32F4_SD_SPI
..............\a.out
..............\arm-gcc-link.ld
..............\cmsis
..............\.....\arm_common_tables.h
..............\.....\arm_const_structs.h
..............\.....\arm_math.h
..............\.....\core_cm4.h
..............\.....\core_cm4_simd.h
..............\.....\core_cmFunc.h
..............\.....\core_cmInstr.h
..............\cmsis_boot
..............\..........\startup
..............\..........\.......\startup_stm32f4xx.c
..............\..........\stm32f4xx.h
..............\..........\stm32f4xx_conf.h
..............\..........\system_stm32f4xx.c
..............\..........\system_stm32f4xx.h
..............\cmsis_lib
..............\.........\include
..............\.........\.......\stm32f4xx_gpio.h
..............\.........\.......\stm32f4xx_pwr.h
..............\.........\.......\stm32f4xx_rcc.h
..............\.........\.......\stm32f4xx_spi.h
..............\.........\source
..............\.........\......\stm32f4xx_gpio.c
..............\.........\......\stm32f4xx_pwr.c
..............\.........\......\stm32f4xx_rcc.c
..............\.........\......\stm32f4xx_spi.c
..............\componentfile.history
..............\delay
..............\.....\delay.c
..............\.....\delay.h
..............\fatfs
..............\.....\ccsbcs.c
..............\.....\diskio.h
..............\.....\diskio_old.c
..............\.....\diskio_old.h
..............\.....\ff.c
..............\.....\ff.h
..............\.....\ffconf.h
..............\.....\integer.h
..............\.....\spi_sd.c
..............\.....\spi_sd.h
..............\Hardware_conf
..............\logs
..............\....\codb-stat-client.2014-01-30.log
..............\....\codb-time-client-2014-01-30.log
..............\....\codb.2014-01-30.log
..............\main.c
..............\main.h
..............\stm32f4xx_it.c
..............\stm32f4xx_it.h
..............\syscalls
..............\........\syscalls.c
..............\Test
..............\Test.cogui
..............\Test.coproj
..............\....\Debug
..............\....\.....\bin
..............\....\.....\...\history.xml
..............\....\.....\...\Test.bin
..............\....\.....\...\Test.elf
..............\....\.....\...\Test.hex
..............\....\.....\...\Test.map
..............\....\.....\obj
..............\....\.....\...\ccsbcs.o
..............\....\.....\...\delay.o
..............\....\.....\...\ff.o
..............\....\.....\...\history.xml
..............\....\.....\...\main.o
..............\....\.....\...\spi_sd.o
..............\....\.....\...\startup_stm32f4xx.o
..............\....\.....\...\stm32f4xx_gpio.o
..............\....\.....\...\stm32f4xx_it.o
..............\....\.....\...\stm32f4xx_pwr.o
..............\....\.....\...\stm32f4xx_rcc.o
..............\....\.....\...\stm32f4xx_spi.o
..............\....\.....\...\syscalls.o
..............\....\.....\...\system_stm32f4xx.o
..............\....\Test.elf.xcodeproj
..............\....\..................\project.pbxproj