文件名称:SPI_Configuration(void)
-
所属分类:
- 标签属性:
- 上传时间:2017-01-02
-
文件大小:2.1mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
STM32F103C8T6,自编SPI通信程序,适合初学者-void SPI_Configuration(void)
{
SPI_InitTypeDef SPI_InitStructure
GPIO_InitTypeDef GPIO_InitStructure
GPIO_InitStructure.GPIO_Pin GPIO_Pin_5|GPIO_Pin_6|GPIO_Pin_7
GPIO_InitStructure.GPIO_Speed GPIO_Speed_50MHz
GPIO_InitStructure.GPIO_Mode GPIO_Mode_AF_PP
GPIO_Init(GPIOA,&GPIO_InitStructure)
//flashÆ ¬ Ñ ¡
GPIO_InitStructure.GPIO_Pin GPIO_Pin_4
GPIO_InitStructure.GPIO_Speed GPIO_Speed_50MHz
GPIO_InitStructure.GPIO_Mode GPIO_Mode_Out_PP
GPIO_Init(GPIOA,&GPIO_InitStructure)
//SPI
SPI_InitStructure.SPI_Direction SPI_Direction_2Lines_FullDuplex
SPI_InitStructure.SPI_Mode SPI_Mode_Master
SPI_InitStructure.SPI_DataSize SPI_DataSize_8b
SPI_InitStructure.SPI_CPOL SPI_CPOL_High
SPI_InitStructure.SPI_CPHA SPI_CPHA_2Edge
SPI_InitStructure.SPI_NSS SPI_NSS_Soft //NSSóéèí¼ t¿ Ø Ö Æ
SPI_InitStructure.SPI_BaudRatePrescaler SPI_BaudRatePrescaler_8
SPI_InitStructure.SPI_FirstBit SPI_FirstBit_MSB
SPI_InitStru
{
SPI_InitTypeDef SPI_InitStructure
GPIO_InitTypeDef GPIO_InitStructure
GPIO_InitStructure.GPIO_Pin GPIO_Pin_5|GPIO_Pin_6|GPIO_Pin_7
GPIO_InitStructure.GPIO_Speed GPIO_Speed_50MHz
GPIO_InitStructure.GPIO_Mode GPIO_Mode_AF_PP
GPIO_Init(GPIOA,&GPIO_InitStructure)
//flashÆ ¬ Ñ ¡
GPIO_InitStructure.GPIO_Pin GPIO_Pin_4
GPIO_InitStructure.GPIO_Speed GPIO_Speed_50MHz
GPIO_InitStructure.GPIO_Mode GPIO_Mode_Out_PP
GPIO_Init(GPIOA,&GPIO_InitStructure)
//SPI
SPI_InitStructure.SPI_Direction SPI_Direction_2Lines_FullDuplex
SPI_InitStructure.SPI_Mode SPI_Mode_Master
SPI_InitStructure.SPI_DataSize SPI_DataSize_8b
SPI_InitStructure.SPI_CPOL SPI_CPOL_High
SPI_InitStructure.SPI_CPHA SPI_CPHA_2Edge
SPI_InitStructure.SPI_NSS SPI_NSS_Soft //NSSóéèí¼ t¿ Ø Ö Æ
SPI_InitStructure.SPI_BaudRatePrescaler SPI_BaudRatePrescaler_8
SPI_InitStructure.SPI_FirstBit SPI_FirstBit_MSB
SPI_InitStru
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SPI_Configuration(void)/DebugConfig/Target_1_STM32F103C8.dbgconf
SPI_Configuration(void)/EventRecorderStub.scvd
SPI_Configuration(void)/Lib/inc/misc.h
SPI_Configuration(void)/Lib/inc/stm32f10x_adc.h
SPI_Configuration(void)/Lib/inc/stm32f10x_bkp.h
SPI_Configuration(void)/Lib/inc/stm32f10x_can.h
SPI_Configuration(void)/Lib/inc/stm32f10x_cec.h
SPI_Configuration(void)/Lib/inc/stm32f10x_crc.h
SPI_Configuration(void)/Lib/inc/stm32f10x_dac.h
SPI_Configuration(void)/Lib/inc/stm32f10x_dbgmcu.h
SPI_Configuration(void)/Lib/inc/stm32f10x_dma.h
SPI_Configuration(void)/Lib/inc/stm32f10x_exti.h
SPI_Configuration(void)/Lib/inc/stm32f10x_flash.h
SPI_Configuration(void)/Lib/inc/stm32f10x_fsmc.h
SPI_Configuration(void)/Lib/inc/stm32f10x_gpio.h
SPI_Configuration(void)/Lib/inc/stm32f10x_i2c.h
SPI_Configuration(void)/Lib/inc/stm32f10x_iwdg.h
SPI_Configuration(void)/Lib/inc/stm32f10x_pwr.h
SPI_Configuration(void)/Lib/inc/stm32f10x_rcc.h
SPI_Configuration(void)/Lib/inc/stm32f10x_rtc.h
SPI_Configuration(void)/Lib/inc/stm32f10x_sdio.h
SPI_Configuration(void)/Lib/inc/stm32f10x_spi.h
SPI_Configuration(void)/Lib/inc/stm32f10x_tim.h
SPI_Configuration(void)/Lib/inc/stm32f10x_usart.h
SPI_Configuration(void)/Lib/inc/stm32f10x_wwdg.h
SPI_Configuration(void)/Lib/src/misc.c
SPI_Configuration(void)/Lib/src/stm32f10x_adc.c
SPI_Configuration(void)/Lib/src/stm32f10x_bkp.c
SPI_Configuration(void)/Lib/src/stm32f10x_can.c
SPI_Configuration(void)/Lib/src/stm32f10x_cec.c
SPI_Configuration(void)/Lib/src/stm32f10x_crc.c
SPI_Configuration(void)/Lib/src/stm32f10x_dac.c
SPI_Configuration(void)/Lib/src/stm32f10x_dbgmcu.c
SPI_Configuration(void)/Lib/src/stm32f10x_dma.c
SPI_Configuration(void)/Lib/src/stm32f10x_exti.c
SPI_Configuration(void)/Lib/src/stm32f10x_flash.c
SPI_Configuration(void)/Lib/src/stm32f10x_fsmc.c
SPI_Configuration(void)/Lib/src/stm32f10x_gpio.c
SPI_Configuration(void)/Lib/src/stm32f10x_i2c.c
SPI_Configuration(void)/Lib/src/stm32f10x_iwdg.c
SPI_Configuration(void)/Lib/src/stm32f10x_pwr.c
SPI_Configuration(void)/Lib/src/stm32f10x_rcc.c
SPI_Configuration(void)/Lib/src/stm32f10x_rtc.c
SPI_Configuration(void)/Lib/src/stm32f10x_sdio.c
SPI_Configuration(void)/Lib/src/stm32f10x_spi.c
SPI_Configuration(void)/Lib/src/stm32f10x_tim.c
SPI_Configuration(void)/Lib/src/stm32f10x_usart.c
SPI_Configuration(void)/Lib/src/stm32f10x_wwdg.c
SPI_Configuration(void)/Listings/Project1.map
SPI_Configuration(void)/Listings/startup_stm32f10x_md.lst
SPI_Configuration(void)/Objects/core_cm3.crf
SPI_Configuration(void)/Objects/core_cm3.d
SPI_Configuration(void)/Objects/core_cm3.o
SPI_Configuration(void)/Objects/ExtDll.iex
SPI_Configuration(void)/Objects/i2c.crf
SPI_Configuration(void)/Objects/i2c.d
SPI_Configuration(void)/Objects/i2c.o
SPI_Configuration(void)/Objects/main.crf
SPI_Configuration(void)/Objects/main.d
SPI_Configuration(void)/Objects/main.o
SPI_Configuration(void)/Objects/misc.crf
SPI_Configuration(void)/Objects/misc.d
SPI_Configuration(void)/Objects/misc.o
SPI_Configuration(void)/Objects/owl.crf
SPI_Configuration(void)/Objects/owl.d
SPI_Configuration(void)/Objects/owl.o
SPI_Configuration(void)/Objects/Project1.axf
SPI_Configuration(void)/Objects/Project1.build_log.htm
SPI_Configuration(void)/Objects/Project1.hex
SPI_Configuration(void)/Objects/Project1.htm
SPI_Configuration(void)/Objects/Project1.lnp
SPI_Configuration(void)/Objects/Project1.sct
SPI_Configuration(void)/Objects/Project1_Target 1.dep
SPI_Configuration(void)/Objects/spi.crf
SPI_Configuration(void)/Objects/spi.d
SPI_Configuration(void)/Objects/spi.o
SPI_Configuration(void)/Objects/startup_stm32f10x_md.d
SPI_Configuration(void)/Objects/startup_stm32f10x_md.o
SPI_Configuration(void)/Objects/stm32f10x_exti.crf
SPI_Configuration(void)/Objects/stm32f10x_exti.d
SPI_Configuration(void)/Objects/stm32f10x_exti.o
SPI_Configuration(void)/Objects/stm32f10x_gpio.crf
SPI_Configuration(void)/Objects/stm32f10x_gpio.d
SPI_Configuration(void)/Objects/stm32f10x_gpio.o
SPI_Configuration(void)/Objects/stm32f10x_it.crf
SPI_Configuration(void)/Objects/stm32f10x_it.d
SPI_Configuration(void)/Objects/stm32f10x_it.o
SPI_Configuration(void)/Objects/stm32f10x_it_1.crf
SPI_Configuration(void)/Objects/stm32f10x_it_1.d
SPI_Configuration(void)/Objects/stm32f10x_it_1.o
SPI_Configuration(void)/Objects/stm32f10x_rcc.crf
SPI_Configuration(void)/Objects/stm32f10x_rcc.d
SPI_Configuration(void)/Objects/stm32f10x_rcc.o
SPI_Configuration(void)/Objects/stm32f10x_spi.crf
SPI_Configuration(void)/Objects/stm32f10x_spi.d
SPI_Configuration(void)/Objects/stm32f10x_spi.o
SPI_Configuration(void)/Objects/system_stm32f10x.crf
SPI_Configuration(void)/Objects/system_stm32f10x.d
SPI_Configuration(void)/Objects/system_stm32f10x.o
SPI_Configuration(void)/Objects/system_stm32f10x_1.crf
SPI_Configuration(void)/Objects/system_stm32f10x_1.d
SPI_Configuration(void)/Objects/system_stm32f10x_1.o
SPI_Configuration(void)/Project1.uvguix.owl
SPI_Configuration(void)/Project1.uvoptx
SPI_Configuration(void)/Project1.uvprojx
SPI_Configuration(void)/Startup/startup_stm32f10x_cl.s
SPI_Configuration(void)/Startup/startup_stm32f10x_hd.s
SPI_Configuration(void)/Startup/startup_stm32f10x_h
SPI_Configuration(void)/EventRecorderStub.scvd
SPI_Configuration(void)/Lib/inc/misc.h
SPI_Configuration(void)/Lib/inc/stm32f10x_adc.h
SPI_Configuration(void)/Lib/inc/stm32f10x_bkp.h
SPI_Configuration(void)/Lib/inc/stm32f10x_can.h
SPI_Configuration(void)/Lib/inc/stm32f10x_cec.h
SPI_Configuration(void)/Lib/inc/stm32f10x_crc.h
SPI_Configuration(void)/Lib/inc/stm32f10x_dac.h
SPI_Configuration(void)/Lib/inc/stm32f10x_dbgmcu.h
SPI_Configuration(void)/Lib/inc/stm32f10x_dma.h
SPI_Configuration(void)/Lib/inc/stm32f10x_exti.h
SPI_Configuration(void)/Lib/inc/stm32f10x_flash.h
SPI_Configuration(void)/Lib/inc/stm32f10x_fsmc.h
SPI_Configuration(void)/Lib/inc/stm32f10x_gpio.h
SPI_Configuration(void)/Lib/inc/stm32f10x_i2c.h
SPI_Configuration(void)/Lib/inc/stm32f10x_iwdg.h
SPI_Configuration(void)/Lib/inc/stm32f10x_pwr.h
SPI_Configuration(void)/Lib/inc/stm32f10x_rcc.h
SPI_Configuration(void)/Lib/inc/stm32f10x_rtc.h
SPI_Configuration(void)/Lib/inc/stm32f10x_sdio.h
SPI_Configuration(void)/Lib/inc/stm32f10x_spi.h
SPI_Configuration(void)/Lib/inc/stm32f10x_tim.h
SPI_Configuration(void)/Lib/inc/stm32f10x_usart.h
SPI_Configuration(void)/Lib/inc/stm32f10x_wwdg.h
SPI_Configuration(void)/Lib/src/misc.c
SPI_Configuration(void)/Lib/src/stm32f10x_adc.c
SPI_Configuration(void)/Lib/src/stm32f10x_bkp.c
SPI_Configuration(void)/Lib/src/stm32f10x_can.c
SPI_Configuration(void)/Lib/src/stm32f10x_cec.c
SPI_Configuration(void)/Lib/src/stm32f10x_crc.c
SPI_Configuration(void)/Lib/src/stm32f10x_dac.c
SPI_Configuration(void)/Lib/src/stm32f10x_dbgmcu.c
SPI_Configuration(void)/Lib/src/stm32f10x_dma.c
SPI_Configuration(void)/Lib/src/stm32f10x_exti.c
SPI_Configuration(void)/Lib/src/stm32f10x_flash.c
SPI_Configuration(void)/Lib/src/stm32f10x_fsmc.c
SPI_Configuration(void)/Lib/src/stm32f10x_gpio.c
SPI_Configuration(void)/Lib/src/stm32f10x_i2c.c
SPI_Configuration(void)/Lib/src/stm32f10x_iwdg.c
SPI_Configuration(void)/Lib/src/stm32f10x_pwr.c
SPI_Configuration(void)/Lib/src/stm32f10x_rcc.c
SPI_Configuration(void)/Lib/src/stm32f10x_rtc.c
SPI_Configuration(void)/Lib/src/stm32f10x_sdio.c
SPI_Configuration(void)/Lib/src/stm32f10x_spi.c
SPI_Configuration(void)/Lib/src/stm32f10x_tim.c
SPI_Configuration(void)/Lib/src/stm32f10x_usart.c
SPI_Configuration(void)/Lib/src/stm32f10x_wwdg.c
SPI_Configuration(void)/Listings/Project1.map
SPI_Configuration(void)/Listings/startup_stm32f10x_md.lst
SPI_Configuration(void)/Objects/core_cm3.crf
SPI_Configuration(void)/Objects/core_cm3.d
SPI_Configuration(void)/Objects/core_cm3.o
SPI_Configuration(void)/Objects/ExtDll.iex
SPI_Configuration(void)/Objects/i2c.crf
SPI_Configuration(void)/Objects/i2c.d
SPI_Configuration(void)/Objects/i2c.o
SPI_Configuration(void)/Objects/main.crf
SPI_Configuration(void)/Objects/main.d
SPI_Configuration(void)/Objects/main.o
SPI_Configuration(void)/Objects/misc.crf
SPI_Configuration(void)/Objects/misc.d
SPI_Configuration(void)/Objects/misc.o
SPI_Configuration(void)/Objects/owl.crf
SPI_Configuration(void)/Objects/owl.d
SPI_Configuration(void)/Objects/owl.o
SPI_Configuration(void)/Objects/Project1.axf
SPI_Configuration(void)/Objects/Project1.build_log.htm
SPI_Configuration(void)/Objects/Project1.hex
SPI_Configuration(void)/Objects/Project1.htm
SPI_Configuration(void)/Objects/Project1.lnp
SPI_Configuration(void)/Objects/Project1.sct
SPI_Configuration(void)/Objects/Project1_Target 1.dep
SPI_Configuration(void)/Objects/spi.crf
SPI_Configuration(void)/Objects/spi.d
SPI_Configuration(void)/Objects/spi.o
SPI_Configuration(void)/Objects/startup_stm32f10x_md.d
SPI_Configuration(void)/Objects/startup_stm32f10x_md.o
SPI_Configuration(void)/Objects/stm32f10x_exti.crf
SPI_Configuration(void)/Objects/stm32f10x_exti.d
SPI_Configuration(void)/Objects/stm32f10x_exti.o
SPI_Configuration(void)/Objects/stm32f10x_gpio.crf
SPI_Configuration(void)/Objects/stm32f10x_gpio.d
SPI_Configuration(void)/Objects/stm32f10x_gpio.o
SPI_Configuration(void)/Objects/stm32f10x_it.crf
SPI_Configuration(void)/Objects/stm32f10x_it.d
SPI_Configuration(void)/Objects/stm32f10x_it.o
SPI_Configuration(void)/Objects/stm32f10x_it_1.crf
SPI_Configuration(void)/Objects/stm32f10x_it_1.d
SPI_Configuration(void)/Objects/stm32f10x_it_1.o
SPI_Configuration(void)/Objects/stm32f10x_rcc.crf
SPI_Configuration(void)/Objects/stm32f10x_rcc.d
SPI_Configuration(void)/Objects/stm32f10x_rcc.o
SPI_Configuration(void)/Objects/stm32f10x_spi.crf
SPI_Configuration(void)/Objects/stm32f10x_spi.d
SPI_Configuration(void)/Objects/stm32f10x_spi.o
SPI_Configuration(void)/Objects/system_stm32f10x.crf
SPI_Configuration(void)/Objects/system_stm32f10x.d
SPI_Configuration(void)/Objects/system_stm32f10x.o
SPI_Configuration(void)/Objects/system_stm32f10x_1.crf
SPI_Configuration(void)/Objects/system_stm32f10x_1.d
SPI_Configuration(void)/Objects/system_stm32f10x_1.o
SPI_Configuration(void)/Project1.uvguix.owl
SPI_Configuration(void)/Project1.uvoptx
SPI_Configuration(void)/Project1.uvprojx
SPI_Configuration(void)/Startup/startup_stm32f10x_cl.s
SPI_Configuration(void)/Startup/startup_stm32f10x_hd.s
SPI_Configuration(void)/Startup/startup_stm32f10x_h
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.