STM32L4使用SPI发送数据


HAL库SPI通信,内部包括UART和ESP8266基于stm32l476HAL库开发
资源截图
代码片段和文件信息
/**
  ******************************************************************************
  * @file    system_stm32l4xx.c
  * @author  MCD Application Team
  * @version V1.3.2
  * @date    16-June-2017
  * @brief   CMSIS Cortex-M4 Device Peripheral Access layer System Source File
  *
  *   This file provides two functions and one global variable to be called from
  *   user application:
  *      - SystemInit(): This function is called at startup just after reset and
  *                      before branch to main program. This call is made inside
  *                      the “startup_stm32l4xx.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.
  *
  *   After each device reset the MSI (4 MHz) is used as system clock source.
  *   Then SystemInit() function is called in “startup_stm32l4xx.s“ file to
  *   configure the system clock before to branch to main program.
  *
  *   This file configures the system clock as follows:
  *=============================================================================
  *-----------------------------------------------------------------------------
  *        System Clock source                    | MSI
  *-----------------------------------------------------------------------------
  *        SYSCLK(Hz)                             | 4000000
  *-----------------------------------------------------------------------------
  *        HCLK(Hz)                               | 4000000
  *-----------------------------------------------------------------------------
  *        AHB Prescaler                          | 1
  *-----------------------------------------------------------------------------
  *        APB1 Prescaler                         | 1
  *-----------------------------------------------------------------------------
  *        APB2 Prescaler                         | 1
  *-----------------------------------------------------------------------------
  *        PLL_M                                  | 1
  *-----------------------------------------------------------------------------
  *        PLL_N                                  | 8
  *-----------------------------------------------------------------------------
  *        PLL_P                                  | 7
  *-----------------------------------------------------------------------------
  *        PLL_Q                                  | 2
  *-----------------------------------------------------------------------------
  *        PLL_R                                  | 2
  *---

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-05-18 13:24  STM32L4_SPI_2018518132418
     目录           0  2018-05-18 13:24  STM32L4_SPI_2018518132418Doc
     文件          16  2018-05-15 14:38  STM32L4_SPI_2018518132418DocDescription.txt
     目录           0  2018-05-18 13:24  STM32L4_SPI_2018518132418Library
     目录           0  2018-05-18 13:24  STM32L4_SPI_2018518132418LibraryCMSIS
     目录           0  2018-05-18 13:24  STM32L4_SPI_2018518132418LibraryCMSISCommon
     文件        4637  2017-12-22 11:16  STM32L4_SPI_2018518132418LibraryCMSISCommonaccelero.h
     文件        3634  2017-12-22 11:16  STM32L4_SPI_2018518132418LibraryCMSISCommonaudio.h
     文件        5399  2017-12-22 11:16  STM32L4_SPI_2018518132418LibraryCMSISCommoncamera.h
     文件        3341  2017-12-22 11:16  STM32L4_SPI_2018518132418LibraryCMSISCommonepd.h
     文件        4613  2017-12-22 11:16  STM32L4_SPI_2018518132418LibraryCMSISCommongyro.h
     文件        3045  2017-12-22 11:16  STM32L4_SPI_2018518132418LibraryCMSISCommonhsensor.h
     文件        6580  2017-12-22 11:16  STM32L4_SPI_2018518132418LibraryCMSISCommonidd.h
     文件        5401  2017-12-22 11:16  STM32L4_SPI_2018518132418LibraryCMSISCommonio.h
     文件        3590  2017-12-22 11:16  STM32L4_SPI_2018518132418LibraryCMSISCommonlcd.h
     文件        3618  2017-12-22 11:16  STM32L4_SPI_2018518132418LibraryCMSISCommonmagneto.h
     文件        3045  2017-12-22 11:16  STM32L4_SPI_2018518132418LibraryCMSISCommonpsensor.h
     文件       36409  2017-12-22 11:16  STM32L4_SPI_2018518132418LibraryCMSISCommonRelease_Notes.html
     文件        3249  2017-12-22 11:16  STM32L4_SPI_2018518132418LibraryCMSISCommon s.h
     文件        3677  2017-12-22 11:16  STM32L4_SPI_2018518132418LibraryCMSISCommon sensor.h
     文件      114403  2015-03-18 16:49  STM32L4_SPI_2018518132418LibraryCMSIScore_cm4.h
     目录           0  2018-05-18 13:24  STM32L4_SPI_2018518132418LibraryCMSISInclude
     文件     1298102  2017-06-07 17:34  STM32L4_SPI_2018518132418LibraryCMSISIncludestm32l431xx.h
     文件     1267951  2017-06-07 17:34  STM32L4_SPI_2018518132418LibraryCMSISIncludestm32l432xx.h
     文件     1368259  2017-06-07 17:34  STM32L4_SPI_2018518132418LibraryCMSISIncludestm32l433xx.h
     文件     1286405  2017-06-07 17:34  STM32L4_SPI_2018518132418LibraryCMSISIncludestm32l442xx.h
     文件     1386423  2017-06-07 17:34  STM32L4_SPI_2018518132418LibraryCMSISIncludestm32l443xx.h
     文件     1321438  2017-06-07 17:34  STM32L4_SPI_2018518132418LibraryCMSISIncludestm32l451xx.h
     文件     1378506  2017-06-07 17:34  STM32L4_SPI_2018518132418LibraryCMSISIncludestm32l452xx.h
     文件     1396670  2017-06-07 17:34  STM32L4_SPI_2018518132418LibraryCMSISIncludestm32l462xx.h
     文件     1452909  2017-06-16 10:17  STM32L4_SPI_2018518132418LibraryCMSISIncludestm32l471xx.h
............此处省略398个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)