CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 嵌入式/单片机编程 微处理器(ARM/PowerPC等)

文件名称: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_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

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com