使用stm32cubemx生成是hal库工程.工程包括spi主机和从机程序,引脚连接时只需4根线GND/CLK/MOSI/MISO即可
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5055 2018-05-31 16:49 spi主从模式mSPI_M.mxproject
文件 542970 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f100xb.h
文件 587973 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f100xe.h
文件 492587 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f101x6.h
文件 502788 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f101xb.h
文件 580299 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f101xe.h
文件 597371 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f101xg.h
文件 585549 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f102x6.h
文件 594987 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f102xb.h
文件 917060 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f103x6.h
文件 927261 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f103xb.h
文件 1013638 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f103xe.h
文件 1027719 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f103xg.h
文件 1300804 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f105xc.h
文件 1381619 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f107xc.h
文件 8815 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f1xx.h
文件 3335 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludesystem_stm32f1xx.h
文件 15094 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f100xb.s
文件 16682 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f100xe.s
文件 12531 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f101x6.s
文件 12904 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f101xb.s
文件 15016 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f101xe.s
文件 15775 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f101xg.s
文件 12853 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f102x6.s
文件 13238 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f102xb.s
文件 13416 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f103x6.s
文件 13801 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f103xb.s
文件 16358 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f103xe.s
文件 16812 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f103xg.s
文件 16620 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f105xc.s
............此处省略1188个文件信息
/**
******************************************************************************
* @file system_stm32f1xx.c
* @author MCD Application Team
* @version V4.1.0
* @date 29-April-2016
* @brief CMSIS Cortex-M3 Device Peripheral Access layer System Source File.
*
* 1. This file provides two functions and one global variable to be called from
* user application:
* - SystemInit(): Setups the system clock (System clock source PLL Multiplier
* factors AHB/APBx prescalers and Flash settings).
* This function is called at startup just after reset and
* before branch to main program. This call is made inside
* the “startup_stm32f1xx_xx.s“ file.
*
* - SystemCoreClock variable: Contains the core clock (HCLK) it can be used
* by the user application to setup the SysTick
* timer or configure other parameters.
*
* - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must
* be called whenever the core clock is changed
* during program execution.
*
* 2. After each device reset the HSI (8 MHz) is used as system clock source.
* Then SystemInit() function is called in “startup_stm32f1xx_xx.s“ file to
* configure the system clock before to branch to main program.
*
* 4. The default value of HSE crystal is set to 8 MHz (or 25 MHz depending on
* the product used) refer to “HSE_VALUE“.
* When HSE is used as system clock source directly or through PLL and you
* are using different crystal you have to adapt the HSE value to your own
* configuration.
*
******************************************************************************
* @attention
*
* © COPYRIGHT(c) 2016 STMicroelectronics
*
* Redistribution and use in source and binary forms with or without modification
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
* AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIE
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5055 2018-05-31 16:49 spi主从模式mSPI_M.mxproject
文件 542970 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f100xb.h
文件 587973 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f100xe.h
文件 492587 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f101x6.h
文件 502788 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f101xb.h
文件 580299 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f101xe.h
文件 597371 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f101xg.h
文件 585549 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f102x6.h
文件 594987 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f102xb.h
文件 917060 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f103x6.h
文件 927261 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f103xb.h
文件 1013638 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f103xe.h
文件 1027719 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f103xg.h
文件 1300804 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f105xc.h
文件 1381619 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f107xc.h
文件 8815 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludestm32f1xx.h
文件 3335 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxIncludesystem_stm32f1xx.h
文件 15094 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f100xb.s
文件 16682 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f100xe.s
文件 12531 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f101x6.s
文件 12904 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f101xb.s
文件 15016 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f101xe.s
文件 15775 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f101xg.s
文件 12853 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f102x6.s
文件 13238 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f102xb.s
文件 13416 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f103x6.s
文件 13801 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f103xb.s
文件 16358 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f103xe.s
文件 16812 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f103xg.s
文件 16620 2018-05-11 11:26 spi主从模式mSPI_MDriversCMSISDeviceSTSTM32F1xxSourceTemplatesarmstartup_stm32f105xc.s
............此处省略1188个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)